From 9f8ad7587612cf9ad934fa68a918266c02430e9e Mon Sep 17 00:00:00 2001 From: yupwei68 Date: Wed, 14 Apr 2021 06:46:48 +0000 Subject: [PATCH 1/4] Generated from specification/datafactory/resource-manager/readme.md tag package-2018-06 (commit hash: ea5bc27ee9cadeb67767d774c82095be2420bcad) --- .../datafactory/mgmt/datafactory/models.go | 81 +- .../datafactory/mgmt/datafactory/models.go | 81 +- .../mgmt/2018-06-01/datafactory/CHANGELOG.md | 821 +- .../mgmt/2018-06-01/datafactory/_meta.json | 10 - .../mgmt/2018-06-01/datafactory/enums.go | 243 +- .../mgmt/2018-06-01/datafactory/models.go | 123024 ++++++++------- 6 files changed, 62497 insertions(+), 61763 deletions(-) delete mode 100644 services/datafactory/mgmt/2018-06-01/datafactory/_meta.json diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go index 1cd16e2fc82d..04601b422585 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/models.go @@ -174,8 +174,8 @@ const ( type DynamicsDeploymentType = original.DynamicsDeploymentType const ( - Online DynamicsDeploymentType = original.Online OnPremisesWithIfd DynamicsDeploymentType = original.OnPremisesWithIfd + Online DynamicsDeploymentType = original.Online ) type DynamicsSinkWriteBehavior = original.DynamicsSinkWriteBehavior @@ -548,6 +548,13 @@ const ( RunQueryOrderByFieldTriggerRunTimestamp RunQueryOrderByField = original.RunQueryOrderByFieldTriggerRunTimestamp ) +type SQLAlwaysEncryptedAkvAuthType = original.SQLAlwaysEncryptedAkvAuthType + +const ( + ManagedIdentity SQLAlwaysEncryptedAkvAuthType = original.ManagedIdentity + ServicePrincipal SQLAlwaysEncryptedAkvAuthType = original.ServicePrincipal +) + type SQLPartitionOption = original.SQLPartitionOption const ( @@ -752,10 +759,10 @@ const ( TypeContainer TypeBasicActivity = original.TypeContainer TypeCopy TypeBasicActivity = original.TypeCopy TypeCustom TypeBasicActivity = original.TypeCustom + TypeDataLakeAnalyticsUSQL TypeBasicActivity = original.TypeDataLakeAnalyticsUSQL TypeDatabricksNotebook TypeBasicActivity = original.TypeDatabricksNotebook TypeDatabricksSparkJar TypeBasicActivity = original.TypeDatabricksSparkJar TypeDatabricksSparkPython TypeBasicActivity = original.TypeDatabricksSparkPython - TypeDataLakeAnalyticsUSQL TypeBasicActivity = original.TypeDataLakeAnalyticsUSQL TypeDelete TypeBasicActivity = original.TypeDelete TypeExecuteDataFlow TypeBasicActivity = original.TypeExecuteDataFlow TypeExecutePipeline TypeBasicActivity = original.TypeExecutePipeline @@ -771,8 +778,8 @@ const ( TypeHDInsightStreaming TypeBasicActivity = original.TypeHDInsightStreaming TypeIfCondition TypeBasicActivity = original.TypeIfCondition TypeLookup TypeBasicActivity = original.TypeLookup - TypeSetVariable TypeBasicActivity = original.TypeSetVariable TypeSQLServerStoredProcedure TypeBasicActivity = original.TypeSQLServerStoredProcedure + TypeSetVariable TypeBasicActivity = original.TypeSetVariable TypeSwitch TypeBasicActivity = original.TypeSwitch TypeUntil TypeBasicActivity = original.TypeUntil TypeValidation TypeBasicActivity = original.TypeValidation @@ -795,14 +802,14 @@ type TypeBasicCopySink = original.TypeBasicCopySink const ( TypeAvroSink TypeBasicCopySink = original.TypeAvroSink TypeAzureBlobFSSink TypeBasicCopySink = original.TypeAzureBlobFSSink - TypeAzureDatabricksDeltaLakeSink TypeBasicCopySink = original.TypeAzureDatabricksDeltaLakeSink TypeAzureDataExplorerSink TypeBasicCopySink = original.TypeAzureDataExplorerSink TypeAzureDataLakeStoreSink TypeBasicCopySink = original.TypeAzureDataLakeStoreSink + TypeAzureDatabricksDeltaLakeSink TypeBasicCopySink = original.TypeAzureDatabricksDeltaLakeSink TypeAzureMySQLSink TypeBasicCopySink = original.TypeAzureMySQLSink TypeAzurePostgreSQLSink TypeBasicCopySink = original.TypeAzurePostgreSQLSink TypeAzureQueueSink TypeBasicCopySink = original.TypeAzureQueueSink - TypeAzureSearchIndexSink TypeBasicCopySink = original.TypeAzureSearchIndexSink TypeAzureSQLSink TypeBasicCopySink = original.TypeAzureSQLSink + TypeAzureSearchIndexSink TypeBasicCopySink = original.TypeAzureSearchIndexSink TypeAzureTableSink TypeBasicCopySink = original.TypeAzureTableSink TypeBinarySink TypeBasicCopySink = original.TypeBinarySink TypeBlobSink TypeBasicCopySink = original.TypeBlobSink @@ -818,19 +825,21 @@ const ( TypeInformixSink TypeBasicCopySink = original.TypeInformixSink TypeJSONSink TypeBasicCopySink = original.TypeJSONSink TypeMicrosoftAccessSink TypeBasicCopySink = original.TypeMicrosoftAccessSink + TypeMongoDbAtlasSink TypeBasicCopySink = original.TypeMongoDbAtlasSink + TypeMongoDbV2Sink TypeBasicCopySink = original.TypeMongoDbV2Sink TypeOdbcSink TypeBasicCopySink = original.TypeOdbcSink TypeOracleSink TypeBasicCopySink = original.TypeOracleSink TypeOrcSink TypeBasicCopySink = original.TypeOrcSink TypeParquetSink TypeBasicCopySink = original.TypeParquetSink TypeRestSink TypeBasicCopySink = original.TypeRestSink - TypeSalesforceServiceCloudSink TypeBasicCopySink = original.TypeSalesforceServiceCloudSink - TypeSalesforceSink TypeBasicCopySink = original.TypeSalesforceSink - TypeSapCloudForCustomerSink TypeBasicCopySink = original.TypeSapCloudForCustomerSink - TypeSnowflakeSink TypeBasicCopySink = original.TypeSnowflakeSink TypeSQLDWSink TypeBasicCopySink = original.TypeSQLDWSink TypeSQLMISink TypeBasicCopySink = original.TypeSQLMISink TypeSQLServerSink TypeBasicCopySink = original.TypeSQLServerSink TypeSQLSink TypeBasicCopySink = original.TypeSQLSink + TypeSalesforceServiceCloudSink TypeBasicCopySink = original.TypeSalesforceServiceCloudSink + TypeSalesforceSink TypeBasicCopySink = original.TypeSalesforceSink + TypeSapCloudForCustomerSink TypeBasicCopySink = original.TypeSapCloudForCustomerSink + TypeSnowflakeSink TypeBasicCopySink = original.TypeSnowflakeSink ) type TypeBasicCopySource = original.TypeBasicCopySource @@ -840,9 +849,9 @@ const ( TypeAmazonRedshiftSource TypeBasicCopySource = original.TypeAmazonRedshiftSource TypeAvroSource TypeBasicCopySource = original.TypeAvroSource TypeAzureBlobFSSource TypeBasicCopySource = original.TypeAzureBlobFSSource - TypeAzureDatabricksDeltaLakeSource TypeBasicCopySource = original.TypeAzureDatabricksDeltaLakeSource TypeAzureDataExplorerSource TypeBasicCopySource = original.TypeAzureDataExplorerSource TypeAzureDataLakeStoreSource TypeBasicCopySource = original.TypeAzureDataLakeStoreSource + TypeAzureDatabricksDeltaLakeSource TypeBasicCopySource = original.TypeAzureDatabricksDeltaLakeSource TypeAzureMariaDBSource TypeBasicCopySource = original.TypeAzureMariaDBSource TypeAzureMySQLSource TypeBasicCopySource = original.TypeAzureMySQLSource TypeAzurePostgreSQLSource TypeBasicCopySource = original.TypeAzurePostgreSQLSource @@ -871,14 +880,14 @@ const ( TypeGoogleBigQuerySource TypeBasicCopySource = original.TypeGoogleBigQuerySource TypeGreenplumSource TypeBasicCopySource = original.TypeGreenplumSource TypeHBaseSource TypeBasicCopySource = original.TypeHBaseSource + TypeHTTPSource TypeBasicCopySource = original.TypeHTTPSource TypeHdfsSource TypeBasicCopySource = original.TypeHdfsSource TypeHiveSource TypeBasicCopySource = original.TypeHiveSource - TypeHTTPSource TypeBasicCopySource = original.TypeHTTPSource TypeHubspotSource TypeBasicCopySource = original.TypeHubspotSource TypeImpalaSource TypeBasicCopySource = original.TypeImpalaSource TypeInformixSource TypeBasicCopySource = original.TypeInformixSource - TypeJiraSource TypeBasicCopySource = original.TypeJiraSource TypeJSONSource TypeBasicCopySource = original.TypeJSONSource + TypeJiraSource TypeBasicCopySource = original.TypeJiraSource TypeMagentoSource TypeBasicCopySource = original.TypeMagentoSource TypeMariaDBSource TypeBasicCopySource = original.TypeMariaDBSource TypeMarketoSource TypeBasicCopySource = original.TypeMarketoSource @@ -903,6 +912,10 @@ const ( TypeRelationalSource TypeBasicCopySource = original.TypeRelationalSource TypeResponsysSource TypeBasicCopySource = original.TypeResponsysSource TypeRestSource TypeBasicCopySource = original.TypeRestSource + TypeSQLDWSource TypeBasicCopySource = original.TypeSQLDWSource + TypeSQLMISource TypeBasicCopySource = original.TypeSQLMISource + TypeSQLServerSource TypeBasicCopySource = original.TypeSQLServerSource + TypeSQLSource TypeBasicCopySource = original.TypeSQLSource TypeSalesforceMarketingCloudSource TypeBasicCopySource = original.TypeSalesforceMarketingCloudSource TypeSalesforceServiceCloudSource TypeBasicCopySource = original.TypeSalesforceServiceCloudSource TypeSalesforceSource TypeBasicCopySource = original.TypeSalesforceSource @@ -917,18 +930,14 @@ const ( TypeShopifySource TypeBasicCopySource = original.TypeShopifySource TypeSnowflakeSource TypeBasicCopySource = original.TypeSnowflakeSource TypeSparkSource TypeBasicCopySource = original.TypeSparkSource - TypeSQLDWSource TypeBasicCopySource = original.TypeSQLDWSource - TypeSQLMISource TypeBasicCopySource = original.TypeSQLMISource - TypeSQLServerSource TypeBasicCopySource = original.TypeSQLServerSource - TypeSQLSource TypeBasicCopySource = original.TypeSQLSource TypeSquareSource TypeBasicCopySource = original.TypeSquareSource TypeSybaseSource TypeBasicCopySource = original.TypeSybaseSource TypeTabularSource TypeBasicCopySource = original.TypeTabularSource TypeTeradataSource TypeBasicCopySource = original.TypeTeradataSource TypeVerticaSource TypeBasicCopySource = original.TypeVerticaSource TypeWebSource TypeBasicCopySource = original.TypeWebSource - TypeXeroSource TypeBasicCopySource = original.TypeXeroSource TypeXMLSource TypeBasicCopySource = original.TypeXMLSource + TypeXeroSource TypeBasicCopySource = original.TypeXeroSource TypeZohoSource TypeBasicCopySource = original.TypeZohoSource ) @@ -965,16 +974,16 @@ const ( TypeAvro TypeBasicDataset = original.TypeAvro TypeAzureBlob TypeBasicDataset = original.TypeAzureBlob TypeAzureBlobFSFile TypeBasicDataset = original.TypeAzureBlobFSFile - TypeAzureDatabricksDeltaLakeDataset TypeBasicDataset = original.TypeAzureDatabricksDeltaLakeDataset TypeAzureDataExplorerTable TypeBasicDataset = original.TypeAzureDataExplorerTable TypeAzureDataLakeStoreFile TypeBasicDataset = original.TypeAzureDataLakeStoreFile + TypeAzureDatabricksDeltaLakeDataset TypeBasicDataset = original.TypeAzureDatabricksDeltaLakeDataset TypeAzureMariaDBTable TypeBasicDataset = original.TypeAzureMariaDBTable TypeAzureMySQLTable TypeBasicDataset = original.TypeAzureMySQLTable TypeAzurePostgreSQLTable TypeBasicDataset = original.TypeAzurePostgreSQLTable - TypeAzureSearchIndex TypeBasicDataset = original.TypeAzureSearchIndex TypeAzureSQLDWTable TypeBasicDataset = original.TypeAzureSQLDWTable TypeAzureSQLMITable TypeBasicDataset = original.TypeAzureSQLMITable TypeAzureSQLTable TypeBasicDataset = original.TypeAzureSQLTable + TypeAzureSearchIndex TypeBasicDataset = original.TypeAzureSearchIndex TypeAzureTable TypeBasicDataset = original.TypeAzureTable TypeBinary TypeBasicDataset = original.TypeBinary TypeCassandraTable TypeBasicDataset = original.TypeCassandraTable @@ -999,13 +1008,13 @@ const ( TypeGoogleBigQueryObject TypeBasicDataset = original.TypeGoogleBigQueryObject TypeGreenplumTable TypeBasicDataset = original.TypeGreenplumTable TypeHBaseObject TypeBasicDataset = original.TypeHBaseObject - TypeHiveObject TypeBasicDataset = original.TypeHiveObject TypeHTTPFile TypeBasicDataset = original.TypeHTTPFile + TypeHiveObject TypeBasicDataset = original.TypeHiveObject TypeHubspotObject TypeBasicDataset = original.TypeHubspotObject TypeImpalaObject TypeBasicDataset = original.TypeImpalaObject TypeInformixTable TypeBasicDataset = original.TypeInformixTable - TypeJiraObject TypeBasicDataset = original.TypeJiraObject TypeJSON TypeBasicDataset = original.TypeJSON + TypeJiraObject TypeBasicDataset = original.TypeJiraObject TypeMagentoObject TypeBasicDataset = original.TypeMagentoObject TypeMariaDBTable TypeBasicDataset = original.TypeMariaDBTable TypeMarketoObject TypeBasicDataset = original.TypeMarketoObject @@ -1030,6 +1039,7 @@ const ( TypeRelationalTable TypeBasicDataset = original.TypeRelationalTable TypeResponsysObject TypeBasicDataset = original.TypeResponsysObject TypeRestResource TypeBasicDataset = original.TypeRestResource + TypeSQLServerTable TypeBasicDataset = original.TypeSQLServerTable TypeSalesforceMarketingCloudObject TypeBasicDataset = original.TypeSalesforceMarketingCloudObject TypeSalesforceObject TypeBasicDataset = original.TypeSalesforceObject TypeSalesforceServiceCloudObject TypeBasicDataset = original.TypeSalesforceServiceCloudObject @@ -1044,14 +1054,13 @@ const ( TypeShopifyObject TypeBasicDataset = original.TypeShopifyObject TypeSnowflakeTable TypeBasicDataset = original.TypeSnowflakeTable TypeSparkObject TypeBasicDataset = original.TypeSparkObject - TypeSQLServerTable TypeBasicDataset = original.TypeSQLServerTable TypeSquareObject TypeBasicDataset = original.TypeSquareObject TypeSybaseTable TypeBasicDataset = original.TypeSybaseTable TypeTeradataTable TypeBasicDataset = original.TypeTeradataTable TypeVerticaTable TypeBasicDataset = original.TypeVerticaTable TypeWebTable TypeBasicDataset = original.TypeWebTable - TypeXeroObject TypeBasicDataset = original.TypeXeroObject TypeXML TypeBasicDataset = original.TypeXML + TypeXeroObject TypeBasicDataset = original.TypeXeroObject TypeZohoObject TypeBasicDataset = original.TypeZohoObject ) @@ -1080,8 +1089,8 @@ const ( TypeFileServerLocation TypeBasicDatasetLocation = original.TypeFileServerLocation TypeFtpServerLocation TypeBasicDatasetLocation = original.TypeFtpServerLocation TypeGoogleCloudStorageLocation TypeBasicDatasetLocation = original.TypeGoogleCloudStorageLocation - TypeHdfsLocation TypeBasicDatasetLocation = original.TypeHdfsLocation TypeHTTPServerLocation TypeBasicDatasetLocation = original.TypeHTTPServerLocation + TypeHdfsLocation TypeBasicDatasetLocation = original.TypeHdfsLocation TypeOracleCloudStorageLocation TypeBasicDatasetLocation = original.TypeOracleCloudStorageLocation TypeSftpLocation TypeBasicDatasetLocation = original.TypeSftpLocation ) @@ -1177,23 +1186,23 @@ const ( TypeAzureBatch TypeBasicLinkedService = original.TypeAzureBatch TypeAzureBlobFS TypeBasicLinkedService = original.TypeAzureBlobFS TypeAzureBlobStorage TypeBasicLinkedService = original.TypeAzureBlobStorage - TypeAzureDatabricks TypeBasicLinkedService = original.TypeAzureDatabricks - TypeAzureDatabricksDeltaLake TypeBasicLinkedService = original.TypeAzureDatabricksDeltaLake TypeAzureDataExplorer TypeBasicLinkedService = original.TypeAzureDataExplorer TypeAzureDataLakeAnalytics TypeBasicLinkedService = original.TypeAzureDataLakeAnalytics TypeAzureDataLakeStore TypeBasicLinkedService = original.TypeAzureDataLakeStore + TypeAzureDatabricks TypeBasicLinkedService = original.TypeAzureDatabricks + TypeAzureDatabricksDeltaLake TypeBasicLinkedService = original.TypeAzureDatabricksDeltaLake TypeAzureFileStorage TypeBasicLinkedService = original.TypeAzureFileStorage TypeAzureFunction TypeBasicLinkedService = original.TypeAzureFunction TypeAzureKeyVault TypeBasicLinkedService = original.TypeAzureKeyVault - TypeAzureMariaDB TypeBasicLinkedService = original.TypeAzureMariaDB TypeAzureML TypeBasicLinkedService = original.TypeAzureML TypeAzureMLService TypeBasicLinkedService = original.TypeAzureMLService + TypeAzureMariaDB TypeBasicLinkedService = original.TypeAzureMariaDB TypeAzureMySQL TypeBasicLinkedService = original.TypeAzureMySQL TypeAzurePostgreSQL TypeBasicLinkedService = original.TypeAzurePostgreSQL - TypeAzureSearch TypeBasicLinkedService = original.TypeAzureSearch - TypeAzureSQLDatabase TypeBasicLinkedService = original.TypeAzureSQLDatabase TypeAzureSQLDW TypeBasicLinkedService = original.TypeAzureSQLDW + TypeAzureSQLDatabase TypeBasicLinkedService = original.TypeAzureSQLDatabase TypeAzureSQLMI TypeBasicLinkedService = original.TypeAzureSQLMI + TypeAzureSearch TypeBasicLinkedService = original.TypeAzureSearch TypeAzureStorage TypeBasicLinkedService = original.TypeAzureStorage TypeAzureTableStorage TypeBasicLinkedService = original.TypeAzureTableStorage TypeCassandra TypeBasicLinkedService = original.TypeCassandra @@ -1216,11 +1225,11 @@ const ( TypeGoogleCloudStorage TypeBasicLinkedService = original.TypeGoogleCloudStorage TypeGreenplum TypeBasicLinkedService = original.TypeGreenplum TypeHBase TypeBasicLinkedService = original.TypeHBase - TypeHdfs TypeBasicLinkedService = original.TypeHdfs TypeHDInsight TypeBasicLinkedService = original.TypeHDInsight TypeHDInsightOnDemand TypeBasicLinkedService = original.TypeHDInsightOnDemand - TypeHive TypeBasicLinkedService = original.TypeHive TypeHTTPServer TypeBasicLinkedService = original.TypeHTTPServer + TypeHdfs TypeBasicLinkedService = original.TypeHdfs + TypeHive TypeBasicLinkedService = original.TypeHive TypeHubspot TypeBasicLinkedService = original.TypeHubspot TypeImpala TypeBasicLinkedService = original.TypeImpala TypeInformix TypeBasicLinkedService = original.TypeInformix @@ -1248,6 +1257,7 @@ const ( TypeQuickBooks TypeBasicLinkedService = original.TypeQuickBooks TypeResponsys TypeBasicLinkedService = original.TypeResponsys TypeRestService TypeBasicLinkedService = original.TypeRestService + TypeSQLServer TypeBasicLinkedService = original.TypeSQLServer TypeSalesforce TypeBasicLinkedService = original.TypeSalesforce TypeSalesforceMarketingCloud TypeBasicLinkedService = original.TypeSalesforceMarketingCloud TypeSalesforceServiceCloud TypeBasicLinkedService = original.TypeSalesforceServiceCloud @@ -1263,7 +1273,6 @@ const ( TypeShopify TypeBasicLinkedService = original.TypeShopify TypeSnowflake TypeBasicLinkedService = original.TypeSnowflake TypeSpark TypeBasicLinkedService = original.TypeSpark - TypeSQLServer TypeBasicLinkedService = original.TypeSQLServer TypeSquare TypeBasicLinkedService = original.TypeSquare TypeSybase TypeBasicLinkedService = original.TypeSybase TypeTeradata TypeBasicLinkedService = original.TypeTeradata @@ -1295,8 +1304,8 @@ const ( TypeFileServerReadSettings TypeBasicStoreReadSettings = original.TypeFileServerReadSettings TypeFtpReadSettings TypeBasicStoreReadSettings = original.TypeFtpReadSettings TypeGoogleCloudStorageReadSettings TypeBasicStoreReadSettings = original.TypeGoogleCloudStorageReadSettings - TypeHdfsReadSettings TypeBasicStoreReadSettings = original.TypeHdfsReadSettings TypeHTTPReadSettings TypeBasicStoreReadSettings = original.TypeHTTPReadSettings + TypeHdfsReadSettings TypeBasicStoreReadSettings = original.TypeHdfsReadSettings TypeOracleCloudStorageReadSettings TypeBasicStoreReadSettings = original.TypeOracleCloudStorageReadSettings TypeSftpReadSettings TypeBasicStoreReadSettings = original.TypeSftpReadSettings TypeStoreReadSettings TypeBasicStoreReadSettings = original.TypeStoreReadSettings @@ -1940,6 +1949,7 @@ type MongoDbAtlasCollectionDataset = original.MongoDbAtlasCollectionDataset type MongoDbAtlasCollectionDatasetTypeProperties = original.MongoDbAtlasCollectionDatasetTypeProperties type MongoDbAtlasLinkedService = original.MongoDbAtlasLinkedService type MongoDbAtlasLinkedServiceTypeProperties = original.MongoDbAtlasLinkedServiceTypeProperties +type MongoDbAtlasSink = original.MongoDbAtlasSink type MongoDbAtlasSource = original.MongoDbAtlasSource type MongoDbCollectionDataset = original.MongoDbCollectionDataset type MongoDbCollectionDatasetTypeProperties = original.MongoDbCollectionDatasetTypeProperties @@ -1951,6 +1961,7 @@ type MongoDbV2CollectionDataset = original.MongoDbV2CollectionDataset type MongoDbV2CollectionDatasetTypeProperties = original.MongoDbV2CollectionDatasetTypeProperties type MongoDbV2LinkedService = original.MongoDbV2LinkedService type MongoDbV2LinkedServiceTypeProperties = original.MongoDbV2LinkedServiceTypeProperties +type MongoDbV2Sink = original.MongoDbV2Sink type MongoDbV2Source = original.MongoDbV2Source type MultiplePipelineTrigger = original.MultiplePipelineTrigger type MySQLLinkedService = original.MySQLLinkedService @@ -2100,6 +2111,7 @@ type RetryPolicy = original.RetryPolicy type RunFilterParameters = original.RunFilterParameters type RunQueryFilter = original.RunQueryFilter type RunQueryOrderBy = original.RunQueryOrderBy +type SQLAlwaysEncryptedProperties = original.SQLAlwaysEncryptedProperties type SQLDWSink = original.SQLDWSink type SQLDWSource = original.SQLDWSource type SQLMISink = original.SQLMISink @@ -2705,6 +2717,9 @@ func PossibleRunQueryOrderByFieldValues() []RunQueryOrderByField { func PossibleRunQueryOrderValues() []RunQueryOrder { return original.PossibleRunQueryOrderValues() } +func PossibleSQLAlwaysEncryptedAkvAuthTypeValues() []SQLAlwaysEncryptedAkvAuthType { + return original.PossibleSQLAlwaysEncryptedAkvAuthTypeValues() +} func PossibleSQLPartitionOptionValues() []SQLPartitionOption { return original.PossibleSQLPartitionOptionValues() } diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go index fdfc989f189c..0e0c1b9c3514 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/models.go @@ -174,8 +174,8 @@ const ( type DynamicsDeploymentType = original.DynamicsDeploymentType const ( - Online DynamicsDeploymentType = original.Online OnPremisesWithIfd DynamicsDeploymentType = original.OnPremisesWithIfd + Online DynamicsDeploymentType = original.Online ) type DynamicsSinkWriteBehavior = original.DynamicsSinkWriteBehavior @@ -548,6 +548,13 @@ const ( RunQueryOrderByFieldTriggerRunTimestamp RunQueryOrderByField = original.RunQueryOrderByFieldTriggerRunTimestamp ) +type SQLAlwaysEncryptedAkvAuthType = original.SQLAlwaysEncryptedAkvAuthType + +const ( + ManagedIdentity SQLAlwaysEncryptedAkvAuthType = original.ManagedIdentity + ServicePrincipal SQLAlwaysEncryptedAkvAuthType = original.ServicePrincipal +) + type SQLPartitionOption = original.SQLPartitionOption const ( @@ -752,10 +759,10 @@ const ( TypeContainer TypeBasicActivity = original.TypeContainer TypeCopy TypeBasicActivity = original.TypeCopy TypeCustom TypeBasicActivity = original.TypeCustom + TypeDataLakeAnalyticsUSQL TypeBasicActivity = original.TypeDataLakeAnalyticsUSQL TypeDatabricksNotebook TypeBasicActivity = original.TypeDatabricksNotebook TypeDatabricksSparkJar TypeBasicActivity = original.TypeDatabricksSparkJar TypeDatabricksSparkPython TypeBasicActivity = original.TypeDatabricksSparkPython - TypeDataLakeAnalyticsUSQL TypeBasicActivity = original.TypeDataLakeAnalyticsUSQL TypeDelete TypeBasicActivity = original.TypeDelete TypeExecuteDataFlow TypeBasicActivity = original.TypeExecuteDataFlow TypeExecutePipeline TypeBasicActivity = original.TypeExecutePipeline @@ -771,8 +778,8 @@ const ( TypeHDInsightStreaming TypeBasicActivity = original.TypeHDInsightStreaming TypeIfCondition TypeBasicActivity = original.TypeIfCondition TypeLookup TypeBasicActivity = original.TypeLookup - TypeSetVariable TypeBasicActivity = original.TypeSetVariable TypeSQLServerStoredProcedure TypeBasicActivity = original.TypeSQLServerStoredProcedure + TypeSetVariable TypeBasicActivity = original.TypeSetVariable TypeSwitch TypeBasicActivity = original.TypeSwitch TypeUntil TypeBasicActivity = original.TypeUntil TypeValidation TypeBasicActivity = original.TypeValidation @@ -795,14 +802,14 @@ type TypeBasicCopySink = original.TypeBasicCopySink const ( TypeAvroSink TypeBasicCopySink = original.TypeAvroSink TypeAzureBlobFSSink TypeBasicCopySink = original.TypeAzureBlobFSSink - TypeAzureDatabricksDeltaLakeSink TypeBasicCopySink = original.TypeAzureDatabricksDeltaLakeSink TypeAzureDataExplorerSink TypeBasicCopySink = original.TypeAzureDataExplorerSink TypeAzureDataLakeStoreSink TypeBasicCopySink = original.TypeAzureDataLakeStoreSink + TypeAzureDatabricksDeltaLakeSink TypeBasicCopySink = original.TypeAzureDatabricksDeltaLakeSink TypeAzureMySQLSink TypeBasicCopySink = original.TypeAzureMySQLSink TypeAzurePostgreSQLSink TypeBasicCopySink = original.TypeAzurePostgreSQLSink TypeAzureQueueSink TypeBasicCopySink = original.TypeAzureQueueSink - TypeAzureSearchIndexSink TypeBasicCopySink = original.TypeAzureSearchIndexSink TypeAzureSQLSink TypeBasicCopySink = original.TypeAzureSQLSink + TypeAzureSearchIndexSink TypeBasicCopySink = original.TypeAzureSearchIndexSink TypeAzureTableSink TypeBasicCopySink = original.TypeAzureTableSink TypeBinarySink TypeBasicCopySink = original.TypeBinarySink TypeBlobSink TypeBasicCopySink = original.TypeBlobSink @@ -818,19 +825,21 @@ const ( TypeInformixSink TypeBasicCopySink = original.TypeInformixSink TypeJSONSink TypeBasicCopySink = original.TypeJSONSink TypeMicrosoftAccessSink TypeBasicCopySink = original.TypeMicrosoftAccessSink + TypeMongoDbAtlasSink TypeBasicCopySink = original.TypeMongoDbAtlasSink + TypeMongoDbV2Sink TypeBasicCopySink = original.TypeMongoDbV2Sink TypeOdbcSink TypeBasicCopySink = original.TypeOdbcSink TypeOracleSink TypeBasicCopySink = original.TypeOracleSink TypeOrcSink TypeBasicCopySink = original.TypeOrcSink TypeParquetSink TypeBasicCopySink = original.TypeParquetSink TypeRestSink TypeBasicCopySink = original.TypeRestSink - TypeSalesforceServiceCloudSink TypeBasicCopySink = original.TypeSalesforceServiceCloudSink - TypeSalesforceSink TypeBasicCopySink = original.TypeSalesforceSink - TypeSapCloudForCustomerSink TypeBasicCopySink = original.TypeSapCloudForCustomerSink - TypeSnowflakeSink TypeBasicCopySink = original.TypeSnowflakeSink TypeSQLDWSink TypeBasicCopySink = original.TypeSQLDWSink TypeSQLMISink TypeBasicCopySink = original.TypeSQLMISink TypeSQLServerSink TypeBasicCopySink = original.TypeSQLServerSink TypeSQLSink TypeBasicCopySink = original.TypeSQLSink + TypeSalesforceServiceCloudSink TypeBasicCopySink = original.TypeSalesforceServiceCloudSink + TypeSalesforceSink TypeBasicCopySink = original.TypeSalesforceSink + TypeSapCloudForCustomerSink TypeBasicCopySink = original.TypeSapCloudForCustomerSink + TypeSnowflakeSink TypeBasicCopySink = original.TypeSnowflakeSink ) type TypeBasicCopySource = original.TypeBasicCopySource @@ -840,9 +849,9 @@ const ( TypeAmazonRedshiftSource TypeBasicCopySource = original.TypeAmazonRedshiftSource TypeAvroSource TypeBasicCopySource = original.TypeAvroSource TypeAzureBlobFSSource TypeBasicCopySource = original.TypeAzureBlobFSSource - TypeAzureDatabricksDeltaLakeSource TypeBasicCopySource = original.TypeAzureDatabricksDeltaLakeSource TypeAzureDataExplorerSource TypeBasicCopySource = original.TypeAzureDataExplorerSource TypeAzureDataLakeStoreSource TypeBasicCopySource = original.TypeAzureDataLakeStoreSource + TypeAzureDatabricksDeltaLakeSource TypeBasicCopySource = original.TypeAzureDatabricksDeltaLakeSource TypeAzureMariaDBSource TypeBasicCopySource = original.TypeAzureMariaDBSource TypeAzureMySQLSource TypeBasicCopySource = original.TypeAzureMySQLSource TypeAzurePostgreSQLSource TypeBasicCopySource = original.TypeAzurePostgreSQLSource @@ -871,14 +880,14 @@ const ( TypeGoogleBigQuerySource TypeBasicCopySource = original.TypeGoogleBigQuerySource TypeGreenplumSource TypeBasicCopySource = original.TypeGreenplumSource TypeHBaseSource TypeBasicCopySource = original.TypeHBaseSource + TypeHTTPSource TypeBasicCopySource = original.TypeHTTPSource TypeHdfsSource TypeBasicCopySource = original.TypeHdfsSource TypeHiveSource TypeBasicCopySource = original.TypeHiveSource - TypeHTTPSource TypeBasicCopySource = original.TypeHTTPSource TypeHubspotSource TypeBasicCopySource = original.TypeHubspotSource TypeImpalaSource TypeBasicCopySource = original.TypeImpalaSource TypeInformixSource TypeBasicCopySource = original.TypeInformixSource - TypeJiraSource TypeBasicCopySource = original.TypeJiraSource TypeJSONSource TypeBasicCopySource = original.TypeJSONSource + TypeJiraSource TypeBasicCopySource = original.TypeJiraSource TypeMagentoSource TypeBasicCopySource = original.TypeMagentoSource TypeMariaDBSource TypeBasicCopySource = original.TypeMariaDBSource TypeMarketoSource TypeBasicCopySource = original.TypeMarketoSource @@ -903,6 +912,10 @@ const ( TypeRelationalSource TypeBasicCopySource = original.TypeRelationalSource TypeResponsysSource TypeBasicCopySource = original.TypeResponsysSource TypeRestSource TypeBasicCopySource = original.TypeRestSource + TypeSQLDWSource TypeBasicCopySource = original.TypeSQLDWSource + TypeSQLMISource TypeBasicCopySource = original.TypeSQLMISource + TypeSQLServerSource TypeBasicCopySource = original.TypeSQLServerSource + TypeSQLSource TypeBasicCopySource = original.TypeSQLSource TypeSalesforceMarketingCloudSource TypeBasicCopySource = original.TypeSalesforceMarketingCloudSource TypeSalesforceServiceCloudSource TypeBasicCopySource = original.TypeSalesforceServiceCloudSource TypeSalesforceSource TypeBasicCopySource = original.TypeSalesforceSource @@ -917,18 +930,14 @@ const ( TypeShopifySource TypeBasicCopySource = original.TypeShopifySource TypeSnowflakeSource TypeBasicCopySource = original.TypeSnowflakeSource TypeSparkSource TypeBasicCopySource = original.TypeSparkSource - TypeSQLDWSource TypeBasicCopySource = original.TypeSQLDWSource - TypeSQLMISource TypeBasicCopySource = original.TypeSQLMISource - TypeSQLServerSource TypeBasicCopySource = original.TypeSQLServerSource - TypeSQLSource TypeBasicCopySource = original.TypeSQLSource TypeSquareSource TypeBasicCopySource = original.TypeSquareSource TypeSybaseSource TypeBasicCopySource = original.TypeSybaseSource TypeTabularSource TypeBasicCopySource = original.TypeTabularSource TypeTeradataSource TypeBasicCopySource = original.TypeTeradataSource TypeVerticaSource TypeBasicCopySource = original.TypeVerticaSource TypeWebSource TypeBasicCopySource = original.TypeWebSource - TypeXeroSource TypeBasicCopySource = original.TypeXeroSource TypeXMLSource TypeBasicCopySource = original.TypeXMLSource + TypeXeroSource TypeBasicCopySource = original.TypeXeroSource TypeZohoSource TypeBasicCopySource = original.TypeZohoSource ) @@ -965,16 +974,16 @@ const ( TypeAvro TypeBasicDataset = original.TypeAvro TypeAzureBlob TypeBasicDataset = original.TypeAzureBlob TypeAzureBlobFSFile TypeBasicDataset = original.TypeAzureBlobFSFile - TypeAzureDatabricksDeltaLakeDataset TypeBasicDataset = original.TypeAzureDatabricksDeltaLakeDataset TypeAzureDataExplorerTable TypeBasicDataset = original.TypeAzureDataExplorerTable TypeAzureDataLakeStoreFile TypeBasicDataset = original.TypeAzureDataLakeStoreFile + TypeAzureDatabricksDeltaLakeDataset TypeBasicDataset = original.TypeAzureDatabricksDeltaLakeDataset TypeAzureMariaDBTable TypeBasicDataset = original.TypeAzureMariaDBTable TypeAzureMySQLTable TypeBasicDataset = original.TypeAzureMySQLTable TypeAzurePostgreSQLTable TypeBasicDataset = original.TypeAzurePostgreSQLTable - TypeAzureSearchIndex TypeBasicDataset = original.TypeAzureSearchIndex TypeAzureSQLDWTable TypeBasicDataset = original.TypeAzureSQLDWTable TypeAzureSQLMITable TypeBasicDataset = original.TypeAzureSQLMITable TypeAzureSQLTable TypeBasicDataset = original.TypeAzureSQLTable + TypeAzureSearchIndex TypeBasicDataset = original.TypeAzureSearchIndex TypeAzureTable TypeBasicDataset = original.TypeAzureTable TypeBinary TypeBasicDataset = original.TypeBinary TypeCassandraTable TypeBasicDataset = original.TypeCassandraTable @@ -999,13 +1008,13 @@ const ( TypeGoogleBigQueryObject TypeBasicDataset = original.TypeGoogleBigQueryObject TypeGreenplumTable TypeBasicDataset = original.TypeGreenplumTable TypeHBaseObject TypeBasicDataset = original.TypeHBaseObject - TypeHiveObject TypeBasicDataset = original.TypeHiveObject TypeHTTPFile TypeBasicDataset = original.TypeHTTPFile + TypeHiveObject TypeBasicDataset = original.TypeHiveObject TypeHubspotObject TypeBasicDataset = original.TypeHubspotObject TypeImpalaObject TypeBasicDataset = original.TypeImpalaObject TypeInformixTable TypeBasicDataset = original.TypeInformixTable - TypeJiraObject TypeBasicDataset = original.TypeJiraObject TypeJSON TypeBasicDataset = original.TypeJSON + TypeJiraObject TypeBasicDataset = original.TypeJiraObject TypeMagentoObject TypeBasicDataset = original.TypeMagentoObject TypeMariaDBTable TypeBasicDataset = original.TypeMariaDBTable TypeMarketoObject TypeBasicDataset = original.TypeMarketoObject @@ -1030,6 +1039,7 @@ const ( TypeRelationalTable TypeBasicDataset = original.TypeRelationalTable TypeResponsysObject TypeBasicDataset = original.TypeResponsysObject TypeRestResource TypeBasicDataset = original.TypeRestResource + TypeSQLServerTable TypeBasicDataset = original.TypeSQLServerTable TypeSalesforceMarketingCloudObject TypeBasicDataset = original.TypeSalesforceMarketingCloudObject TypeSalesforceObject TypeBasicDataset = original.TypeSalesforceObject TypeSalesforceServiceCloudObject TypeBasicDataset = original.TypeSalesforceServiceCloudObject @@ -1044,14 +1054,13 @@ const ( TypeShopifyObject TypeBasicDataset = original.TypeShopifyObject TypeSnowflakeTable TypeBasicDataset = original.TypeSnowflakeTable TypeSparkObject TypeBasicDataset = original.TypeSparkObject - TypeSQLServerTable TypeBasicDataset = original.TypeSQLServerTable TypeSquareObject TypeBasicDataset = original.TypeSquareObject TypeSybaseTable TypeBasicDataset = original.TypeSybaseTable TypeTeradataTable TypeBasicDataset = original.TypeTeradataTable TypeVerticaTable TypeBasicDataset = original.TypeVerticaTable TypeWebTable TypeBasicDataset = original.TypeWebTable - TypeXeroObject TypeBasicDataset = original.TypeXeroObject TypeXML TypeBasicDataset = original.TypeXML + TypeXeroObject TypeBasicDataset = original.TypeXeroObject TypeZohoObject TypeBasicDataset = original.TypeZohoObject ) @@ -1080,8 +1089,8 @@ const ( TypeFileServerLocation TypeBasicDatasetLocation = original.TypeFileServerLocation TypeFtpServerLocation TypeBasicDatasetLocation = original.TypeFtpServerLocation TypeGoogleCloudStorageLocation TypeBasicDatasetLocation = original.TypeGoogleCloudStorageLocation - TypeHdfsLocation TypeBasicDatasetLocation = original.TypeHdfsLocation TypeHTTPServerLocation TypeBasicDatasetLocation = original.TypeHTTPServerLocation + TypeHdfsLocation TypeBasicDatasetLocation = original.TypeHdfsLocation TypeOracleCloudStorageLocation TypeBasicDatasetLocation = original.TypeOracleCloudStorageLocation TypeSftpLocation TypeBasicDatasetLocation = original.TypeSftpLocation ) @@ -1177,23 +1186,23 @@ const ( TypeAzureBatch TypeBasicLinkedService = original.TypeAzureBatch TypeAzureBlobFS TypeBasicLinkedService = original.TypeAzureBlobFS TypeAzureBlobStorage TypeBasicLinkedService = original.TypeAzureBlobStorage - TypeAzureDatabricks TypeBasicLinkedService = original.TypeAzureDatabricks - TypeAzureDatabricksDeltaLake TypeBasicLinkedService = original.TypeAzureDatabricksDeltaLake TypeAzureDataExplorer TypeBasicLinkedService = original.TypeAzureDataExplorer TypeAzureDataLakeAnalytics TypeBasicLinkedService = original.TypeAzureDataLakeAnalytics TypeAzureDataLakeStore TypeBasicLinkedService = original.TypeAzureDataLakeStore + TypeAzureDatabricks TypeBasicLinkedService = original.TypeAzureDatabricks + TypeAzureDatabricksDeltaLake TypeBasicLinkedService = original.TypeAzureDatabricksDeltaLake TypeAzureFileStorage TypeBasicLinkedService = original.TypeAzureFileStorage TypeAzureFunction TypeBasicLinkedService = original.TypeAzureFunction TypeAzureKeyVault TypeBasicLinkedService = original.TypeAzureKeyVault - TypeAzureMariaDB TypeBasicLinkedService = original.TypeAzureMariaDB TypeAzureML TypeBasicLinkedService = original.TypeAzureML TypeAzureMLService TypeBasicLinkedService = original.TypeAzureMLService + TypeAzureMariaDB TypeBasicLinkedService = original.TypeAzureMariaDB TypeAzureMySQL TypeBasicLinkedService = original.TypeAzureMySQL TypeAzurePostgreSQL TypeBasicLinkedService = original.TypeAzurePostgreSQL - TypeAzureSearch TypeBasicLinkedService = original.TypeAzureSearch - TypeAzureSQLDatabase TypeBasicLinkedService = original.TypeAzureSQLDatabase TypeAzureSQLDW TypeBasicLinkedService = original.TypeAzureSQLDW + TypeAzureSQLDatabase TypeBasicLinkedService = original.TypeAzureSQLDatabase TypeAzureSQLMI TypeBasicLinkedService = original.TypeAzureSQLMI + TypeAzureSearch TypeBasicLinkedService = original.TypeAzureSearch TypeAzureStorage TypeBasicLinkedService = original.TypeAzureStorage TypeAzureTableStorage TypeBasicLinkedService = original.TypeAzureTableStorage TypeCassandra TypeBasicLinkedService = original.TypeCassandra @@ -1216,11 +1225,11 @@ const ( TypeGoogleCloudStorage TypeBasicLinkedService = original.TypeGoogleCloudStorage TypeGreenplum TypeBasicLinkedService = original.TypeGreenplum TypeHBase TypeBasicLinkedService = original.TypeHBase - TypeHdfs TypeBasicLinkedService = original.TypeHdfs TypeHDInsight TypeBasicLinkedService = original.TypeHDInsight TypeHDInsightOnDemand TypeBasicLinkedService = original.TypeHDInsightOnDemand - TypeHive TypeBasicLinkedService = original.TypeHive TypeHTTPServer TypeBasicLinkedService = original.TypeHTTPServer + TypeHdfs TypeBasicLinkedService = original.TypeHdfs + TypeHive TypeBasicLinkedService = original.TypeHive TypeHubspot TypeBasicLinkedService = original.TypeHubspot TypeImpala TypeBasicLinkedService = original.TypeImpala TypeInformix TypeBasicLinkedService = original.TypeInformix @@ -1248,6 +1257,7 @@ const ( TypeQuickBooks TypeBasicLinkedService = original.TypeQuickBooks TypeResponsys TypeBasicLinkedService = original.TypeResponsys TypeRestService TypeBasicLinkedService = original.TypeRestService + TypeSQLServer TypeBasicLinkedService = original.TypeSQLServer TypeSalesforce TypeBasicLinkedService = original.TypeSalesforce TypeSalesforceMarketingCloud TypeBasicLinkedService = original.TypeSalesforceMarketingCloud TypeSalesforceServiceCloud TypeBasicLinkedService = original.TypeSalesforceServiceCloud @@ -1263,7 +1273,6 @@ const ( TypeShopify TypeBasicLinkedService = original.TypeShopify TypeSnowflake TypeBasicLinkedService = original.TypeSnowflake TypeSpark TypeBasicLinkedService = original.TypeSpark - TypeSQLServer TypeBasicLinkedService = original.TypeSQLServer TypeSquare TypeBasicLinkedService = original.TypeSquare TypeSybase TypeBasicLinkedService = original.TypeSybase TypeTeradata TypeBasicLinkedService = original.TypeTeradata @@ -1295,8 +1304,8 @@ const ( TypeFileServerReadSettings TypeBasicStoreReadSettings = original.TypeFileServerReadSettings TypeFtpReadSettings TypeBasicStoreReadSettings = original.TypeFtpReadSettings TypeGoogleCloudStorageReadSettings TypeBasicStoreReadSettings = original.TypeGoogleCloudStorageReadSettings - TypeHdfsReadSettings TypeBasicStoreReadSettings = original.TypeHdfsReadSettings TypeHTTPReadSettings TypeBasicStoreReadSettings = original.TypeHTTPReadSettings + TypeHdfsReadSettings TypeBasicStoreReadSettings = original.TypeHdfsReadSettings TypeOracleCloudStorageReadSettings TypeBasicStoreReadSettings = original.TypeOracleCloudStorageReadSettings TypeSftpReadSettings TypeBasicStoreReadSettings = original.TypeSftpReadSettings TypeStoreReadSettings TypeBasicStoreReadSettings = original.TypeStoreReadSettings @@ -1940,6 +1949,7 @@ type MongoDbAtlasCollectionDataset = original.MongoDbAtlasCollectionDataset type MongoDbAtlasCollectionDatasetTypeProperties = original.MongoDbAtlasCollectionDatasetTypeProperties type MongoDbAtlasLinkedService = original.MongoDbAtlasLinkedService type MongoDbAtlasLinkedServiceTypeProperties = original.MongoDbAtlasLinkedServiceTypeProperties +type MongoDbAtlasSink = original.MongoDbAtlasSink type MongoDbAtlasSource = original.MongoDbAtlasSource type MongoDbCollectionDataset = original.MongoDbCollectionDataset type MongoDbCollectionDatasetTypeProperties = original.MongoDbCollectionDatasetTypeProperties @@ -1951,6 +1961,7 @@ type MongoDbV2CollectionDataset = original.MongoDbV2CollectionDataset type MongoDbV2CollectionDatasetTypeProperties = original.MongoDbV2CollectionDatasetTypeProperties type MongoDbV2LinkedService = original.MongoDbV2LinkedService type MongoDbV2LinkedServiceTypeProperties = original.MongoDbV2LinkedServiceTypeProperties +type MongoDbV2Sink = original.MongoDbV2Sink type MongoDbV2Source = original.MongoDbV2Source type MultiplePipelineTrigger = original.MultiplePipelineTrigger type MySQLLinkedService = original.MySQLLinkedService @@ -2100,6 +2111,7 @@ type RetryPolicy = original.RetryPolicy type RunFilterParameters = original.RunFilterParameters type RunQueryFilter = original.RunQueryFilter type RunQueryOrderBy = original.RunQueryOrderBy +type SQLAlwaysEncryptedProperties = original.SQLAlwaysEncryptedProperties type SQLDWSink = original.SQLDWSink type SQLDWSource = original.SQLDWSource type SQLMISink = original.SQLMISink @@ -2705,6 +2717,9 @@ func PossibleRunQueryOrderByFieldValues() []RunQueryOrderByField { func PossibleRunQueryOrderValues() []RunQueryOrder { return original.PossibleRunQueryOrderValues() } +func PossibleSQLAlwaysEncryptedAkvAuthTypeValues() []SQLAlwaysEncryptedAkvAuthType { + return original.PossibleSQLAlwaysEncryptedAkvAuthTypeValues() +} func PossibleSQLPartitionOptionValues() []SQLPartitionOption { return original.PossibleSQLPartitionOptionValues() } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md b/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md index f1d4ed9cf1ba..6e7c8bbf35d4 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md +++ b/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md @@ -1,663 +1,192 @@ -Generated from https://github.com/Azure/azure-rest-api-specs/tree/e0f8b9ab0f5fe5e71b7429ebfea8a33c19ec9d8d/specification/datafactory/resource-manager/readme.md tag: `package-2018-06` +Generated from https://github.com/Azure/azure-rest-api-specs/tree/ea5bc27ee9cadeb67767d774c82095be2420bcad/specification/datafactory/resource-manager/readme.md tag: `package-2018-06` Code generator @microsoft.azure/autorest.go@2.1.178 -## Breaking Changes - -## Signature Changes - -### Const Types - -1. ServicePrincipalCert changed type from ODataAadServicePrincipalCredentialType to CosmosDbServicePrincipalCredentialType -1. ServicePrincipalKey changed type from ODataAadServicePrincipalCredentialType to CosmosDbServicePrincipalCredentialType - -### Struct Fields - -1. FactoryIdentity.Type changed type from *string to FactoryIdentityType -1. WebActivityAuthentication.Resource changed type from *string to interface{} -1. WebActivityAuthentication.Username changed type from *string to interface{} - ### New Constants -1. CosmosDbConnectionMode.Direct -1. CosmosDbConnectionMode.Gateway -1. FactoryIdentityType.SystemAssigned -1. FactoryIdentityType.SystemAssignedUserAssigned -1. FactoryIdentityType.UserAssigned -1. ODataAadServicePrincipalCredentialType.ODataAadServicePrincipalCredentialTypeServicePrincipalCert -1. ODataAadServicePrincipalCredentialType.ODataAadServicePrincipalCredentialTypeServicePrincipalKey -1. SftpAuthenticationType.SftpAuthenticationTypeMultiFactor -1. TypeBasicDatasetLocation.TypeAmazonS3CompatibleLocation -1. TypeBasicDatasetLocation.TypeOracleCloudStorageLocation -1. TypeBasicLinkedService.TypeAmazonS3Compatible -1. TypeBasicLinkedService.TypeOracleCloudStorage -1. TypeBasicStoreReadSettings.TypeAmazonS3CompatibleReadSettings -1. TypeBasicStoreReadSettings.TypeOracleCloudStorageReadSettings +1. SQLAlwaysEncryptedAkvAuthType.ManagedIdentity +1. SQLAlwaysEncryptedAkvAuthType.ServicePrincipal +1. TypeBasicCopySink.TypeMongoDbAtlasSink +1. TypeBasicCopySink.TypeMongoDbV2Sink ### New Funcs -1. *AmazonS3CompatibleLinkedService.UnmarshalJSON([]byte) error -1. *AmazonS3CompatibleLinkedServiceTypeProperties.UnmarshalJSON([]byte) error -1. *AmazonS3CompatibleLocation.UnmarshalJSON([]byte) error -1. *AmazonS3CompatibleReadSettings.UnmarshalJSON([]byte) error -1. *DataFlowDebugSessionCreateFuture.UnmarshalJSON([]byte) error -1. *DataFlowDebugSessionExecuteCommandFuture.UnmarshalJSON([]byte) error -1. *IntegrationRuntimeObjectMetadataRefreshFuture.UnmarshalJSON([]byte) error -1. *IntegrationRuntimesStartFuture.UnmarshalJSON([]byte) error -1. *IntegrationRuntimesStopFuture.UnmarshalJSON([]byte) error -1. *OracleCloudStorageLinkedService.UnmarshalJSON([]byte) error -1. *OracleCloudStorageLinkedServiceTypeProperties.UnmarshalJSON([]byte) error -1. *OracleCloudStorageLocation.UnmarshalJSON([]byte) error -1. *OracleCloudStorageReadSettings.UnmarshalJSON([]byte) error -1. *PrivateEndpointConnectionListResponseIterator.Next() error -1. *PrivateEndpointConnectionListResponseIterator.NextWithContext(context.Context) error -1. *PrivateEndpointConnectionListResponsePage.Next() error -1. *PrivateEndpointConnectionListResponsePage.NextWithContext(context.Context) error -1. *TriggersStartFuture.UnmarshalJSON([]byte) error -1. *TriggersStopFuture.UnmarshalJSON([]byte) error -1. *TriggersSubscribeToEventsFuture.UnmarshalJSON([]byte) error -1. *TriggersUnsubscribeFromEventsFuture.UnmarshalJSON([]byte) error -1. AmazonMWSLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AmazonMWSLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AmazonRedshiftLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AmazonRedshiftLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureMLLinkedService() (*AzureMLLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsBasicLinkedService() (BasicLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsCassandraLinkedService() (*CassandraLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsConcurLinkedService() (*ConcurLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsDb2LinkedService() (*Db2LinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsDrillLinkedService() (*DrillLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsDynamicsLinkedService() (*DynamicsLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsEloquaLinkedService() (*EloquaLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsFileServerLinkedService() (*FileServerLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsFtpServerLinkedService() (*FtpServerLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsGreenplumLinkedService() (*GreenplumLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsHBaseLinkedService() (*HBaseLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsHDInsightLinkedService() (*HDInsightLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsHTTPLinkedService() (*HTTPLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsHdfsLinkedService() (*HdfsLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsHiveLinkedService() (*HiveLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsHubspotLinkedService() (*HubspotLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsImpalaLinkedService() (*ImpalaLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsInformixLinkedService() (*InformixLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsJiraLinkedService() (*JiraLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsLinkedService() (*LinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsMagentoLinkedService() (*MagentoLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsMariaDBLinkedService() (*MariaDBLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsMarketoLinkedService() (*MarketoLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsMongoDbLinkedService() (*MongoDbLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsMySQLLinkedService() (*MySQLLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsNetezzaLinkedService() (*NetezzaLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsODataLinkedService() (*ODataLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsOdbcLinkedService() (*OdbcLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsOffice365LinkedService() (*Office365LinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsOracleLinkedService() (*OracleLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsPaypalLinkedService() (*PaypalLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsPhoenixLinkedService() (*PhoenixLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsPrestoLinkedService() (*PrestoLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsResponsysLinkedService() (*ResponsysLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsRestServiceLinkedService() (*RestServiceLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSQLServerLinkedService() (*SQLServerLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSalesforceLinkedService() (*SalesforceLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSapBWLinkedService() (*SapBWLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSapEccLinkedService() (*SapEccLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSapHanaLinkedService() (*SapHanaLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSapTableLinkedService() (*SapTableLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSftpServerLinkedService() (*SftpServerLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsShopifyLinkedService() (*ShopifyLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSparkLinkedService() (*SparkLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSquareLinkedService() (*SquareLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsSybaseLinkedService() (*SybaseLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsTeradataLinkedService() (*TeradataLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsVerticaLinkedService() (*VerticaLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsWebLinkedService() (*WebLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsXeroLinkedService() (*XeroLinkedService, bool) -1. AmazonS3CompatibleLinkedService.AsZohoLinkedService() (*ZohoLinkedService, bool) -1. AmazonS3CompatibleLinkedService.MarshalJSON() ([]byte, error) -1. AmazonS3CompatibleLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. AmazonS3CompatibleLocation.AsAmazonS3Location() (*AmazonS3Location, bool) -1. AmazonS3CompatibleLocation.AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) -1. AmazonS3CompatibleLocation.AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) -1. AmazonS3CompatibleLocation.AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) -1. AmazonS3CompatibleLocation.AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) -1. AmazonS3CompatibleLocation.AsBasicDatasetLocation() (BasicDatasetLocation, bool) -1. AmazonS3CompatibleLocation.AsDatasetLocation() (*DatasetLocation, bool) -1. AmazonS3CompatibleLocation.AsFileServerLocation() (*FileServerLocation, bool) -1. AmazonS3CompatibleLocation.AsFtpServerLocation() (*FtpServerLocation, bool) -1. AmazonS3CompatibleLocation.AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) -1. AmazonS3CompatibleLocation.AsHTTPServerLocation() (*HTTPServerLocation, bool) -1. AmazonS3CompatibleLocation.AsHdfsLocation() (*HdfsLocation, bool) -1. AmazonS3CompatibleLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. AmazonS3CompatibleLocation.AsSftpLocation() (*SftpLocation, bool) -1. AmazonS3CompatibleLocation.MarshalJSON() ([]byte, error) -1. AmazonS3CompatibleReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsFileServerReadSettings() (*FileServerReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsFtpReadSettings() (*FtpReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsHTTPReadSettings() (*HTTPReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsHdfsReadSettings() (*HdfsReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsSftpReadSettings() (*SftpReadSettings, bool) -1. AmazonS3CompatibleReadSettings.AsStoreReadSettings() (*StoreReadSettings, bool) -1. AmazonS3CompatibleReadSettings.MarshalJSON() ([]byte, error) -1. AmazonS3LinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AmazonS3LinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AmazonS3Location.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. AmazonS3Location.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. AmazonS3ReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. AmazonS3ReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. AzureBatchLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureBatchLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureBlobFSLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureBlobFSLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureBlobFSLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. AzureBlobFSLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. AzureBlobFSReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. AzureBlobFSReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. AzureBlobStorageLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureBlobStorageLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureBlobStorageLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. AzureBlobStorageLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. AzureBlobStorageReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. AzureBlobStorageReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. AzureDataExplorerLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureDataExplorerLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureDataLakeAnalyticsLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureDataLakeAnalyticsLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureDataLakeStoreLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureDataLakeStoreLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureDataLakeStoreLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. AzureDataLakeStoreLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. AzureDataLakeStoreReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. AzureDataLakeStoreReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. AzureDatabricksDeltaLakeLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureDatabricksDeltaLakeLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureDatabricksLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureDatabricksLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureFileStorageLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureFileStorageLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureFileStorageLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. AzureFileStorageLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. AzureFileStorageReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. AzureFileStorageReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. AzureFunctionLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureFunctionLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureKeyVaultLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureKeyVaultLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureMLLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureMLLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureMLServiceLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureMLServiceLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureMariaDBLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureMariaDBLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureMySQLLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureMySQLLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzurePostgreSQLLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzurePostgreSQLLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureSQLDWLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureSQLDWLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureSQLDatabaseLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureSQLDatabaseLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureSQLMILinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureSQLMILinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureSearchLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureSearchLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureStorageLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureStorageLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. AzureTableStorageLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. AzureTableStorageLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. CassandraLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. CassandraLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. CommonDataServiceForAppsLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. CommonDataServiceForAppsLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. ConcurLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. ConcurLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. CosmosDbLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. CosmosDbLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. CosmosDbMongoDbAPILinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. CosmosDbMongoDbAPILinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. CouchbaseLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. CouchbaseLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. CustomDataSourceLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. CustomDataSourceLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. DatasetLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. DatasetLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. Db2LinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. Db2LinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. DrillLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. DrillLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. DynamicsAXLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. DynamicsAXLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. DynamicsCrmLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. DynamicsCrmLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. DynamicsLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. DynamicsLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. EloquaLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. EloquaLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. FileServerLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. FileServerLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. FileServerLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. FileServerLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. FileServerReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. FileServerReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. FtpReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. FtpReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. FtpServerLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. FtpServerLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. FtpServerLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. FtpServerLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. GoogleAdWordsLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. GoogleAdWordsLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. GoogleBigQueryLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. GoogleBigQueryLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. GoogleCloudStorageLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. GoogleCloudStorageLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. GoogleCloudStorageLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. GoogleCloudStorageLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. GoogleCloudStorageReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. GoogleCloudStorageReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. GreenplumLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. GreenplumLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. HBaseLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. HBaseLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. HDInsightLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. HDInsightLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. HDInsightOnDemandLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. HDInsightOnDemandLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. HTTPLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. HTTPLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. HTTPReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. HTTPReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. HTTPServerLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. HTTPServerLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. HdfsLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. HdfsLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. HdfsLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. HdfsLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. HdfsReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. HdfsReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. HiveLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. HiveLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. HubspotLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. HubspotLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. ImpalaLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. ImpalaLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. InformixLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. InformixLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. JiraLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. JiraLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. LinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. LinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. MagentoLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. MagentoLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. MariaDBLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. MariaDBLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. MarketoLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. MarketoLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. MicrosoftAccessLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. MicrosoftAccessLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. MongoDbAtlasLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. MongoDbAtlasLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. MongoDbLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. MongoDbLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. MongoDbV2LinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. MongoDbV2LinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. MySQLLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. MySQLLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. NetezzaLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. NetezzaLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. NewPrivateEndPointConnectionsClient(string) PrivateEndPointConnectionsClient -1. NewPrivateEndPointConnectionsClientWithBaseURI(string, string) PrivateEndPointConnectionsClient -1. NewPrivateEndpointConnectionClient(string) PrivateEndpointConnectionClient -1. NewPrivateEndpointConnectionClientWithBaseURI(string, string) PrivateEndpointConnectionClient -1. NewPrivateEndpointConnectionListResponseIterator(PrivateEndpointConnectionListResponsePage) PrivateEndpointConnectionListResponseIterator -1. NewPrivateEndpointConnectionListResponsePage(PrivateEndpointConnectionListResponse, func(context.Context, PrivateEndpointConnectionListResponse) (PrivateEndpointConnectionListResponse, error)) PrivateEndpointConnectionListResponsePage -1. NewPrivateLinkResourcesClient(string) PrivateLinkResourcesClient -1. NewPrivateLinkResourcesClientWithBaseURI(string, string) PrivateLinkResourcesClient -1. ODataLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. ODataLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. OdbcLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. OdbcLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. Office365LinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. Office365LinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureMLLinkedService() (*AzureMLLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) -1. OracleCloudStorageLinkedService.AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) -1. OracleCloudStorageLinkedService.AsBasicLinkedService() (BasicLinkedService, bool) -1. OracleCloudStorageLinkedService.AsCassandraLinkedService() (*CassandraLinkedService, bool) -1. OracleCloudStorageLinkedService.AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) -1. OracleCloudStorageLinkedService.AsConcurLinkedService() (*ConcurLinkedService, bool) -1. OracleCloudStorageLinkedService.AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) -1. OracleCloudStorageLinkedService.AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) -1. OracleCloudStorageLinkedService.AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) -1. OracleCloudStorageLinkedService.AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) -1. OracleCloudStorageLinkedService.AsDb2LinkedService() (*Db2LinkedService, bool) -1. OracleCloudStorageLinkedService.AsDrillLinkedService() (*DrillLinkedService, bool) -1. OracleCloudStorageLinkedService.AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) -1. OracleCloudStorageLinkedService.AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) -1. OracleCloudStorageLinkedService.AsDynamicsLinkedService() (*DynamicsLinkedService, bool) -1. OracleCloudStorageLinkedService.AsEloquaLinkedService() (*EloquaLinkedService, bool) -1. OracleCloudStorageLinkedService.AsFileServerLinkedService() (*FileServerLinkedService, bool) -1. OracleCloudStorageLinkedService.AsFtpServerLinkedService() (*FtpServerLinkedService, bool) -1. OracleCloudStorageLinkedService.AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) -1. OracleCloudStorageLinkedService.AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) -1. OracleCloudStorageLinkedService.AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) -1. OracleCloudStorageLinkedService.AsGreenplumLinkedService() (*GreenplumLinkedService, bool) -1. OracleCloudStorageLinkedService.AsHBaseLinkedService() (*HBaseLinkedService, bool) -1. OracleCloudStorageLinkedService.AsHDInsightLinkedService() (*HDInsightLinkedService, bool) -1. OracleCloudStorageLinkedService.AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) -1. OracleCloudStorageLinkedService.AsHTTPLinkedService() (*HTTPLinkedService, bool) -1. OracleCloudStorageLinkedService.AsHdfsLinkedService() (*HdfsLinkedService, bool) -1. OracleCloudStorageLinkedService.AsHiveLinkedService() (*HiveLinkedService, bool) -1. OracleCloudStorageLinkedService.AsHubspotLinkedService() (*HubspotLinkedService, bool) -1. OracleCloudStorageLinkedService.AsImpalaLinkedService() (*ImpalaLinkedService, bool) -1. OracleCloudStorageLinkedService.AsInformixLinkedService() (*InformixLinkedService, bool) -1. OracleCloudStorageLinkedService.AsJiraLinkedService() (*JiraLinkedService, bool) -1. OracleCloudStorageLinkedService.AsLinkedService() (*LinkedService, bool) -1. OracleCloudStorageLinkedService.AsMagentoLinkedService() (*MagentoLinkedService, bool) -1. OracleCloudStorageLinkedService.AsMariaDBLinkedService() (*MariaDBLinkedService, bool) -1. OracleCloudStorageLinkedService.AsMarketoLinkedService() (*MarketoLinkedService, bool) -1. OracleCloudStorageLinkedService.AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) -1. OracleCloudStorageLinkedService.AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) -1. OracleCloudStorageLinkedService.AsMongoDbLinkedService() (*MongoDbLinkedService, bool) -1. OracleCloudStorageLinkedService.AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) -1. OracleCloudStorageLinkedService.AsMySQLLinkedService() (*MySQLLinkedService, bool) -1. OracleCloudStorageLinkedService.AsNetezzaLinkedService() (*NetezzaLinkedService, bool) -1. OracleCloudStorageLinkedService.AsODataLinkedService() (*ODataLinkedService, bool) -1. OracleCloudStorageLinkedService.AsOdbcLinkedService() (*OdbcLinkedService, bool) -1. OracleCloudStorageLinkedService.AsOffice365LinkedService() (*Office365LinkedService, bool) -1. OracleCloudStorageLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. OracleCloudStorageLinkedService.AsOracleLinkedService() (*OracleLinkedService, bool) -1. OracleCloudStorageLinkedService.AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) -1. OracleCloudStorageLinkedService.AsPaypalLinkedService() (*PaypalLinkedService, bool) -1. OracleCloudStorageLinkedService.AsPhoenixLinkedService() (*PhoenixLinkedService, bool) -1. OracleCloudStorageLinkedService.AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) -1. OracleCloudStorageLinkedService.AsPrestoLinkedService() (*PrestoLinkedService, bool) -1. OracleCloudStorageLinkedService.AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) -1. OracleCloudStorageLinkedService.AsResponsysLinkedService() (*ResponsysLinkedService, bool) -1. OracleCloudStorageLinkedService.AsRestServiceLinkedService() (*RestServiceLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSQLServerLinkedService() (*SQLServerLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSalesforceLinkedService() (*SalesforceLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSapBWLinkedService() (*SapBWLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSapEccLinkedService() (*SapEccLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSapHanaLinkedService() (*SapHanaLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSapTableLinkedService() (*SapTableLinkedService, bool) -1. OracleCloudStorageLinkedService.AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSftpServerLinkedService() (*SftpServerLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) -1. OracleCloudStorageLinkedService.AsShopifyLinkedService() (*ShopifyLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSparkLinkedService() (*SparkLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSquareLinkedService() (*SquareLinkedService, bool) -1. OracleCloudStorageLinkedService.AsSybaseLinkedService() (*SybaseLinkedService, bool) -1. OracleCloudStorageLinkedService.AsTeradataLinkedService() (*TeradataLinkedService, bool) -1. OracleCloudStorageLinkedService.AsVerticaLinkedService() (*VerticaLinkedService, bool) -1. OracleCloudStorageLinkedService.AsWebLinkedService() (*WebLinkedService, bool) -1. OracleCloudStorageLinkedService.AsXeroLinkedService() (*XeroLinkedService, bool) -1. OracleCloudStorageLinkedService.AsZohoLinkedService() (*ZohoLinkedService, bool) -1. OracleCloudStorageLinkedService.MarshalJSON() ([]byte, error) -1. OracleCloudStorageLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. OracleCloudStorageLocation.AsAmazonS3Location() (*AmazonS3Location, bool) -1. OracleCloudStorageLocation.AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) -1. OracleCloudStorageLocation.AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) -1. OracleCloudStorageLocation.AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) -1. OracleCloudStorageLocation.AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) -1. OracleCloudStorageLocation.AsBasicDatasetLocation() (BasicDatasetLocation, bool) -1. OracleCloudStorageLocation.AsDatasetLocation() (*DatasetLocation, bool) -1. OracleCloudStorageLocation.AsFileServerLocation() (*FileServerLocation, bool) -1. OracleCloudStorageLocation.AsFtpServerLocation() (*FtpServerLocation, bool) -1. OracleCloudStorageLocation.AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) -1. OracleCloudStorageLocation.AsHTTPServerLocation() (*HTTPServerLocation, bool) -1. OracleCloudStorageLocation.AsHdfsLocation() (*HdfsLocation, bool) -1. OracleCloudStorageLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. OracleCloudStorageLocation.AsSftpLocation() (*SftpLocation, bool) -1. OracleCloudStorageLocation.MarshalJSON() ([]byte, error) -1. OracleCloudStorageReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. OracleCloudStorageReadSettings.AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) -1. OracleCloudStorageReadSettings.AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) -1. OracleCloudStorageReadSettings.AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) -1. OracleCloudStorageReadSettings.AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) -1. OracleCloudStorageReadSettings.AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) -1. OracleCloudStorageReadSettings.AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) -1. OracleCloudStorageReadSettings.AsFileServerReadSettings() (*FileServerReadSettings, bool) -1. OracleCloudStorageReadSettings.AsFtpReadSettings() (*FtpReadSettings, bool) -1. OracleCloudStorageReadSettings.AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) -1. OracleCloudStorageReadSettings.AsHTTPReadSettings() (*HTTPReadSettings, bool) -1. OracleCloudStorageReadSettings.AsHdfsReadSettings() (*HdfsReadSettings, bool) -1. OracleCloudStorageReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. OracleCloudStorageReadSettings.AsSftpReadSettings() (*SftpReadSettings, bool) -1. OracleCloudStorageReadSettings.AsStoreReadSettings() (*StoreReadSettings, bool) -1. OracleCloudStorageReadSettings.MarshalJSON() ([]byte, error) -1. OracleLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. OracleLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. OracleServiceCloudLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. OracleServiceCloudLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. PaypalLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. PaypalLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. PhoenixLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. PhoenixLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. PossibleCosmosDbConnectionModeValues() []CosmosDbConnectionMode -1. PossibleCosmosDbServicePrincipalCredentialTypeValues() []CosmosDbServicePrincipalCredentialType -1. PossibleFactoryIdentityTypeValues() []FactoryIdentityType -1. PostgreSQLLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. PostgreSQLLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. PrestoLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. PrestoLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. PrivateEndPointConnectionsClient.ListByFactory(context.Context, string, string) (PrivateEndpointConnectionListResponsePage, error) -1. PrivateEndPointConnectionsClient.ListByFactoryComplete(context.Context, string, string) (PrivateEndpointConnectionListResponseIterator, error) -1. PrivateEndPointConnectionsClient.ListByFactoryPreparer(context.Context, string, string) (*http.Request, error) -1. PrivateEndPointConnectionsClient.ListByFactoryResponder(*http.Response) (PrivateEndpointConnectionListResponse, error) -1. PrivateEndPointConnectionsClient.ListByFactorySender(*http.Request) (*http.Response, error) -1. PrivateEndpointConnectionClient.CreateOrUpdate(context.Context, string, string, string, PrivateLinkConnectionApprovalRequestResource, string) (PrivateEndpointConnectionResource, error) -1. PrivateEndpointConnectionClient.CreateOrUpdatePreparer(context.Context, string, string, string, PrivateLinkConnectionApprovalRequestResource, string) (*http.Request, error) -1. PrivateEndpointConnectionClient.CreateOrUpdateResponder(*http.Response) (PrivateEndpointConnectionResource, error) -1. PrivateEndpointConnectionClient.CreateOrUpdateSender(*http.Request) (*http.Response, error) -1. PrivateEndpointConnectionClient.Delete(context.Context, string, string, string) (autorest.Response, error) -1. PrivateEndpointConnectionClient.DeletePreparer(context.Context, string, string, string) (*http.Request, error) -1. PrivateEndpointConnectionClient.DeleteResponder(*http.Response) (autorest.Response, error) -1. PrivateEndpointConnectionClient.DeleteSender(*http.Request) (*http.Response, error) -1. PrivateEndpointConnectionClient.Get(context.Context, string, string, string, string) (PrivateEndpointConnectionResource, error) -1. PrivateEndpointConnectionClient.GetPreparer(context.Context, string, string, string, string) (*http.Request, error) -1. PrivateEndpointConnectionClient.GetResponder(*http.Response) (PrivateEndpointConnectionResource, error) -1. PrivateEndpointConnectionClient.GetSender(*http.Request) (*http.Response, error) -1. PrivateEndpointConnectionListResponse.IsEmpty() bool -1. PrivateEndpointConnectionListResponseIterator.NotDone() bool -1. PrivateEndpointConnectionListResponseIterator.Response() PrivateEndpointConnectionListResponse -1. PrivateEndpointConnectionListResponseIterator.Value() PrivateEndpointConnectionResource -1. PrivateEndpointConnectionListResponsePage.NotDone() bool -1. PrivateEndpointConnectionListResponsePage.Response() PrivateEndpointConnectionListResponse -1. PrivateEndpointConnectionListResponsePage.Values() []PrivateEndpointConnectionResource -1. PrivateEndpointConnectionResource.MarshalJSON() ([]byte, error) -1. PrivateLinkConnectionApprovalRequestResource.MarshalJSON() ([]byte, error) -1. PrivateLinkResource.MarshalJSON() ([]byte, error) -1. PrivateLinkResourcesClient.Get(context.Context, string, string) (PrivateLinkResourcesWrapper, error) -1. PrivateLinkResourcesClient.GetPreparer(context.Context, string, string) (*http.Request, error) -1. PrivateLinkResourcesClient.GetResponder(*http.Response) (PrivateLinkResourcesWrapper, error) -1. PrivateLinkResourcesClient.GetSender(*http.Request) (*http.Response, error) -1. QuickBooksLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. QuickBooksLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. RemotePrivateEndpointConnection.MarshalJSON() ([]byte, error) -1. ResponsysLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. ResponsysLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. RestServiceLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. RestServiceLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SQLServerLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SQLServerLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SalesforceLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SalesforceLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SalesforceMarketingCloudLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SalesforceMarketingCloudLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SalesforceServiceCloudLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SalesforceServiceCloudLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SapBWLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SapBWLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SapCloudForCustomerLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SapCloudForCustomerLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SapEccLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SapEccLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SapHanaLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SapHanaLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SapOpenHubLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SapOpenHubLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SapTableLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SapTableLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. ServiceNowLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. ServiceNowLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SftpLocation.AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) -1. SftpLocation.AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) -1. SftpReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. SftpReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. SftpServerLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SftpServerLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SharePointOnlineListLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SharePointOnlineListLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. ShopifyLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. ShopifyLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SnowflakeLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SnowflakeLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SparkLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SparkLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. SquareLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SquareLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. StoreReadSettings.AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) -1. StoreReadSettings.AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) -1. SybaseLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. SybaseLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. TeradataLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. TeradataLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. VerticaLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. VerticaLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. WebLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. WebLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. XeroLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. XeroLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) -1. ZohoLinkedService.AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) -1. ZohoLinkedService.AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) +1. *MongoDbAtlasSink.UnmarshalJSON([]byte) error +1. *MongoDbV2Sink.UnmarshalJSON([]byte) error +1. *SQLAlwaysEncryptedProperties.UnmarshalJSON([]byte) error +1. AvroSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AvroSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. AzureBlobFSSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AzureBlobFSSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. AzureDataExplorerSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AzureDataExplorerSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. AzureDataLakeStoreSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AzureDataLakeStoreSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. AzureDatabricksDeltaLakeSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AzureDatabricksDeltaLakeSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. AzureMySQLSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AzureMySQLSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. AzurePostgreSQLSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AzurePostgreSQLSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. AzureQueueSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AzureQueueSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. AzureSQLSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AzureSQLSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. AzureSearchIndexSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AzureSearchIndexSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. AzureTableSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. AzureTableSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. BinarySink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. BinarySink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. BlobSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. BlobSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. CommonDataServiceForAppsSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. CommonDataServiceForAppsSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. CopySink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. CopySink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. CosmosDbMongoDbAPISink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. CosmosDbMongoDbAPISink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. CosmosDbSQLAPISink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. CosmosDbSQLAPISink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. DelimitedTextSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. DelimitedTextSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. DocumentDbCollectionSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. DocumentDbCollectionSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. DynamicsCrmSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. DynamicsCrmSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. DynamicsSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. DynamicsSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. FileSystemSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. FileSystemSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. InformixSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. InformixSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. JSONSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. JSONSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. MicrosoftAccessSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. MicrosoftAccessSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. MongoDbAtlasSink.AsAvroSink() (*AvroSink, bool) +1. MongoDbAtlasSink.AsAzureBlobFSSink() (*AzureBlobFSSink, bool) +1. MongoDbAtlasSink.AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) +1. MongoDbAtlasSink.AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) +1. MongoDbAtlasSink.AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) +1. MongoDbAtlasSink.AsAzureMySQLSink() (*AzureMySQLSink, bool) +1. MongoDbAtlasSink.AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) +1. MongoDbAtlasSink.AsAzureQueueSink() (*AzureQueueSink, bool) +1. MongoDbAtlasSink.AsAzureSQLSink() (*AzureSQLSink, bool) +1. MongoDbAtlasSink.AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) +1. MongoDbAtlasSink.AsAzureTableSink() (*AzureTableSink, bool) +1. MongoDbAtlasSink.AsBasicCopySink() (BasicCopySink, bool) +1. MongoDbAtlasSink.AsBinarySink() (*BinarySink, bool) +1. MongoDbAtlasSink.AsBlobSink() (*BlobSink, bool) +1. MongoDbAtlasSink.AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) +1. MongoDbAtlasSink.AsCopySink() (*CopySink, bool) +1. MongoDbAtlasSink.AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) +1. MongoDbAtlasSink.AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) +1. MongoDbAtlasSink.AsDelimitedTextSink() (*DelimitedTextSink, bool) +1. MongoDbAtlasSink.AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) +1. MongoDbAtlasSink.AsDynamicsCrmSink() (*DynamicsCrmSink, bool) +1. MongoDbAtlasSink.AsDynamicsSink() (*DynamicsSink, bool) +1. MongoDbAtlasSink.AsFileSystemSink() (*FileSystemSink, bool) +1. MongoDbAtlasSink.AsInformixSink() (*InformixSink, bool) +1. MongoDbAtlasSink.AsJSONSink() (*JSONSink, bool) +1. MongoDbAtlasSink.AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) +1. MongoDbAtlasSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. MongoDbAtlasSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. MongoDbAtlasSink.AsOdbcSink() (*OdbcSink, bool) +1. MongoDbAtlasSink.AsOracleSink() (*OracleSink, bool) +1. MongoDbAtlasSink.AsOrcSink() (*OrcSink, bool) +1. MongoDbAtlasSink.AsParquetSink() (*ParquetSink, bool) +1. MongoDbAtlasSink.AsRestSink() (*RestSink, bool) +1. MongoDbAtlasSink.AsSQLDWSink() (*SQLDWSink, bool) +1. MongoDbAtlasSink.AsSQLMISink() (*SQLMISink, bool) +1. MongoDbAtlasSink.AsSQLServerSink() (*SQLServerSink, bool) +1. MongoDbAtlasSink.AsSQLSink() (*SQLSink, bool) +1. MongoDbAtlasSink.AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) +1. MongoDbAtlasSink.AsSalesforceSink() (*SalesforceSink, bool) +1. MongoDbAtlasSink.AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) +1. MongoDbAtlasSink.AsSnowflakeSink() (*SnowflakeSink, bool) +1. MongoDbAtlasSink.MarshalJSON() ([]byte, error) +1. MongoDbV2Sink.AsAvroSink() (*AvroSink, bool) +1. MongoDbV2Sink.AsAzureBlobFSSink() (*AzureBlobFSSink, bool) +1. MongoDbV2Sink.AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) +1. MongoDbV2Sink.AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) +1. MongoDbV2Sink.AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) +1. MongoDbV2Sink.AsAzureMySQLSink() (*AzureMySQLSink, bool) +1. MongoDbV2Sink.AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) +1. MongoDbV2Sink.AsAzureQueueSink() (*AzureQueueSink, bool) +1. MongoDbV2Sink.AsAzureSQLSink() (*AzureSQLSink, bool) +1. MongoDbV2Sink.AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) +1. MongoDbV2Sink.AsAzureTableSink() (*AzureTableSink, bool) +1. MongoDbV2Sink.AsBasicCopySink() (BasicCopySink, bool) +1. MongoDbV2Sink.AsBinarySink() (*BinarySink, bool) +1. MongoDbV2Sink.AsBlobSink() (*BlobSink, bool) +1. MongoDbV2Sink.AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) +1. MongoDbV2Sink.AsCopySink() (*CopySink, bool) +1. MongoDbV2Sink.AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) +1. MongoDbV2Sink.AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) +1. MongoDbV2Sink.AsDelimitedTextSink() (*DelimitedTextSink, bool) +1. MongoDbV2Sink.AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) +1. MongoDbV2Sink.AsDynamicsCrmSink() (*DynamicsCrmSink, bool) +1. MongoDbV2Sink.AsDynamicsSink() (*DynamicsSink, bool) +1. MongoDbV2Sink.AsFileSystemSink() (*FileSystemSink, bool) +1. MongoDbV2Sink.AsInformixSink() (*InformixSink, bool) +1. MongoDbV2Sink.AsJSONSink() (*JSONSink, bool) +1. MongoDbV2Sink.AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) +1. MongoDbV2Sink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. MongoDbV2Sink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. MongoDbV2Sink.AsOdbcSink() (*OdbcSink, bool) +1. MongoDbV2Sink.AsOracleSink() (*OracleSink, bool) +1. MongoDbV2Sink.AsOrcSink() (*OrcSink, bool) +1. MongoDbV2Sink.AsParquetSink() (*ParquetSink, bool) +1. MongoDbV2Sink.AsRestSink() (*RestSink, bool) +1. MongoDbV2Sink.AsSQLDWSink() (*SQLDWSink, bool) +1. MongoDbV2Sink.AsSQLMISink() (*SQLMISink, bool) +1. MongoDbV2Sink.AsSQLServerSink() (*SQLServerSink, bool) +1. MongoDbV2Sink.AsSQLSink() (*SQLSink, bool) +1. MongoDbV2Sink.AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) +1. MongoDbV2Sink.AsSalesforceSink() (*SalesforceSink, bool) +1. MongoDbV2Sink.AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) +1. MongoDbV2Sink.AsSnowflakeSink() (*SnowflakeSink, bool) +1. MongoDbV2Sink.MarshalJSON() ([]byte, error) +1. OdbcSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. OdbcSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. OracleSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. OracleSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. OrcSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. OrcSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. ParquetSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. ParquetSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. PossibleSQLAlwaysEncryptedAkvAuthTypeValues() []SQLAlwaysEncryptedAkvAuthType +1. RestSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. RestSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. SQLDWSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. SQLDWSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. SQLMISink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. SQLMISink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. SQLServerSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. SQLServerSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. SQLSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. SQLSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. SalesforceServiceCloudSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. SalesforceServiceCloudSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. SalesforceSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. SalesforceSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. SapCloudForCustomerSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. SapCloudForCustomerSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) +1. SnowflakeSink.AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) +1. SnowflakeSink.AsMongoDbV2Sink() (*MongoDbV2Sink, bool) ## Struct Changes ### New Structs -1. AmazonS3CompatibleLinkedService -1. AmazonS3CompatibleLinkedServiceTypeProperties -1. AmazonS3CompatibleLocation -1. AmazonS3CompatibleReadSettings -1. ArmIDWrapper -1. OracleCloudStorageLinkedService -1. OracleCloudStorageLinkedServiceTypeProperties -1. OracleCloudStorageLocation -1. OracleCloudStorageReadSettings -1. PipelineElapsedTimeMetricPolicy -1. PipelinePolicy -1. PrivateEndPointConnectionsClient -1. PrivateEndpointConnectionClient -1. PrivateEndpointConnectionListResponse -1. PrivateEndpointConnectionListResponseIterator -1. PrivateEndpointConnectionListResponsePage -1. PrivateEndpointConnectionResource -1. PrivateLinkConnectionApprovalRequest -1. PrivateLinkConnectionApprovalRequestResource -1. PrivateLinkConnectionState -1. PrivateLinkResource -1. PrivateLinkResourceProperties -1. PrivateLinkResourcesClient -1. PrivateLinkResourcesWrapper -1. RemotePrivateEndpointConnection +1. MongoDbAtlasSink +1. MongoDbV2Sink +1. SQLAlwaysEncryptedProperties ### New Struct Fields -1. AzureBlobStorageLinkedServiceTypeProperties.AccountKind -1. CosmosDbLinkedServiceTypeProperties.AzureCloudType -1. CosmosDbLinkedServiceTypeProperties.ConnectionMode -1. CosmosDbLinkedServiceTypeProperties.ServicePrincipalCredential -1. CosmosDbLinkedServiceTypeProperties.ServicePrincipalCredentialType -1. CosmosDbLinkedServiceTypeProperties.ServicePrincipalID -1. CosmosDbLinkedServiceTypeProperties.Tenant -1. HTTPLinkedServiceTypeProperties.AuthHeaders -1. ODataLinkedServiceTypeProperties.AuthHeaders -1. Pipeline.Policy -1. RestServiceLinkedServiceTypeProperties.AuthHeaders +1. AzureSQLDatabaseLinkedServiceTypeProperties.AlwaysEncryptedSettings +1. AzureSQLMILinkedServiceTypeProperties.AlwaysEncryptedSettings +1. SQLServerLinkedServiceTypeProperties.AlwaysEncryptedSettings diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/_meta.json b/services/datafactory/mgmt/2018-06-01/datafactory/_meta.json deleted file mode 100644 index ff6701a675b8..000000000000 --- a/services/datafactory/mgmt/2018-06-01/datafactory/_meta.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "commit": "e0f8b9ab0f5fe5e71b7429ebfea8a33c19ec9d8d", - "readme": "/_/azure-rest-api-specs/specification/datafactory/resource-manager/readme.md", - "tag": "package-2018-06", - "use": "@microsoft.azure/autorest.go@2.1.178", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.178 --go --verbose --go-sdk-folder=/_/azure-sdk-for-go --tag=package-2018-06 --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/datafactory/resource-manager/readme.md", - "additional_properties": { - "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" - } -} \ No newline at end of file diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/enums.go b/services/datafactory/mgmt/2018-06-01/datafactory/enums.go index 0267d40c12ff..0b162f3ff4cf 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/enums.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/enums.go @@ -334,15 +334,15 @@ func PossibleDynamicsAuthenticationTypeValues() []DynamicsAuthenticationType { type DynamicsDeploymentType string const ( - // Online ... - Online DynamicsDeploymentType = "Online" // OnPremisesWithIfd ... OnPremisesWithIfd DynamicsDeploymentType = "OnPremisesWithIfd" + // Online ... + Online DynamicsDeploymentType = "Online" ) // PossibleDynamicsDeploymentTypeValues returns an array of possible values for the DynamicsDeploymentType const type. func PossibleDynamicsDeploymentTypeValues() []DynamicsDeploymentType { - return []DynamicsDeploymentType{Online, OnPremisesWithIfd} + return []DynamicsDeploymentType{OnPremisesWithIfd, Online} } // DynamicsSinkWriteBehavior enumerates the values for dynamics sink write behavior. @@ -496,6 +496,27 @@ func PossibleHDInsightActivityDebugInfoOptionValues() []HDInsightActivityDebugIn return []HDInsightActivityDebugInfoOption{HDInsightActivityDebugInfoOptionAlways, HDInsightActivityDebugInfoOptionFailure, HDInsightActivityDebugInfoOptionNone} } +// HTTPAuthenticationType enumerates the values for http authentication type. +type HTTPAuthenticationType string + +const ( + // HTTPAuthenticationTypeAnonymous ... + HTTPAuthenticationTypeAnonymous HTTPAuthenticationType = "Anonymous" + // HTTPAuthenticationTypeBasic ... + HTTPAuthenticationTypeBasic HTTPAuthenticationType = "Basic" + // HTTPAuthenticationTypeClientCertificate ... + HTTPAuthenticationTypeClientCertificate HTTPAuthenticationType = "ClientCertificate" + // HTTPAuthenticationTypeDigest ... + HTTPAuthenticationTypeDigest HTTPAuthenticationType = "Digest" + // HTTPAuthenticationTypeWindows ... + HTTPAuthenticationTypeWindows HTTPAuthenticationType = "Windows" +) + +// PossibleHTTPAuthenticationTypeValues returns an array of possible values for the HTTPAuthenticationType const type. +func PossibleHTTPAuthenticationTypeValues() []HTTPAuthenticationType { + return []HTTPAuthenticationType{HTTPAuthenticationTypeAnonymous, HTTPAuthenticationTypeBasic, HTTPAuthenticationTypeClientCertificate, HTTPAuthenticationTypeDigest, HTTPAuthenticationTypeWindows} +} + // HiveAuthenticationType enumerates the values for hive authentication type. type HiveAuthenticationType string @@ -549,27 +570,6 @@ func PossibleHiveThriftTransportProtocolValues() []HiveThriftTransportProtocol { return []HiveThriftTransportProtocol{Binary, HTTP, SASL} } -// HTTPAuthenticationType enumerates the values for http authentication type. -type HTTPAuthenticationType string - -const ( - // HTTPAuthenticationTypeAnonymous ... - HTTPAuthenticationTypeAnonymous HTTPAuthenticationType = "Anonymous" - // HTTPAuthenticationTypeBasic ... - HTTPAuthenticationTypeBasic HTTPAuthenticationType = "Basic" - // HTTPAuthenticationTypeClientCertificate ... - HTTPAuthenticationTypeClientCertificate HTTPAuthenticationType = "ClientCertificate" - // HTTPAuthenticationTypeDigest ... - HTTPAuthenticationTypeDigest HTTPAuthenticationType = "Digest" - // HTTPAuthenticationTypeWindows ... - HTTPAuthenticationTypeWindows HTTPAuthenticationType = "Windows" -) - -// PossibleHTTPAuthenticationTypeValues returns an array of possible values for the HTTPAuthenticationType const type. -func PossibleHTTPAuthenticationTypeValues() []HTTPAuthenticationType { - return []HTTPAuthenticationType{HTTPAuthenticationTypeAnonymous, HTTPAuthenticationTypeBasic, HTTPAuthenticationTypeClientCertificate, HTTPAuthenticationTypeDigest, HTTPAuthenticationTypeWindows} -} - // ImpalaAuthenticationType enumerates the values for impala authentication type. type ImpalaAuthenticationType string @@ -1131,6 +1131,38 @@ func PossibleRunQueryOrderByFieldValues() []RunQueryOrderByField { return []RunQueryOrderByField{RunQueryOrderByFieldActivityName, RunQueryOrderByFieldActivityRunEnd, RunQueryOrderByFieldActivityRunStart, RunQueryOrderByFieldPipelineName, RunQueryOrderByFieldRunEnd, RunQueryOrderByFieldRunStart, RunQueryOrderByFieldStatus, RunQueryOrderByFieldTriggerName, RunQueryOrderByFieldTriggerRunTimestamp} } +// SQLAlwaysEncryptedAkvAuthType enumerates the values for sql always encrypted akv auth type. +type SQLAlwaysEncryptedAkvAuthType string + +const ( + // ManagedIdentity ... + ManagedIdentity SQLAlwaysEncryptedAkvAuthType = "ManagedIdentity" + // ServicePrincipal ... + ServicePrincipal SQLAlwaysEncryptedAkvAuthType = "ServicePrincipal" +) + +// PossibleSQLAlwaysEncryptedAkvAuthTypeValues returns an array of possible values for the SQLAlwaysEncryptedAkvAuthType const type. +func PossibleSQLAlwaysEncryptedAkvAuthTypeValues() []SQLAlwaysEncryptedAkvAuthType { + return []SQLAlwaysEncryptedAkvAuthType{ManagedIdentity, ServicePrincipal} +} + +// SQLPartitionOption enumerates the values for sql partition option. +type SQLPartitionOption string + +const ( + // SQLPartitionOptionDynamicRange ... + SQLPartitionOptionDynamicRange SQLPartitionOption = "DynamicRange" + // SQLPartitionOptionNone ... + SQLPartitionOptionNone SQLPartitionOption = "None" + // SQLPartitionOptionPhysicalPartitionsOfTable ... + SQLPartitionOptionPhysicalPartitionsOfTable SQLPartitionOption = "PhysicalPartitionsOfTable" +) + +// PossibleSQLPartitionOptionValues returns an array of possible values for the SQLPartitionOption const type. +func PossibleSQLPartitionOptionValues() []SQLPartitionOption { + return []SQLPartitionOption{SQLPartitionOptionDynamicRange, SQLPartitionOptionNone, SQLPartitionOptionPhysicalPartitionsOfTable} +} + // SalesforceSinkWriteBehavior enumerates the values for salesforce sink write behavior. type SalesforceSinkWriteBehavior string @@ -1342,23 +1374,6 @@ func PossibleSparkThriftTransportProtocolValues() []SparkThriftTransportProtocol return []SparkThriftTransportProtocol{SparkThriftTransportProtocolBinary, SparkThriftTransportProtocolHTTP, SparkThriftTransportProtocolSASL} } -// SQLPartitionOption enumerates the values for sql partition option. -type SQLPartitionOption string - -const ( - // SQLPartitionOptionDynamicRange ... - SQLPartitionOptionDynamicRange SQLPartitionOption = "DynamicRange" - // SQLPartitionOptionNone ... - SQLPartitionOptionNone SQLPartitionOption = "None" - // SQLPartitionOptionPhysicalPartitionsOfTable ... - SQLPartitionOptionPhysicalPartitionsOfTable SQLPartitionOption = "PhysicalPartitionsOfTable" -) - -// PossibleSQLPartitionOptionValues returns an array of possible values for the SQLPartitionOption const type. -func PossibleSQLPartitionOptionValues() []SQLPartitionOption { - return []SQLPartitionOption{SQLPartitionOptionDynamicRange, SQLPartitionOptionNone, SQLPartitionOptionPhysicalPartitionsOfTable} -} - // SsisObjectMetadataType enumerates the values for ssis object metadata type. type SsisObjectMetadataType string @@ -1561,14 +1576,14 @@ const ( TypeCopy TypeBasicActivity = "Copy" // TypeCustom ... TypeCustom TypeBasicActivity = "Custom" + // TypeDataLakeAnalyticsUSQL ... + TypeDataLakeAnalyticsUSQL TypeBasicActivity = "DataLakeAnalyticsU-SQL" // TypeDatabricksNotebook ... TypeDatabricksNotebook TypeBasicActivity = "DatabricksNotebook" // TypeDatabricksSparkJar ... TypeDatabricksSparkJar TypeBasicActivity = "DatabricksSparkJar" // TypeDatabricksSparkPython ... TypeDatabricksSparkPython TypeBasicActivity = "DatabricksSparkPython" - // TypeDataLakeAnalyticsUSQL ... - TypeDataLakeAnalyticsUSQL TypeBasicActivity = "DataLakeAnalyticsU-SQL" // TypeDelete ... TypeDelete TypeBasicActivity = "Delete" // TypeExecuteDataFlow ... @@ -1599,10 +1614,10 @@ const ( TypeIfCondition TypeBasicActivity = "IfCondition" // TypeLookup ... TypeLookup TypeBasicActivity = "Lookup" - // TypeSetVariable ... - TypeSetVariable TypeBasicActivity = "SetVariable" // TypeSQLServerStoredProcedure ... TypeSQLServerStoredProcedure TypeBasicActivity = "SqlServerStoredProcedure" + // TypeSetVariable ... + TypeSetVariable TypeBasicActivity = "SetVariable" // TypeSwitch ... TypeSwitch TypeBasicActivity = "Switch" // TypeUntil ... @@ -1619,7 +1634,7 @@ const ( // PossibleTypeBasicActivityValues returns an array of possible values for the TypeBasicActivity const type. func PossibleTypeBasicActivityValues() []TypeBasicActivity { - return []TypeBasicActivity{TypeActivity, TypeAppendVariable, TypeAzureDataExplorerCommand, TypeAzureFunctionActivity, TypeAzureMLBatchExecution, TypeAzureMLExecutePipeline, TypeAzureMLUpdateResource, TypeContainer, TypeCopy, TypeCustom, TypeDatabricksNotebook, TypeDatabricksSparkJar, TypeDatabricksSparkPython, TypeDataLakeAnalyticsUSQL, TypeDelete, TypeExecuteDataFlow, TypeExecutePipeline, TypeExecuteSSISPackage, TypeExecution, TypeFilter, TypeForEach, TypeGetMetadata, TypeHDInsightHive, TypeHDInsightMapReduce, TypeHDInsightPig, TypeHDInsightSpark, TypeHDInsightStreaming, TypeIfCondition, TypeLookup, TypeSetVariable, TypeSQLServerStoredProcedure, TypeSwitch, TypeUntil, TypeValidation, TypeWait, TypeWebActivity, TypeWebHook} + return []TypeBasicActivity{TypeActivity, TypeAppendVariable, TypeAzureDataExplorerCommand, TypeAzureFunctionActivity, TypeAzureMLBatchExecution, TypeAzureMLExecutePipeline, TypeAzureMLUpdateResource, TypeContainer, TypeCopy, TypeCustom, TypeDataLakeAnalyticsUSQL, TypeDatabricksNotebook, TypeDatabricksSparkJar, TypeDatabricksSparkPython, TypeDelete, TypeExecuteDataFlow, TypeExecutePipeline, TypeExecuteSSISPackage, TypeExecution, TypeFilter, TypeForEach, TypeGetMetadata, TypeHDInsightHive, TypeHDInsightMapReduce, TypeHDInsightPig, TypeHDInsightSpark, TypeHDInsightStreaming, TypeIfCondition, TypeLookup, TypeSQLServerStoredProcedure, TypeSetVariable, TypeSwitch, TypeUntil, TypeValidation, TypeWait, TypeWebActivity, TypeWebHook} } // TypeBasicCompressionReadSettings enumerates the values for type basic compression read settings. @@ -1649,22 +1664,22 @@ const ( TypeAvroSink TypeBasicCopySink = "AvroSink" // TypeAzureBlobFSSink ... TypeAzureBlobFSSink TypeBasicCopySink = "AzureBlobFSSink" - // TypeAzureDatabricksDeltaLakeSink ... - TypeAzureDatabricksDeltaLakeSink TypeBasicCopySink = "AzureDatabricksDeltaLakeSink" // TypeAzureDataExplorerSink ... TypeAzureDataExplorerSink TypeBasicCopySink = "AzureDataExplorerSink" // TypeAzureDataLakeStoreSink ... TypeAzureDataLakeStoreSink TypeBasicCopySink = "AzureDataLakeStoreSink" + // TypeAzureDatabricksDeltaLakeSink ... + TypeAzureDatabricksDeltaLakeSink TypeBasicCopySink = "AzureDatabricksDeltaLakeSink" // TypeAzureMySQLSink ... TypeAzureMySQLSink TypeBasicCopySink = "AzureMySqlSink" // TypeAzurePostgreSQLSink ... TypeAzurePostgreSQLSink TypeBasicCopySink = "AzurePostgreSqlSink" // TypeAzureQueueSink ... TypeAzureQueueSink TypeBasicCopySink = "AzureQueueSink" - // TypeAzureSearchIndexSink ... - TypeAzureSearchIndexSink TypeBasicCopySink = "AzureSearchIndexSink" // TypeAzureSQLSink ... TypeAzureSQLSink TypeBasicCopySink = "AzureSqlSink" + // TypeAzureSearchIndexSink ... + TypeAzureSearchIndexSink TypeBasicCopySink = "AzureSearchIndexSink" // TypeAzureTableSink ... TypeAzureTableSink TypeBasicCopySink = "AzureTableSink" // TypeBinarySink ... @@ -1695,6 +1710,10 @@ const ( TypeJSONSink TypeBasicCopySink = "JsonSink" // TypeMicrosoftAccessSink ... TypeMicrosoftAccessSink TypeBasicCopySink = "MicrosoftAccessSink" + // TypeMongoDbAtlasSink ... + TypeMongoDbAtlasSink TypeBasicCopySink = "MongoDbAtlasSink" + // TypeMongoDbV2Sink ... + TypeMongoDbV2Sink TypeBasicCopySink = "MongoDbV2Sink" // TypeOdbcSink ... TypeOdbcSink TypeBasicCopySink = "OdbcSink" // TypeOracleSink ... @@ -1705,14 +1724,6 @@ const ( TypeParquetSink TypeBasicCopySink = "ParquetSink" // TypeRestSink ... TypeRestSink TypeBasicCopySink = "RestSink" - // TypeSalesforceServiceCloudSink ... - TypeSalesforceServiceCloudSink TypeBasicCopySink = "SalesforceServiceCloudSink" - // TypeSalesforceSink ... - TypeSalesforceSink TypeBasicCopySink = "SalesforceSink" - // TypeSapCloudForCustomerSink ... - TypeSapCloudForCustomerSink TypeBasicCopySink = "SapCloudForCustomerSink" - // TypeSnowflakeSink ... - TypeSnowflakeSink TypeBasicCopySink = "SnowflakeSink" // TypeSQLDWSink ... TypeSQLDWSink TypeBasicCopySink = "SqlDWSink" // TypeSQLMISink ... @@ -1721,11 +1732,19 @@ const ( TypeSQLServerSink TypeBasicCopySink = "SqlServerSink" // TypeSQLSink ... TypeSQLSink TypeBasicCopySink = "SqlSink" + // TypeSalesforceServiceCloudSink ... + TypeSalesforceServiceCloudSink TypeBasicCopySink = "SalesforceServiceCloudSink" + // TypeSalesforceSink ... + TypeSalesforceSink TypeBasicCopySink = "SalesforceSink" + // TypeSapCloudForCustomerSink ... + TypeSapCloudForCustomerSink TypeBasicCopySink = "SapCloudForCustomerSink" + // TypeSnowflakeSink ... + TypeSnowflakeSink TypeBasicCopySink = "SnowflakeSink" ) // PossibleTypeBasicCopySinkValues returns an array of possible values for the TypeBasicCopySink const type. func PossibleTypeBasicCopySinkValues() []TypeBasicCopySink { - return []TypeBasicCopySink{TypeAvroSink, TypeAzureBlobFSSink, TypeAzureDatabricksDeltaLakeSink, TypeAzureDataExplorerSink, TypeAzureDataLakeStoreSink, TypeAzureMySQLSink, TypeAzurePostgreSQLSink, TypeAzureQueueSink, TypeAzureSearchIndexSink, TypeAzureSQLSink, TypeAzureTableSink, TypeBinarySink, TypeBlobSink, TypeCommonDataServiceForAppsSink, TypeCopySink, TypeCosmosDbMongoDbAPISink, TypeCosmosDbSQLAPISink, TypeDelimitedTextSink, TypeDocumentDbCollectionSink, TypeDynamicsCrmSink, TypeDynamicsSink, TypeFileSystemSink, TypeInformixSink, TypeJSONSink, TypeMicrosoftAccessSink, TypeOdbcSink, TypeOracleSink, TypeOrcSink, TypeParquetSink, TypeRestSink, TypeSalesforceServiceCloudSink, TypeSalesforceSink, TypeSapCloudForCustomerSink, TypeSnowflakeSink, TypeSQLDWSink, TypeSQLMISink, TypeSQLServerSink, TypeSQLSink} + return []TypeBasicCopySink{TypeAvroSink, TypeAzureBlobFSSink, TypeAzureDataExplorerSink, TypeAzureDataLakeStoreSink, TypeAzureDatabricksDeltaLakeSink, TypeAzureMySQLSink, TypeAzurePostgreSQLSink, TypeAzureQueueSink, TypeAzureSQLSink, TypeAzureSearchIndexSink, TypeAzureTableSink, TypeBinarySink, TypeBlobSink, TypeCommonDataServiceForAppsSink, TypeCopySink, TypeCosmosDbMongoDbAPISink, TypeCosmosDbSQLAPISink, TypeDelimitedTextSink, TypeDocumentDbCollectionSink, TypeDynamicsCrmSink, TypeDynamicsSink, TypeFileSystemSink, TypeInformixSink, TypeJSONSink, TypeMicrosoftAccessSink, TypeMongoDbAtlasSink, TypeMongoDbV2Sink, TypeOdbcSink, TypeOracleSink, TypeOrcSink, TypeParquetSink, TypeRestSink, TypeSQLDWSink, TypeSQLMISink, TypeSQLServerSink, TypeSQLSink, TypeSalesforceServiceCloudSink, TypeSalesforceSink, TypeSapCloudForCustomerSink, TypeSnowflakeSink} } // TypeBasicCopySource enumerates the values for type basic copy source. @@ -1740,12 +1759,12 @@ const ( TypeAvroSource TypeBasicCopySource = "AvroSource" // TypeAzureBlobFSSource ... TypeAzureBlobFSSource TypeBasicCopySource = "AzureBlobFSSource" - // TypeAzureDatabricksDeltaLakeSource ... - TypeAzureDatabricksDeltaLakeSource TypeBasicCopySource = "AzureDatabricksDeltaLakeSource" // TypeAzureDataExplorerSource ... TypeAzureDataExplorerSource TypeBasicCopySource = "AzureDataExplorerSource" // TypeAzureDataLakeStoreSource ... TypeAzureDataLakeStoreSource TypeBasicCopySource = "AzureDataLakeStoreSource" + // TypeAzureDatabricksDeltaLakeSource ... + TypeAzureDatabricksDeltaLakeSource TypeBasicCopySource = "AzureDatabricksDeltaLakeSource" // TypeAzureMariaDBSource ... TypeAzureMariaDBSource TypeBasicCopySource = "AzureMariaDBSource" // TypeAzureMySQLSource ... @@ -1802,22 +1821,22 @@ const ( TypeGreenplumSource TypeBasicCopySource = "GreenplumSource" // TypeHBaseSource ... TypeHBaseSource TypeBasicCopySource = "HBaseSource" + // TypeHTTPSource ... + TypeHTTPSource TypeBasicCopySource = "HttpSource" // TypeHdfsSource ... TypeHdfsSource TypeBasicCopySource = "HdfsSource" // TypeHiveSource ... TypeHiveSource TypeBasicCopySource = "HiveSource" - // TypeHTTPSource ... - TypeHTTPSource TypeBasicCopySource = "HttpSource" // TypeHubspotSource ... TypeHubspotSource TypeBasicCopySource = "HubspotSource" // TypeImpalaSource ... TypeImpalaSource TypeBasicCopySource = "ImpalaSource" // TypeInformixSource ... TypeInformixSource TypeBasicCopySource = "InformixSource" - // TypeJiraSource ... - TypeJiraSource TypeBasicCopySource = "JiraSource" // TypeJSONSource ... TypeJSONSource TypeBasicCopySource = "JsonSource" + // TypeJiraSource ... + TypeJiraSource TypeBasicCopySource = "JiraSource" // TypeMagentoSource ... TypeMagentoSource TypeBasicCopySource = "MagentoSource" // TypeMariaDBSource ... @@ -1866,6 +1885,14 @@ const ( TypeResponsysSource TypeBasicCopySource = "ResponsysSource" // TypeRestSource ... TypeRestSource TypeBasicCopySource = "RestSource" + // TypeSQLDWSource ... + TypeSQLDWSource TypeBasicCopySource = "SqlDWSource" + // TypeSQLMISource ... + TypeSQLMISource TypeBasicCopySource = "SqlMISource" + // TypeSQLServerSource ... + TypeSQLServerSource TypeBasicCopySource = "SqlServerSource" + // TypeSQLSource ... + TypeSQLSource TypeBasicCopySource = "SqlSource" // TypeSalesforceMarketingCloudSource ... TypeSalesforceMarketingCloudSource TypeBasicCopySource = "SalesforceMarketingCloudSource" // TypeSalesforceServiceCloudSource ... @@ -1894,14 +1921,6 @@ const ( TypeSnowflakeSource TypeBasicCopySource = "SnowflakeSource" // TypeSparkSource ... TypeSparkSource TypeBasicCopySource = "SparkSource" - // TypeSQLDWSource ... - TypeSQLDWSource TypeBasicCopySource = "SqlDWSource" - // TypeSQLMISource ... - TypeSQLMISource TypeBasicCopySource = "SqlMISource" - // TypeSQLServerSource ... - TypeSQLServerSource TypeBasicCopySource = "SqlServerSource" - // TypeSQLSource ... - TypeSQLSource TypeBasicCopySource = "SqlSource" // TypeSquareSource ... TypeSquareSource TypeBasicCopySource = "SquareSource" // TypeSybaseSource ... @@ -1914,17 +1933,17 @@ const ( TypeVerticaSource TypeBasicCopySource = "VerticaSource" // TypeWebSource ... TypeWebSource TypeBasicCopySource = "WebSource" - // TypeXeroSource ... - TypeXeroSource TypeBasicCopySource = "XeroSource" // TypeXMLSource ... TypeXMLSource TypeBasicCopySource = "XmlSource" + // TypeXeroSource ... + TypeXeroSource TypeBasicCopySource = "XeroSource" // TypeZohoSource ... TypeZohoSource TypeBasicCopySource = "ZohoSource" ) // PossibleTypeBasicCopySourceValues returns an array of possible values for the TypeBasicCopySource const type. func PossibleTypeBasicCopySourceValues() []TypeBasicCopySource { - return []TypeBasicCopySource{TypeAmazonMWSSource, TypeAmazonRedshiftSource, TypeAvroSource, TypeAzureBlobFSSource, TypeAzureDatabricksDeltaLakeSource, TypeAzureDataExplorerSource, TypeAzureDataLakeStoreSource, TypeAzureMariaDBSource, TypeAzureMySQLSource, TypeAzurePostgreSQLSource, TypeAzureSQLSource, TypeAzureTableSource, TypeBinarySource, TypeBlobSource, TypeCassandraSource, TypeCommonDataServiceForAppsSource, TypeConcurSource, TypeCopySource, TypeCosmosDbMongoDbAPISource, TypeCosmosDbSQLAPISource, TypeCouchbaseSource, TypeDb2Source, TypeDelimitedTextSource, TypeDocumentDbCollectionSource, TypeDrillSource, TypeDynamicsAXSource, TypeDynamicsCrmSource, TypeDynamicsSource, TypeEloquaSource, TypeExcelSource, TypeFileSystemSource, TypeGoogleAdWordsSource, TypeGoogleBigQuerySource, TypeGreenplumSource, TypeHBaseSource, TypeHdfsSource, TypeHiveSource, TypeHTTPSource, TypeHubspotSource, TypeImpalaSource, TypeInformixSource, TypeJiraSource, TypeJSONSource, TypeMagentoSource, TypeMariaDBSource, TypeMarketoSource, TypeMicrosoftAccessSource, TypeMongoDbAtlasSource, TypeMongoDbSource, TypeMongoDbV2Source, TypeMySQLSource, TypeNetezzaSource, TypeODataSource, TypeOdbcSource, TypeOffice365Source, TypeOracleServiceCloudSource, TypeOracleSource, TypeOrcSource, TypeParquetSource, TypePaypalSource, TypePhoenixSource, TypePostgreSQLSource, TypePrestoSource, TypeQuickBooksSource, TypeRelationalSource, TypeResponsysSource, TypeRestSource, TypeSalesforceMarketingCloudSource, TypeSalesforceServiceCloudSource, TypeSalesforceSource, TypeSapBwSource, TypeSapCloudForCustomerSource, TypeSapEccSource, TypeSapHanaSource, TypeSapOpenHubSource, TypeSapTableSource, TypeServiceNowSource, TypeSharePointOnlineListSource, TypeShopifySource, TypeSnowflakeSource, TypeSparkSource, TypeSQLDWSource, TypeSQLMISource, TypeSQLServerSource, TypeSQLSource, TypeSquareSource, TypeSybaseSource, TypeTabularSource, TypeTeradataSource, TypeVerticaSource, TypeWebSource, TypeXeroSource, TypeXMLSource, TypeZohoSource} + return []TypeBasicCopySource{TypeAmazonMWSSource, TypeAmazonRedshiftSource, TypeAvroSource, TypeAzureBlobFSSource, TypeAzureDataExplorerSource, TypeAzureDataLakeStoreSource, TypeAzureDatabricksDeltaLakeSource, TypeAzureMariaDBSource, TypeAzureMySQLSource, TypeAzurePostgreSQLSource, TypeAzureSQLSource, TypeAzureTableSource, TypeBinarySource, TypeBlobSource, TypeCassandraSource, TypeCommonDataServiceForAppsSource, TypeConcurSource, TypeCopySource, TypeCosmosDbMongoDbAPISource, TypeCosmosDbSQLAPISource, TypeCouchbaseSource, TypeDb2Source, TypeDelimitedTextSource, TypeDocumentDbCollectionSource, TypeDrillSource, TypeDynamicsAXSource, TypeDynamicsCrmSource, TypeDynamicsSource, TypeEloquaSource, TypeExcelSource, TypeFileSystemSource, TypeGoogleAdWordsSource, TypeGoogleBigQuerySource, TypeGreenplumSource, TypeHBaseSource, TypeHTTPSource, TypeHdfsSource, TypeHiveSource, TypeHubspotSource, TypeImpalaSource, TypeInformixSource, TypeJSONSource, TypeJiraSource, TypeMagentoSource, TypeMariaDBSource, TypeMarketoSource, TypeMicrosoftAccessSource, TypeMongoDbAtlasSource, TypeMongoDbSource, TypeMongoDbV2Source, TypeMySQLSource, TypeNetezzaSource, TypeODataSource, TypeOdbcSource, TypeOffice365Source, TypeOracleServiceCloudSource, TypeOracleSource, TypeOrcSource, TypeParquetSource, TypePaypalSource, TypePhoenixSource, TypePostgreSQLSource, TypePrestoSource, TypeQuickBooksSource, TypeRelationalSource, TypeResponsysSource, TypeRestSource, TypeSQLDWSource, TypeSQLMISource, TypeSQLServerSource, TypeSQLSource, TypeSalesforceMarketingCloudSource, TypeSalesforceServiceCloudSource, TypeSalesforceSource, TypeSapBwSource, TypeSapCloudForCustomerSource, TypeSapEccSource, TypeSapHanaSource, TypeSapOpenHubSource, TypeSapTableSource, TypeServiceNowSource, TypeSharePointOnlineListSource, TypeShopifySource, TypeSnowflakeSource, TypeSparkSource, TypeSquareSource, TypeSybaseSource, TypeTabularSource, TypeTeradataSource, TypeVerticaSource, TypeWebSource, TypeXMLSource, TypeXeroSource, TypeZohoSource} } // TypeBasicCopyTranslator enumerates the values for type basic copy translator. @@ -1994,26 +2013,26 @@ const ( TypeAzureBlob TypeBasicDataset = "AzureBlob" // TypeAzureBlobFSFile ... TypeAzureBlobFSFile TypeBasicDataset = "AzureBlobFSFile" - // TypeAzureDatabricksDeltaLakeDataset ... - TypeAzureDatabricksDeltaLakeDataset TypeBasicDataset = "AzureDatabricksDeltaLakeDataset" // TypeAzureDataExplorerTable ... TypeAzureDataExplorerTable TypeBasicDataset = "AzureDataExplorerTable" // TypeAzureDataLakeStoreFile ... TypeAzureDataLakeStoreFile TypeBasicDataset = "AzureDataLakeStoreFile" + // TypeAzureDatabricksDeltaLakeDataset ... + TypeAzureDatabricksDeltaLakeDataset TypeBasicDataset = "AzureDatabricksDeltaLakeDataset" // TypeAzureMariaDBTable ... TypeAzureMariaDBTable TypeBasicDataset = "AzureMariaDBTable" // TypeAzureMySQLTable ... TypeAzureMySQLTable TypeBasicDataset = "AzureMySqlTable" // TypeAzurePostgreSQLTable ... TypeAzurePostgreSQLTable TypeBasicDataset = "AzurePostgreSqlTable" - // TypeAzureSearchIndex ... - TypeAzureSearchIndex TypeBasicDataset = "AzureSearchIndex" // TypeAzureSQLDWTable ... TypeAzureSQLDWTable TypeBasicDataset = "AzureSqlDWTable" // TypeAzureSQLMITable ... TypeAzureSQLMITable TypeBasicDataset = "AzureSqlMITable" // TypeAzureSQLTable ... TypeAzureSQLTable TypeBasicDataset = "AzureSqlTable" + // TypeAzureSearchIndex ... + TypeAzureSearchIndex TypeBasicDataset = "AzureSearchIndex" // TypeAzureTable ... TypeAzureTable TypeBasicDataset = "AzureTable" // TypeBinary ... @@ -2062,20 +2081,20 @@ const ( TypeGreenplumTable TypeBasicDataset = "GreenplumTable" // TypeHBaseObject ... TypeHBaseObject TypeBasicDataset = "HBaseObject" - // TypeHiveObject ... - TypeHiveObject TypeBasicDataset = "HiveObject" // TypeHTTPFile ... TypeHTTPFile TypeBasicDataset = "HttpFile" + // TypeHiveObject ... + TypeHiveObject TypeBasicDataset = "HiveObject" // TypeHubspotObject ... TypeHubspotObject TypeBasicDataset = "HubspotObject" // TypeImpalaObject ... TypeImpalaObject TypeBasicDataset = "ImpalaObject" // TypeInformixTable ... TypeInformixTable TypeBasicDataset = "InformixTable" - // TypeJiraObject ... - TypeJiraObject TypeBasicDataset = "JiraObject" // TypeJSON ... TypeJSON TypeBasicDataset = "Json" + // TypeJiraObject ... + TypeJiraObject TypeBasicDataset = "JiraObject" // TypeMagentoObject ... TypeMagentoObject TypeBasicDataset = "MagentoObject" // TypeMariaDBTable ... @@ -2124,6 +2143,8 @@ const ( TypeResponsysObject TypeBasicDataset = "ResponsysObject" // TypeRestResource ... TypeRestResource TypeBasicDataset = "RestResource" + // TypeSQLServerTable ... + TypeSQLServerTable TypeBasicDataset = "SqlServerTable" // TypeSalesforceMarketingCloudObject ... TypeSalesforceMarketingCloudObject TypeBasicDataset = "SalesforceMarketingCloudObject" // TypeSalesforceObject ... @@ -2152,8 +2173,6 @@ const ( TypeSnowflakeTable TypeBasicDataset = "SnowflakeTable" // TypeSparkObject ... TypeSparkObject TypeBasicDataset = "SparkObject" - // TypeSQLServerTable ... - TypeSQLServerTable TypeBasicDataset = "SqlServerTable" // TypeSquareObject ... TypeSquareObject TypeBasicDataset = "SquareObject" // TypeSybaseTable ... @@ -2164,17 +2183,17 @@ const ( TypeVerticaTable TypeBasicDataset = "VerticaTable" // TypeWebTable ... TypeWebTable TypeBasicDataset = "WebTable" - // TypeXeroObject ... - TypeXeroObject TypeBasicDataset = "XeroObject" // TypeXML ... TypeXML TypeBasicDataset = "Xml" + // TypeXeroObject ... + TypeXeroObject TypeBasicDataset = "XeroObject" // TypeZohoObject ... TypeZohoObject TypeBasicDataset = "ZohoObject" ) // PossibleTypeBasicDatasetValues returns an array of possible values for the TypeBasicDataset const type. func PossibleTypeBasicDatasetValues() []TypeBasicDataset { - return []TypeBasicDataset{TypeAmazonMWSObject, TypeAmazonRedshiftTable, TypeAmazonS3Object, TypeAvro, TypeAzureBlob, TypeAzureBlobFSFile, TypeAzureDatabricksDeltaLakeDataset, TypeAzureDataExplorerTable, TypeAzureDataLakeStoreFile, TypeAzureMariaDBTable, TypeAzureMySQLTable, TypeAzurePostgreSQLTable, TypeAzureSearchIndex, TypeAzureSQLDWTable, TypeAzureSQLMITable, TypeAzureSQLTable, TypeAzureTable, TypeBinary, TypeCassandraTable, TypeCommonDataServiceForAppsEntity, TypeConcurObject, TypeCosmosDbMongoDbAPICollection, TypeCosmosDbSQLAPICollection, TypeCouchbaseTable, TypeCustomDataset, TypeDataset, TypeDb2Table, TypeDelimitedText, TypeDocumentDbCollection, TypeDrillTable, TypeDynamicsAXResource, TypeDynamicsCrmEntity, TypeDynamicsEntity, TypeEloquaObject, TypeExcel, TypeFileShare, TypeGoogleAdWordsObject, TypeGoogleBigQueryObject, TypeGreenplumTable, TypeHBaseObject, TypeHiveObject, TypeHTTPFile, TypeHubspotObject, TypeImpalaObject, TypeInformixTable, TypeJiraObject, TypeJSON, TypeMagentoObject, TypeMariaDBTable, TypeMarketoObject, TypeMicrosoftAccessTable, TypeMongoDbAtlasCollection, TypeMongoDbCollection, TypeMongoDbV2Collection, TypeMySQLTable, TypeNetezzaTable, TypeODataResource, TypeOdbcTable, TypeOffice365Table, TypeOracleServiceCloudObject, TypeOracleTable, TypeOrc, TypeParquet, TypePaypalObject, TypePhoenixObject, TypePostgreSQLTable, TypePrestoObject, TypeQuickBooksObject, TypeRelationalTable, TypeResponsysObject, TypeRestResource, TypeSalesforceMarketingCloudObject, TypeSalesforceObject, TypeSalesforceServiceCloudObject, TypeSapBwCube, TypeSapCloudForCustomerResource, TypeSapEccResource, TypeSapHanaTable, TypeSapOpenHubTable, TypeSapTableResource, TypeServiceNowObject, TypeSharePointOnlineListResource, TypeShopifyObject, TypeSnowflakeTable, TypeSparkObject, TypeSQLServerTable, TypeSquareObject, TypeSybaseTable, TypeTeradataTable, TypeVerticaTable, TypeWebTable, TypeXeroObject, TypeXML, TypeZohoObject} + return []TypeBasicDataset{TypeAmazonMWSObject, TypeAmazonRedshiftTable, TypeAmazonS3Object, TypeAvro, TypeAzureBlob, TypeAzureBlobFSFile, TypeAzureDataExplorerTable, TypeAzureDataLakeStoreFile, TypeAzureDatabricksDeltaLakeDataset, TypeAzureMariaDBTable, TypeAzureMySQLTable, TypeAzurePostgreSQLTable, TypeAzureSQLDWTable, TypeAzureSQLMITable, TypeAzureSQLTable, TypeAzureSearchIndex, TypeAzureTable, TypeBinary, TypeCassandraTable, TypeCommonDataServiceForAppsEntity, TypeConcurObject, TypeCosmosDbMongoDbAPICollection, TypeCosmosDbSQLAPICollection, TypeCouchbaseTable, TypeCustomDataset, TypeDataset, TypeDb2Table, TypeDelimitedText, TypeDocumentDbCollection, TypeDrillTable, TypeDynamicsAXResource, TypeDynamicsCrmEntity, TypeDynamicsEntity, TypeEloquaObject, TypeExcel, TypeFileShare, TypeGoogleAdWordsObject, TypeGoogleBigQueryObject, TypeGreenplumTable, TypeHBaseObject, TypeHTTPFile, TypeHiveObject, TypeHubspotObject, TypeImpalaObject, TypeInformixTable, TypeJSON, TypeJiraObject, TypeMagentoObject, TypeMariaDBTable, TypeMarketoObject, TypeMicrosoftAccessTable, TypeMongoDbAtlasCollection, TypeMongoDbCollection, TypeMongoDbV2Collection, TypeMySQLTable, TypeNetezzaTable, TypeODataResource, TypeOdbcTable, TypeOffice365Table, TypeOracleServiceCloudObject, TypeOracleTable, TypeOrc, TypeParquet, TypePaypalObject, TypePhoenixObject, TypePostgreSQLTable, TypePrestoObject, TypeQuickBooksObject, TypeRelationalTable, TypeResponsysObject, TypeRestResource, TypeSQLServerTable, TypeSalesforceMarketingCloudObject, TypeSalesforceObject, TypeSalesforceServiceCloudObject, TypeSapBwCube, TypeSapCloudForCustomerResource, TypeSapEccResource, TypeSapHanaTable, TypeSapOpenHubTable, TypeSapTableResource, TypeServiceNowObject, TypeSharePointOnlineListResource, TypeShopifyObject, TypeSnowflakeTable, TypeSparkObject, TypeSquareObject, TypeSybaseTable, TypeTeradataTable, TypeVerticaTable, TypeWebTable, TypeXML, TypeXeroObject, TypeZohoObject} } // TypeBasicDatasetCompression enumerates the values for type basic dataset compression. @@ -2226,10 +2245,10 @@ const ( TypeFtpServerLocation TypeBasicDatasetLocation = "FtpServerLocation" // TypeGoogleCloudStorageLocation ... TypeGoogleCloudStorageLocation TypeBasicDatasetLocation = "GoogleCloudStorageLocation" - // TypeHdfsLocation ... - TypeHdfsLocation TypeBasicDatasetLocation = "HdfsLocation" // TypeHTTPServerLocation ... TypeHTTPServerLocation TypeBasicDatasetLocation = "HttpServerLocation" + // TypeHdfsLocation ... + TypeHdfsLocation TypeBasicDatasetLocation = "HdfsLocation" // TypeOracleCloudStorageLocation ... TypeOracleCloudStorageLocation TypeBasicDatasetLocation = "OracleCloudStorageLocation" // TypeSftpLocation ... @@ -2238,7 +2257,7 @@ const ( // PossibleTypeBasicDatasetLocationValues returns an array of possible values for the TypeBasicDatasetLocation const type. func PossibleTypeBasicDatasetLocationValues() []TypeBasicDatasetLocation { - return []TypeBasicDatasetLocation{TypeAmazonS3CompatibleLocation, TypeAmazonS3Location, TypeAzureBlobFSLocation, TypeAzureBlobStorageLocation, TypeAzureDataLakeStoreLocation, TypeAzureFileStorageLocation, TypeDatasetLocation, TypeFileServerLocation, TypeFtpServerLocation, TypeGoogleCloudStorageLocation, TypeHdfsLocation, TypeHTTPServerLocation, TypeOracleCloudStorageLocation, TypeSftpLocation} + return []TypeBasicDatasetLocation{TypeAmazonS3CompatibleLocation, TypeAmazonS3Location, TypeAzureBlobFSLocation, TypeAzureBlobStorageLocation, TypeAzureDataLakeStoreLocation, TypeAzureFileStorageLocation, TypeDatasetLocation, TypeFileServerLocation, TypeFtpServerLocation, TypeGoogleCloudStorageLocation, TypeHTTPServerLocation, TypeHdfsLocation, TypeOracleCloudStorageLocation, TypeSftpLocation} } // TypeBasicDatasetStorageFormat enumerates the values for type basic dataset storage format. @@ -2430,40 +2449,40 @@ const ( TypeAzureBlobFS TypeBasicLinkedService = "AzureBlobFS" // TypeAzureBlobStorage ... TypeAzureBlobStorage TypeBasicLinkedService = "AzureBlobStorage" - // TypeAzureDatabricks ... - TypeAzureDatabricks TypeBasicLinkedService = "AzureDatabricks" - // TypeAzureDatabricksDeltaLake ... - TypeAzureDatabricksDeltaLake TypeBasicLinkedService = "AzureDatabricksDeltaLake" // TypeAzureDataExplorer ... TypeAzureDataExplorer TypeBasicLinkedService = "AzureDataExplorer" // TypeAzureDataLakeAnalytics ... TypeAzureDataLakeAnalytics TypeBasicLinkedService = "AzureDataLakeAnalytics" // TypeAzureDataLakeStore ... TypeAzureDataLakeStore TypeBasicLinkedService = "AzureDataLakeStore" + // TypeAzureDatabricks ... + TypeAzureDatabricks TypeBasicLinkedService = "AzureDatabricks" + // TypeAzureDatabricksDeltaLake ... + TypeAzureDatabricksDeltaLake TypeBasicLinkedService = "AzureDatabricksDeltaLake" // TypeAzureFileStorage ... TypeAzureFileStorage TypeBasicLinkedService = "AzureFileStorage" // TypeAzureFunction ... TypeAzureFunction TypeBasicLinkedService = "AzureFunction" // TypeAzureKeyVault ... TypeAzureKeyVault TypeBasicLinkedService = "AzureKeyVault" - // TypeAzureMariaDB ... - TypeAzureMariaDB TypeBasicLinkedService = "AzureMariaDB" // TypeAzureML ... TypeAzureML TypeBasicLinkedService = "AzureML" // TypeAzureMLService ... TypeAzureMLService TypeBasicLinkedService = "AzureMLService" + // TypeAzureMariaDB ... + TypeAzureMariaDB TypeBasicLinkedService = "AzureMariaDB" // TypeAzureMySQL ... TypeAzureMySQL TypeBasicLinkedService = "AzureMySql" // TypeAzurePostgreSQL ... TypeAzurePostgreSQL TypeBasicLinkedService = "AzurePostgreSql" - // TypeAzureSearch ... - TypeAzureSearch TypeBasicLinkedService = "AzureSearch" - // TypeAzureSQLDatabase ... - TypeAzureSQLDatabase TypeBasicLinkedService = "AzureSqlDatabase" // TypeAzureSQLDW ... TypeAzureSQLDW TypeBasicLinkedService = "AzureSqlDW" + // TypeAzureSQLDatabase ... + TypeAzureSQLDatabase TypeBasicLinkedService = "AzureSqlDatabase" // TypeAzureSQLMI ... TypeAzureSQLMI TypeBasicLinkedService = "AzureSqlMI" + // TypeAzureSearch ... + TypeAzureSearch TypeBasicLinkedService = "AzureSearch" // TypeAzureStorage ... TypeAzureStorage TypeBasicLinkedService = "AzureStorage" // TypeAzureTableStorage ... @@ -2508,16 +2527,16 @@ const ( TypeGreenplum TypeBasicLinkedService = "Greenplum" // TypeHBase ... TypeHBase TypeBasicLinkedService = "HBase" - // TypeHdfs ... - TypeHdfs TypeBasicLinkedService = "Hdfs" // TypeHDInsight ... TypeHDInsight TypeBasicLinkedService = "HDInsight" // TypeHDInsightOnDemand ... TypeHDInsightOnDemand TypeBasicLinkedService = "HDInsightOnDemand" - // TypeHive ... - TypeHive TypeBasicLinkedService = "Hive" // TypeHTTPServer ... TypeHTTPServer TypeBasicLinkedService = "HttpServer" + // TypeHdfs ... + TypeHdfs TypeBasicLinkedService = "Hdfs" + // TypeHive ... + TypeHive TypeBasicLinkedService = "Hive" // TypeHubspot ... TypeHubspot TypeBasicLinkedService = "Hubspot" // TypeImpala ... @@ -2572,6 +2591,8 @@ const ( TypeResponsys TypeBasicLinkedService = "Responsys" // TypeRestService ... TypeRestService TypeBasicLinkedService = "RestService" + // TypeSQLServer ... + TypeSQLServer TypeBasicLinkedService = "SqlServer" // TypeSalesforce ... TypeSalesforce TypeBasicLinkedService = "Salesforce" // TypeSalesforceMarketingCloud ... @@ -2602,8 +2623,6 @@ const ( TypeSnowflake TypeBasicLinkedService = "Snowflake" // TypeSpark ... TypeSpark TypeBasicLinkedService = "Spark" - // TypeSQLServer ... - TypeSQLServer TypeBasicLinkedService = "SqlServer" // TypeSquare ... TypeSquare TypeBasicLinkedService = "Square" // TypeSybase ... @@ -2622,7 +2641,7 @@ const ( // PossibleTypeBasicLinkedServiceValues returns an array of possible values for the TypeBasicLinkedService const type. func PossibleTypeBasicLinkedServiceValues() []TypeBasicLinkedService { - return []TypeBasicLinkedService{TypeAmazonMWS, TypeAmazonRedshift, TypeAmazonS3, TypeAmazonS3Compatible, TypeAzureBatch, TypeAzureBlobFS, TypeAzureBlobStorage, TypeAzureDatabricks, TypeAzureDatabricksDeltaLake, TypeAzureDataExplorer, TypeAzureDataLakeAnalytics, TypeAzureDataLakeStore, TypeAzureFileStorage, TypeAzureFunction, TypeAzureKeyVault, TypeAzureMariaDB, TypeAzureML, TypeAzureMLService, TypeAzureMySQL, TypeAzurePostgreSQL, TypeAzureSearch, TypeAzureSQLDatabase, TypeAzureSQLDW, TypeAzureSQLMI, TypeAzureStorage, TypeAzureTableStorage, TypeCassandra, TypeCommonDataServiceForApps, TypeConcur, TypeCosmosDb, TypeCosmosDbMongoDbAPI, TypeCouchbase, TypeCustomDataSource, TypeDb2, TypeDrill, TypeDynamics, TypeDynamicsAX, TypeDynamicsCrm, TypeEloqua, TypeFileServer, TypeFtpServer, TypeGoogleAdWords, TypeGoogleBigQuery, TypeGoogleCloudStorage, TypeGreenplum, TypeHBase, TypeHdfs, TypeHDInsight, TypeHDInsightOnDemand, TypeHive, TypeHTTPServer, TypeHubspot, TypeImpala, TypeInformix, TypeJira, TypeLinkedService, TypeMagento, TypeMariaDB, TypeMarketo, TypeMicrosoftAccess, TypeMongoDb, TypeMongoDbAtlas, TypeMongoDbV2, TypeMySQL, TypeNetezza, TypeOData, TypeOdbc, TypeOffice365, TypeOracle, TypeOracleCloudStorage, TypeOracleServiceCloud, TypePaypal, TypePhoenix, TypePostgreSQL, TypePresto, TypeQuickBooks, TypeResponsys, TypeRestService, TypeSalesforce, TypeSalesforceMarketingCloud, TypeSalesforceServiceCloud, TypeSapBW, TypeSapCloudForCustomer, TypeSapEcc, TypeSapHana, TypeSapOpenHub, TypeSapTable, TypeServiceNow, TypeSftp, TypeSharePointOnlineList, TypeShopify, TypeSnowflake, TypeSpark, TypeSQLServer, TypeSquare, TypeSybase, TypeTeradata, TypeVertica, TypeWeb, TypeXero, TypeZoho} + return []TypeBasicLinkedService{TypeAmazonMWS, TypeAmazonRedshift, TypeAmazonS3, TypeAmazonS3Compatible, TypeAzureBatch, TypeAzureBlobFS, TypeAzureBlobStorage, TypeAzureDataExplorer, TypeAzureDataLakeAnalytics, TypeAzureDataLakeStore, TypeAzureDatabricks, TypeAzureDatabricksDeltaLake, TypeAzureFileStorage, TypeAzureFunction, TypeAzureKeyVault, TypeAzureML, TypeAzureMLService, TypeAzureMariaDB, TypeAzureMySQL, TypeAzurePostgreSQL, TypeAzureSQLDW, TypeAzureSQLDatabase, TypeAzureSQLMI, TypeAzureSearch, TypeAzureStorage, TypeAzureTableStorage, TypeCassandra, TypeCommonDataServiceForApps, TypeConcur, TypeCosmosDb, TypeCosmosDbMongoDbAPI, TypeCouchbase, TypeCustomDataSource, TypeDb2, TypeDrill, TypeDynamics, TypeDynamicsAX, TypeDynamicsCrm, TypeEloqua, TypeFileServer, TypeFtpServer, TypeGoogleAdWords, TypeGoogleBigQuery, TypeGoogleCloudStorage, TypeGreenplum, TypeHBase, TypeHDInsight, TypeHDInsightOnDemand, TypeHTTPServer, TypeHdfs, TypeHive, TypeHubspot, TypeImpala, TypeInformix, TypeJira, TypeLinkedService, TypeMagento, TypeMariaDB, TypeMarketo, TypeMicrosoftAccess, TypeMongoDb, TypeMongoDbAtlas, TypeMongoDbV2, TypeMySQL, TypeNetezza, TypeOData, TypeOdbc, TypeOffice365, TypeOracle, TypeOracleCloudStorage, TypeOracleServiceCloud, TypePaypal, TypePhoenix, TypePostgreSQL, TypePresto, TypeQuickBooks, TypeResponsys, TypeRestService, TypeSQLServer, TypeSalesforce, TypeSalesforceMarketingCloud, TypeSalesforceServiceCloud, TypeSapBW, TypeSapCloudForCustomer, TypeSapEcc, TypeSapHana, TypeSapOpenHub, TypeSapTable, TypeServiceNow, TypeSftp, TypeSharePointOnlineList, TypeShopify, TypeSnowflake, TypeSpark, TypeSquare, TypeSybase, TypeTeradata, TypeVertica, TypeWeb, TypeXero, TypeZoho} } // TypeBasicSsisObjectMetadata enumerates the values for type basic ssis object metadata. @@ -2668,10 +2687,10 @@ const ( TypeFtpReadSettings TypeBasicStoreReadSettings = "FtpReadSettings" // TypeGoogleCloudStorageReadSettings ... TypeGoogleCloudStorageReadSettings TypeBasicStoreReadSettings = "GoogleCloudStorageReadSettings" - // TypeHdfsReadSettings ... - TypeHdfsReadSettings TypeBasicStoreReadSettings = "HdfsReadSettings" // TypeHTTPReadSettings ... TypeHTTPReadSettings TypeBasicStoreReadSettings = "HttpReadSettings" + // TypeHdfsReadSettings ... + TypeHdfsReadSettings TypeBasicStoreReadSettings = "HdfsReadSettings" // TypeOracleCloudStorageReadSettings ... TypeOracleCloudStorageReadSettings TypeBasicStoreReadSettings = "OracleCloudStorageReadSettings" // TypeSftpReadSettings ... @@ -2682,7 +2701,7 @@ const ( // PossibleTypeBasicStoreReadSettingsValues returns an array of possible values for the TypeBasicStoreReadSettings const type. func PossibleTypeBasicStoreReadSettingsValues() []TypeBasicStoreReadSettings { - return []TypeBasicStoreReadSettings{TypeAmazonS3CompatibleReadSettings, TypeAmazonS3ReadSettings, TypeAzureBlobFSReadSettings, TypeAzureBlobStorageReadSettings, TypeAzureDataLakeStoreReadSettings, TypeAzureFileStorageReadSettings, TypeFileServerReadSettings, TypeFtpReadSettings, TypeGoogleCloudStorageReadSettings, TypeHdfsReadSettings, TypeHTTPReadSettings, TypeOracleCloudStorageReadSettings, TypeSftpReadSettings, TypeStoreReadSettings} + return []TypeBasicStoreReadSettings{TypeAmazonS3CompatibleReadSettings, TypeAmazonS3ReadSettings, TypeAzureBlobFSReadSettings, TypeAzureBlobStorageReadSettings, TypeAzureDataLakeStoreReadSettings, TypeAzureFileStorageReadSettings, TypeFileServerReadSettings, TypeFtpReadSettings, TypeGoogleCloudStorageReadSettings, TypeHTTPReadSettings, TypeHdfsReadSettings, TypeOracleCloudStorageReadSettings, TypeSftpReadSettings, TypeStoreReadSettings} } // TypeBasicStoreWriteSettings enumerates the values for type basic store write settings. diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/services/datafactory/mgmt/2018-06-01/datafactory/models.go index 510931c653d7..7106df84fc86 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/models.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/models.go @@ -9295,7 +9295,7 @@ type AvroSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -9336,6 +9336,16 @@ func (as AvroSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for AvroSink. func (as AvroSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -13824,7 +13834,7 @@ type AzureBlobFSSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -13864,6 +13874,16 @@ func (abfs AzureBlobFSSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureBlobFSSink. func (abfs AzureBlobFSSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -16279,544 +16299,933 @@ func (absws *AzureBlobStorageWriteSettings) UnmarshalJSON(body []byte) error { return nil } -// AzureDatabricksDeltaLakeDataset azure Databricks Delta Lake dataset. -type AzureDatabricksDeltaLakeDataset struct { - // AzureDatabricksDeltaLakeDatasetTypeProperties - Properties specific to this dataset type. - *AzureDatabricksDeltaLakeDatasetTypeProperties `json:"typeProperties,omitempty"` +// AzureDataExplorerCommandActivity azure Data Explorer command activity. +type AzureDataExplorerCommandActivity struct { + // AzureDataExplorerCommandActivityTypeProperties - Azure Data Explorer command activity properties. + *AzureDataExplorerCommandActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) MarshalJSON() ([]byte, error) { - addld.Type = TypeAzureDatabricksDeltaLakeDataset +// MarshalJSON is the custom marshaler for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) MarshalJSON() ([]byte, error) { + adeca.Type = TypeAzureDataExplorerCommand objectMap := make(map[string]interface{}) - if addld.AzureDatabricksDeltaLakeDatasetTypeProperties != nil { - objectMap["typeProperties"] = addld.AzureDatabricksDeltaLakeDatasetTypeProperties + if adeca.AzureDataExplorerCommandActivityTypeProperties != nil { + objectMap["typeProperties"] = adeca.AzureDataExplorerCommandActivityTypeProperties } - if addld.Description != nil { - objectMap["description"] = addld.Description + if adeca.LinkedServiceName != nil { + objectMap["linkedServiceName"] = adeca.LinkedServiceName } - if addld.Structure != nil { - objectMap["structure"] = addld.Structure + if adeca.Policy != nil { + objectMap["policy"] = adeca.Policy } - if addld.Schema != nil { - objectMap["schema"] = addld.Schema + if adeca.Name != nil { + objectMap["name"] = adeca.Name } - if addld.LinkedServiceName != nil { - objectMap["linkedServiceName"] = addld.LinkedServiceName + if adeca.Description != nil { + objectMap["description"] = adeca.Description } - if addld.Parameters != nil { - objectMap["parameters"] = addld.Parameters + if adeca.DependsOn != nil { + objectMap["dependsOn"] = adeca.DependsOn } - if addld.Annotations != nil { - objectMap["annotations"] = addld.Annotations + if adeca.UserProperties != nil { + objectMap["userProperties"] = adeca.UserProperties } - if addld.Folder != nil { - objectMap["folder"] = addld.Folder + if adeca.Type != "" { + objectMap["type"] = adeca.Type } - if addld.Type != "" { - objectMap["type"] = addld.Type + for k, v := range adeca.AdditionalProperties { + objectMap[k] = v } - for k, v := range addld.AdditionalProperties { + return json.Marshal(objectMap) +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return &adeca, true +} + +// AsDeleteActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &adeca, true +} + +// AsWebHookActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsBasicActivity() (BasicActivity, bool) { + return &adeca, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerCommandActivity struct. +func (adeca *AzureDataExplorerCommandActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDataExplorerCommandActivityTypeProperties AzureDataExplorerCommandActivityTypeProperties + err = json.Unmarshal(*v, &azureDataExplorerCommandActivityTypeProperties) + if err != nil { + return err + } + adeca.AzureDataExplorerCommandActivityTypeProperties = &azureDataExplorerCommandActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + adeca.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + adeca.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adeca.AdditionalProperties == nil { + adeca.AdditionalProperties = make(map[string]interface{}) + } + adeca.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + adeca.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + adeca.Description = &description + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + adeca.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + adeca.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adeca.Type = typeVar + } + } + } + + return nil +} + +// AzureDataExplorerCommandActivityTypeProperties azure Data Explorer command activity properties. +type AzureDataExplorerCommandActivityTypeProperties struct { + // Command - A control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType string). + Command interface{} `json:"command,omitempty"` + // CommandTimeout - Control command timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..) + CommandTimeout interface{} `json:"commandTimeout,omitempty"` +} + +// AzureDataExplorerDatasetTypeProperties azure Data Explorer (Kusto) dataset properties. +type AzureDataExplorerDatasetTypeProperties struct { + // Table - The table name of the Azure Data Explorer database. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// AzureDataExplorerLinkedService azure Data Explorer (Kusto) linked service. +type AzureDataExplorerLinkedService struct { + // AzureDataExplorerLinkedServiceTypeProperties - Azure Data Explorer (Kusto) linked service properties. + *AzureDataExplorerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) MarshalJSON() ([]byte, error) { + adels.Type = TypeAzureDataExplorer + objectMap := make(map[string]interface{}) + if adels.AzureDataExplorerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = adels.AzureDataExplorerLinkedServiceTypeProperties + } + if adels.ConnectVia != nil { + objectMap["connectVia"] = adels.ConnectVia + } + if adels.Description != nil { + objectMap["description"] = adels.Description + } + if adels.Parameters != nil { + objectMap["parameters"] = adels.Parameters + } + if adels.Annotations != nil { + objectMap["annotations"] = adels.Annotations + } + if adels.Type != "" { + objectMap["type"] = adels.Type + } + for k, v := range adels.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return &addld, true +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return &adels, true +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDataset() (*Dataset, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsBasicDataset() (BasicDataset, bool) { - return &addld, true +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeDataset struct. -func (addld *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(body []byte) error { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &adels, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerLinkedService struct. +func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -16826,12 +17235,12 @@ func (addld *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureDatabricksDeltaLakeDatasetTypeProperties AzureDatabricksDeltaLakeDatasetTypeProperties - err = json.Unmarshal(*v, &azureDatabricksDeltaLakeDatasetTypeProperties) + var azureDataExplorerLinkedServiceTypeProperties AzureDataExplorerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureDataExplorerLinkedServiceTypeProperties) if err != nil { return err } - addld.AzureDatabricksDeltaLakeDatasetTypeProperties = &azureDatabricksDeltaLakeDatasetTypeProperties + adels.AzureDataExplorerLinkedServiceTypeProperties = &azureDataExplorerLinkedServiceTypeProperties } default: if v != nil { @@ -16840,46 +17249,28 @@ func (addld *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if addld.AdditionalProperties == nil { - addld.AdditionalProperties = make(map[string]interface{}) - } - addld.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - addld.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err + if adels.AdditionalProperties == nil { + adels.AdditionalProperties = make(map[string]interface{}) } - addld.Structure = structure + adels.AdditionalProperties[k] = additionalProperties } - case "schema": + case "connectVia": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - addld.Schema = schema + adels.ConnectVia = &connectVia } - case "linkedServiceName": + case "description": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - addld.LinkedServiceName = &linkedServiceName + adels.Description = &description } case "parameters": if v != nil { @@ -16888,7 +17279,7 @@ func (addld *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - addld.Parameters = parameters + adels.Parameters = parameters } case "annotations": if v != nil { @@ -16897,25 +17288,16 @@ func (addld *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - addld.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - addld.Folder = &folder + adels.Annotations = &annotations } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicLinkedService err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - addld.Type = typeVar + adels.Type = typeVar } } } @@ -16923,67 +17305,22 @@ func (addld *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(body []byte) error { return nil } -// AzureDatabricksDeltaLakeDatasetTypeProperties azure Databricks Delta Lake Dataset Properties -type AzureDatabricksDeltaLakeDatasetTypeProperties struct { - // Table - The name of delta table. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Database - The database name of delta table. Type: string (or Expression with resultType string). +// AzureDataExplorerLinkedServiceTypeProperties azure Data Explorer (Kusto) linked service properties. +type AzureDataExplorerLinkedServiceTypeProperties struct { + // Endpoint - The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format https://..kusto.windows.net. Type: string (or Expression with resultType string) + Endpoint interface{} `json:"endpoint,omitempty"` + // ServicePrincipalID - The ID of the service principal used to authenticate against Azure Data Explorer. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The key of the service principal used to authenticate against Kusto. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Database - Database name for connection. Type: string (or Expression with resultType string). Database interface{} `json:"database,omitempty"` + // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + Tenant interface{} `json:"tenant,omitempty"` } -// AzureDatabricksDeltaLakeExportCommand azure Databricks Delta Lake export command settings. -type AzureDatabricksDeltaLakeExportCommand struct { - // DateFormat - Specify the date format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - DateFormat interface{} `json:"dateFormat,omitempty"` - // TimestampFormat - Specify the timestamp format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - TimestampFormat interface{} `json:"timestampFormat,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeExportSettings', 'TypeSnowflakeExportCopyCommand', 'TypeAzureDatabricksDeltaLakeExportCommand' - Type TypeBasicExportSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeExportCommand. -func (addlec AzureDatabricksDeltaLakeExportCommand) MarshalJSON() ([]byte, error) { - addlec.Type = TypeAzureDatabricksDeltaLakeExportCommand - objectMap := make(map[string]interface{}) - if addlec.DateFormat != nil { - objectMap["dateFormat"] = addlec.DateFormat - } - if addlec.TimestampFormat != nil { - objectMap["timestampFormat"] = addlec.TimestampFormat - } - if addlec.Type != "" { - objectMap["type"] = addlec.Type - } - for k, v := range addlec.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. -func (addlec AzureDatabricksDeltaLakeExportCommand) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. -func (addlec AzureDatabricksDeltaLakeExportCommand) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { - return &addlec, true -} - -// AsExportSettings is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. -func (addlec AzureDatabricksDeltaLakeExportCommand) AsExportSettings() (*ExportSettings, bool) { - return nil, false -} - -// AsBasicExportSettings is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. -func (addlec AzureDatabricksDeltaLakeExportCommand) AsBasicExportSettings() (BasicExportSettings, bool) { - return &addlec, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeExportCommand struct. -func (addlec *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerLinkedServiceTypeProperties struct. +func (adelstp *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -16991,44 +17328,49 @@ func (addlec *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(body []byte) } for k, v := range m { switch k { - case "dateFormat": + case "endpoint": if v != nil { - var dateFormat interface{} - err = json.Unmarshal(*v, &dateFormat) + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) if err != nil { return err } - addlec.DateFormat = dateFormat + adelstp.Endpoint = endpoint } - case "timestampFormat": + case "servicePrincipalId": if v != nil { - var timestampFormat interface{} - err = json.Unmarshal(*v, ×tampFormat) + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) if err != nil { return err } - addlec.TimestampFormat = timestampFormat + adelstp.ServicePrincipalID = servicePrincipalID } - default: + case "servicePrincipalKey": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - if addlec.AdditionalProperties == nil { - addlec.AdditionalProperties = make(map[string]interface{}) + adelstp.ServicePrincipalKey = servicePrincipalKey + } + case "database": + if v != nil { + var databaseVar interface{} + err = json.Unmarshal(*v, &databaseVar) + if err != nil { + return err } - addlec.AdditionalProperties[k] = additionalProperties + adelstp.Database = databaseVar } - case "type": + case "tenant": if v != nil { - var typeVar TypeBasicExportSettings - err = json.Unmarshal(*v, &typeVar) + var tenant interface{} + err = json.Unmarshal(*v, &tenant) if err != nil { return err } - addlec.Type = typeVar + adelstp.Tenant = tenant } } } @@ -17036,59 +17378,274 @@ func (addlec *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(body []byte) return nil } -// AzureDatabricksDeltaLakeImportCommand azure Databricks Delta Lake import command settings. -type AzureDatabricksDeltaLakeImportCommand struct { - // DateFormat - Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - DateFormat interface{} `json:"dateFormat,omitempty"` - // TimestampFormat - Specify the timestamp format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - TimestampFormat interface{} `json:"timestampFormat,omitempty"` +// AzureDataExplorerSink a copy activity Azure Data Explorer sink. +type AzureDataExplorerSink struct { + // IngestionMappingName - A name of a pre-created csv mapping that was defined on the target Kusto table. Type: string. + IngestionMappingName interface{} `json:"ingestionMappingName,omitempty"` + // IngestionMappingAsJSON - An explicit column mapping description provided in a json format. Type: string. + IngestionMappingAsJSON interface{} `json:"ingestionMappingAsJson,omitempty"` + // FlushImmediately - If set to true, any aggregation will be skipped. Default is false. Type: boolean. + FlushImmediately interface{} `json:"flushImmediately,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeImportSettings', 'TypeAzureDatabricksDeltaLakeImportCommand', 'TypeSnowflakeImportCopyCommand' - Type TypeBasicImportSettings `json:"type,omitempty"` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeImportCommand. -func (addlic AzureDatabricksDeltaLakeImportCommand) MarshalJSON() ([]byte, error) { - addlic.Type = TypeAzureDatabricksDeltaLakeImportCommand +// MarshalJSON is the custom marshaler for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) MarshalJSON() ([]byte, error) { + ades.Type = TypeAzureDataExplorerSink objectMap := make(map[string]interface{}) - if addlic.DateFormat != nil { - objectMap["dateFormat"] = addlic.DateFormat + if ades.IngestionMappingName != nil { + objectMap["ingestionMappingName"] = ades.IngestionMappingName } - if addlic.TimestampFormat != nil { - objectMap["timestampFormat"] = addlic.TimestampFormat + if ades.IngestionMappingAsJSON != nil { + objectMap["ingestionMappingAsJson"] = ades.IngestionMappingAsJSON } - if addlic.Type != "" { - objectMap["type"] = addlic.Type + if ades.FlushImmediately != nil { + objectMap["flushImmediately"] = ades.FlushImmediately } - for k, v := range addlic.AdditionalProperties { + if ades.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ades.WriteBatchSize + } + if ades.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ades.WriteBatchTimeout + } + if ades.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ades.SinkRetryCount + } + if ades.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ades.SinkRetryWait + } + if ades.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections + } + if ades.Type != "" { + objectMap["type"] = ades.Type + } + for k, v := range ades.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeImportCommand is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. -func (addlic AzureDatabricksDeltaLakeImportCommand) AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) { - return &addlic, true +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false } -// AsSnowflakeImportCopyCommand is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. -func (addlic AzureDatabricksDeltaLakeImportCommand) AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsImportSettings is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. -func (addlic AzureDatabricksDeltaLakeImportCommand) AsImportSettings() (*ImportSettings, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsBasicImportSettings is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. -func (addlic AzureDatabricksDeltaLakeImportCommand) AsBasicImportSettings() (BasicImportSettings, bool) { - return &addlic, true +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeImportCommand struct. -func (addlic *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(body []byte) error { +// AsSalesforceSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return &ades, true +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ades, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerSink struct. +func (ades *AzureDataExplorerSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -17096,23 +17653,32 @@ func (addlic *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(body []byte) } for k, v := range m { switch k { - case "dateFormat": + case "ingestionMappingName": if v != nil { - var dateFormat interface{} - err = json.Unmarshal(*v, &dateFormat) + var ingestionMappingName interface{} + err = json.Unmarshal(*v, &ingestionMappingName) if err != nil { return err } - addlic.DateFormat = dateFormat + ades.IngestionMappingName = ingestionMappingName } - case "timestampFormat": + case "ingestionMappingAsJson": if v != nil { - var timestampFormat interface{} - err = json.Unmarshal(*v, ×tampFormat) + var ingestionMappingAsJSON interface{} + err = json.Unmarshal(*v, &ingestionMappingAsJSON) if err != nil { return err } - addlic.TimestampFormat = timestampFormat + ades.IngestionMappingAsJSON = ingestionMappingAsJSON + } + case "flushImmediately": + if v != nil { + var flushImmediately interface{} + err = json.Unmarshal(*v, &flushImmediately) + if err != nil { + return err + } + ades.FlushImmediately = flushImmediately } default: if v != nil { @@ -17121,19 +17687,64 @@ func (addlic *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(body []byte) if err != nil { return err } - if addlic.AdditionalProperties == nil { - addlic.AdditionalProperties = make(map[string]interface{}) + if ades.AdditionalProperties == nil { + ades.AdditionalProperties = make(map[string]interface{}) } - addlic.AdditionalProperties[k] = additionalProperties + ades.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ades.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ades.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ades.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ades.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ades.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicImportSettings + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - addlic.Type = typeVar + ades.Type = typeVar } } } @@ -17141,564 +17752,544 @@ func (addlic *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(body []byte) return nil } -// AzureDatabricksDeltaLakeLinkedService azure Databricks Delta Lake linked service. -type AzureDatabricksDeltaLakeLinkedService struct { - // AzureDatabricksDetltaLakeLinkedServiceTypeProperties - Azure Databricks Delta Lake linked service properties. - *AzureDatabricksDetltaLakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// AzureDataExplorerSource a copy activity Azure Data Explorer (Kusto) source. +type AzureDataExplorerSource struct { + // Query - Database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // NoTruncation - The name of the Boolean option that controls whether truncation is applied to result-sets that go beyond a certain row-count limit. + NoTruncation interface{} `json:"noTruncation,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) MarshalJSON() ([]byte, error) { - addlls.Type = TypeAzureDatabricksDeltaLake +// MarshalJSON is the custom marshaler for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) MarshalJSON() ([]byte, error) { + ades.Type = TypeAzureDataExplorerSource objectMap := make(map[string]interface{}) - if addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties + if ades.Query != nil { + objectMap["query"] = ades.Query } - if addlls.ConnectVia != nil { - objectMap["connectVia"] = addlls.ConnectVia + if ades.NoTruncation != nil { + objectMap["noTruncation"] = ades.NoTruncation } - if addlls.Description != nil { - objectMap["description"] = addlls.Description + if ades.QueryTimeout != nil { + objectMap["queryTimeout"] = ades.QueryTimeout } - if addlls.Parameters != nil { - objectMap["parameters"] = addlls.Parameters + if ades.AdditionalColumns != nil { + objectMap["additionalColumns"] = ades.AdditionalColumns } - if addlls.Annotations != nil { - objectMap["annotations"] = addlls.Annotations + if ades.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ades.SourceRetryCount } - if addlls.Type != "" { - objectMap["type"] = addlls.Type + if ades.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ades.SourceRetryWait } - for k, v := range addlls.AdditionalProperties { + if ades.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections + } + if ades.Type != "" { + objectMap["type"] = ades.Type + } + for k, v := range ades.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return &addlls, true -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return &ades, true } -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsFileSystemSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsRestSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsVerticaSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsNetezzaSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsZohoSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsXeroSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSquareSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSparkSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsShopifySource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsServiceNowSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsPrestoSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsPhoenixSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsPaypalSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsMarketoSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsMariaDBSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsMagentoSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsJiraSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsImpalaSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsHubspotSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsHiveSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsHBaseSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsGreenplumSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsEloquaSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsDrillSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsConcurSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsCassandraSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsTeradataSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsSQLDWSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsSQLMISource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsSQLServerSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSapTableSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsSapHanaSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsSapEccSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsSalesforceSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSapBwSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsSybaseSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsMySQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsOdbcSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsDb2Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsInformixSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsTabularSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsBinarySource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsOrcSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsXMLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsJSONSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsParquetSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsExcelSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAvroSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsCopySource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &addlls, true +// AsBasicCopySource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ades, true } -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeLinkedService struct. -func (addlls *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerSource struct. +func (ades *AzureDataExplorerSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -17706,71 +18297,89 @@ func (addlls *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(body []byte) } for k, v := range m { switch k { - case "typeProperties": + case "query": if v != nil { - var azureDatabricksDetltaLakeLinkedServiceTypeProperties AzureDatabricksDetltaLakeLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDatabricksDetltaLakeLinkedServiceTypeProperties) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties = &azureDatabricksDetltaLakeLinkedServiceTypeProperties + ades.Query = query } - default: + case "noTruncation": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var noTruncation interface{} + err = json.Unmarshal(*v, &noTruncation) if err != nil { return err } - if addlls.AdditionalProperties == nil { - addlls.AdditionalProperties = make(map[string]interface{}) + ades.NoTruncation = noTruncation + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err } - addlls.AdditionalProperties[k] = additionalProperties + ades.QueryTimeout = queryTimeout } - case "connectVia": + case "additionalColumns": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - addlls.ConnectVia = &connectVia + ades.AdditionalColumns = &additionalColumns } - case "description": + default: if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - addlls.Description = &description + if ades.AdditionalProperties == nil { + ades.AdditionalProperties = make(map[string]interface{}) + } + ades.AdditionalProperties[k] = additionalProperties } - case "parameters": + case "sourceRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - addlls.Parameters = parameters + ades.SourceRetryCount = sourceRetryCount } - case "annotations": + case "sourceRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - addlls.Annotations = &annotations + ades.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ades.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicLinkedService + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - addlls.Type = typeVar + ades.Type = typeVar } } } @@ -17778,259 +18387,544 @@ func (addlls *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(body []byte) return nil } -// AzureDatabricksDeltaLakeSink a copy activity Azure Databricks Delta Lake sink. -type AzureDatabricksDeltaLakeSink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // ImportSettings - Azure Databricks Delta Lake import settings. - ImportSettings *AzureDatabricksDeltaLakeImportCommand `json:"importSettings,omitempty"` +// AzureDataExplorerTableDataset the Azure Data Explorer (Kusto) dataset. +type AzureDataExplorerTableDataset struct { + // AzureDataExplorerDatasetTypeProperties - Azure Data Explorer (Kusto) dataset properties. + *AzureDataExplorerDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) MarshalJSON() ([]byte, error) { - addls.Type = TypeAzureDatabricksDeltaLakeSink +// MarshalJSON is the custom marshaler for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) MarshalJSON() ([]byte, error) { + adetd.Type = TypeAzureDataExplorerTable objectMap := make(map[string]interface{}) - if addls.PreCopyScript != nil { - objectMap["preCopyScript"] = addls.PreCopyScript + if adetd.AzureDataExplorerDatasetTypeProperties != nil { + objectMap["typeProperties"] = adetd.AzureDataExplorerDatasetTypeProperties } - if addls.ImportSettings != nil { - objectMap["importSettings"] = addls.ImportSettings + if adetd.Description != nil { + objectMap["description"] = adetd.Description } - if addls.WriteBatchSize != nil { - objectMap["writeBatchSize"] = addls.WriteBatchSize + if adetd.Structure != nil { + objectMap["structure"] = adetd.Structure } - if addls.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = addls.WriteBatchTimeout + if adetd.Schema != nil { + objectMap["schema"] = adetd.Schema } - if addls.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = addls.SinkRetryCount + if adetd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = adetd.LinkedServiceName } - if addls.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = addls.SinkRetryWait + if adetd.Parameters != nil { + objectMap["parameters"] = adetd.Parameters } - if addls.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = addls.MaxConcurrentConnections + if adetd.Annotations != nil { + objectMap["annotations"] = adetd.Annotations } - if addls.Type != "" { - objectMap["type"] = addls.Type + if adetd.Folder != nil { + objectMap["folder"] = adetd.Folder } - for k, v := range addls.AdditionalProperties { + if adetd.Type != "" { + objectMap["type"] = adetd.Type + } + for k, v := range adetd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return &adetd, true +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsInformixSink() (*InformixSink, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsOdbcSink() (*OdbcSink, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsOracleSink() (*OracleSink, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSQLMISink() (*SQLMISink, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSQLSink() (*SQLSink, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsBlobSink() (*BlobSink, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsBinarySink() (*BinarySink, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsParquetSink() (*ParquetSink, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAvroSink() (*AvroSink, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return &addls, true +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsDrillTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsRestSink() (*RestSink, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsOrcSink() (*OrcSink, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsJSONSink() (*JSONSink, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsCopySink() (*CopySink, bool) { +// AsHTTPDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsBasicCopySink() (BasicCopySink, bool) { - return &addls, true +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeSink struct. -func (addls *AzureDatabricksDeltaLakeSink) UnmarshalJSON(body []byte) error { +// AsWebTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &adetd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerTableDataset struct. +func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -18038,89 +18932,98 @@ func (addls *AzureDatabricksDeltaLakeSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "preCopyScript": + case "typeProperties": if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) + var azureDataExplorerDatasetTypeProperties AzureDataExplorerDatasetTypeProperties + err = json.Unmarshal(*v, &azureDataExplorerDatasetTypeProperties) if err != nil { return err } - addls.PreCopyScript = preCopyScript + adetd.AzureDataExplorerDatasetTypeProperties = &azureDataExplorerDatasetTypeProperties } - case "importSettings": + default: if v != nil { - var importSettings AzureDatabricksDeltaLakeImportCommand - err = json.Unmarshal(*v, &importSettings) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - addls.ImportSettings = &importSettings + if adetd.AdditionalProperties == nil { + adetd.AdditionalProperties = make(map[string]interface{}) + } + adetd.AdditionalProperties[k] = additionalProperties } - default: + case "description": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - if addls.AdditionalProperties == nil { - addls.AdditionalProperties = make(map[string]interface{}) + adetd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err } - addls.AdditionalProperties[k] = additionalProperties + adetd.Structure = structure } - case "writeBatchSize": + case "schema": if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - addls.WriteBatchSize = writeBatchSize + adetd.Schema = schema } - case "writeBatchTimeout": + case "linkedServiceName": if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - addls.WriteBatchTimeout = writeBatchTimeout + adetd.LinkedServiceName = &linkedServiceName } - case "sinkRetryCount": + case "parameters": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - addls.SinkRetryCount = sinkRetryCount + adetd.Parameters = parameters } - case "sinkRetryWait": + case "annotations": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - addls.SinkRetryWait = sinkRetryWait + adetd.Annotations = &annotations } - case "maxConcurrentConnections": + case "folder": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - addls.MaxConcurrentConnections = maxConcurrentConnections + adetd.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - addls.Type = typeVar + adetd.Type = typeVar } } } @@ -18128,534 +19031,564 @@ func (addls *AzureDatabricksDeltaLakeSink) UnmarshalJSON(body []byte) error { return nil } -// AzureDatabricksDeltaLakeSource a copy activity Azure Databricks Delta Lake source. -type AzureDatabricksDeltaLakeSource struct { - // Query - Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ExportSettings - Azure Databricks Delta Lake export settings. - ExportSettings *AzureDatabricksDeltaLakeExportCommand `json:"exportSettings,omitempty"` +// AzureDataLakeAnalyticsLinkedService azure Data Lake Analytics linked service. +type AzureDataLakeAnalyticsLinkedService struct { + // AzureDataLakeAnalyticsLinkedServiceTypeProperties - Azure Data Lake Analytics linked service properties. + *AzureDataLakeAnalyticsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) MarshalJSON() ([]byte, error) { - addls.Type = TypeAzureDatabricksDeltaLakeSource +// MarshalJSON is the custom marshaler for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) MarshalJSON() ([]byte, error) { + adlals.Type = TypeAzureDataLakeAnalytics objectMap := make(map[string]interface{}) - if addls.Query != nil { - objectMap["query"] = addls.Query + if adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties } - if addls.ExportSettings != nil { - objectMap["exportSettings"] = addls.ExportSettings + if adlals.ConnectVia != nil { + objectMap["connectVia"] = adlals.ConnectVia } - if addls.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = addls.SourceRetryCount + if adlals.Description != nil { + objectMap["description"] = adlals.Description } - if addls.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = addls.SourceRetryWait + if adlals.Parameters != nil { + objectMap["parameters"] = adlals.Parameters } - if addls.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = addls.MaxConcurrentConnections + if adlals.Annotations != nil { + objectMap["annotations"] = adlals.Annotations } - if addls.Type != "" { - objectMap["type"] = addls.Type + if adlals.Type != "" { + objectMap["type"] = adlals.Type } - for k, v := range addls.AdditionalProperties { + for k, v := range adlals.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return &addls, true +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsHTTPSource() (*HTTPSource, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsOffice365Source() (*Office365Source, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsWebSource() (*WebSource, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return &adlals, true +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsOracleSource() (*OracleSource, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsHdfsSource() (*HdfsSource, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsRestSource() (*RestSource, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsODataSource() (*ODataSource, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsRelationalSource() (*RelationalSource, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsBlobSource() (*BlobSource, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsVerticaSource() (*VerticaSource, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsZohoSource() (*ZohoSource, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsXeroSource() (*XeroSource, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSquareSource() (*SquareSource, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSparkSource() (*SparkSource, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsShopifySource() (*ShopifySource, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsPrestoSource() (*PrestoSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMarketoSource() (*MarketoSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMagentoSource() (*MagentoSource, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsJiraSource() (*JiraSource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsHubspotSource() (*HubspotSource, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsHiveSource() (*HiveSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsHBaseSource() (*HBaseSource, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsEloquaSource() (*EloquaSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDrillSource() (*DrillSource, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsConcurSource() (*ConcurSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCassandraSource() (*CassandraSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsTeradataSource() (*TeradataSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSQLMISource() (*SQLMISource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSQLSource() (*SQLSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapTableSource() (*SapTableSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapEccSource() (*SapEccSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapBwSource() (*SapBwSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSybaseSource() (*SybaseSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMySQLSource() (*MySQLSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsOdbcSource() (*OdbcSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDb2Source() (*Db2Source, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsInformixSource() (*InformixSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsTabularSource() (*TabularSource, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsBinarySource() (*BinarySource, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsOrcSource() (*OrcSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsXMLSource() (*XMLSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsJSONSource() (*JSONSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAvroSource() (*AvroSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCopySource() (*CopySource, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsBasicCopySource() (BasicCopySource, bool) { - return &addls, true +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeSource struct. -func (addls *AzureDatabricksDeltaLakeSource) UnmarshalJSON(body []byte) error { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &adlals, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeAnalyticsLinkedService struct. +func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -18663,23 +19596,14 @@ func (addls *AzureDatabricksDeltaLakeSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - addls.Query = query - } - case "exportSettings": + case "typeProperties": if v != nil { - var exportSettings AzureDatabricksDeltaLakeExportCommand - err = json.Unmarshal(*v, &exportSettings) + var azureDataLakeAnalyticsLinkedServiceTypeProperties AzureDataLakeAnalyticsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureDataLakeAnalyticsLinkedServiceTypeProperties) if err != nil { return err } - addls.ExportSettings = &exportSettings + adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties = &azureDataLakeAnalyticsLinkedServiceTypeProperties } default: if v != nil { @@ -18688,46 +19612,55 @@ func (addls *AzureDatabricksDeltaLakeSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if addls.AdditionalProperties == nil { - addls.AdditionalProperties = make(map[string]interface{}) + if adlals.AdditionalProperties == nil { + adlals.AdditionalProperties = make(map[string]interface{}) } - addls.AdditionalProperties[k] = additionalProperties + adlals.AdditionalProperties[k] = additionalProperties } - case "sourceRetryCount": + case "connectVia": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - addls.SourceRetryCount = sourceRetryCount + adlals.ConnectVia = &connectVia } - case "sourceRetryWait": + case "description": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - addls.SourceRetryWait = sourceRetryWait + adlals.Description = &description } - case "maxConcurrentConnections": + case "parameters": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - addls.MaxConcurrentConnections = maxConcurrentConnections + adlals.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + adlals.Annotations = &annotations } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicLinkedService err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - addls.Type = typeVar + adlals.Type = typeVar } } } @@ -18735,21 +19668,28 @@ func (addls *AzureDatabricksDeltaLakeSource) UnmarshalJSON(body []byte) error { return nil } -// AzureDatabricksDetltaLakeLinkedServiceTypeProperties azure Databricks Delta Lake linked service -// properties. -type AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct { - // Domain - .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). - Domain interface{} `json:"domain,omitempty"` - // AccessToken - Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or AzureKeyVaultSecretReference. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // ClusterID - The id of an existing interactive cluster that will be used for all runs of this job. Type: string (or Expression with resultType string). - ClusterID interface{} `json:"clusterId,omitempty"` +// AzureDataLakeAnalyticsLinkedServiceTypeProperties azure Data Lake Analytics linked service properties. +type AzureDataLakeAnalyticsLinkedServiceTypeProperties struct { + // AccountName - The Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). + AccountName interface{} `json:"accountName,omitempty"` + // ServicePrincipalID - The ID of the application used to authenticate against the Azure Data Lake Analytics account. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Analytics account. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + Tenant interface{} `json:"tenant,omitempty"` + // SubscriptionID - Data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). + SubscriptionID interface{} `json:"subscriptionId,omitempty"` + // ResourceGroupName - Data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). + ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` + // DataLakeAnalyticsURI - Azure Data Lake Analytics URI Type: string (or Expression with resultType string). + DataLakeAnalyticsURI interface{} `json:"dataLakeAnalyticsUri,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct. -func (addllstp *AzureDatabricksDetltaLakeLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeAnalyticsLinkedServiceTypeProperties struct. +func (adlalstp *AzureDataLakeAnalyticsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -18757,31 +19697,67 @@ func (addllstp *AzureDatabricksDetltaLakeLinkedServiceTypeProperties) UnmarshalJ } for k, v := range m { switch k { - case "domain": + case "accountName": if v != nil { - var domain interface{} - err = json.Unmarshal(*v, &domain) + var accountName interface{} + err = json.Unmarshal(*v, &accountName) if err != nil { return err } - addllstp.Domain = domain + adlalstp.AccountName = accountName } - case "accessToken": + case "servicePrincipalId": if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) if err != nil { return err } - addllstp.AccessToken = accessToken + adlalstp.ServicePrincipalID = servicePrincipalID } - case "clusterId": + case "servicePrincipalKey": if v != nil { - var clusterID interface{} - err = json.Unmarshal(*v, &clusterID) + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - addllstp.ClusterID = clusterID + adlalstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + adlalstp.Tenant = tenant + } + case "subscriptionId": + if v != nil { + var subscriptionID interface{} + err = json.Unmarshal(*v, &subscriptionID) + if err != nil { + return err + } + adlalstp.SubscriptionID = subscriptionID + } + case "resourceGroupName": + if v != nil { + var resourceGroupName interface{} + err = json.Unmarshal(*v, &resourceGroupName) + if err != nil { + return err + } + adlalstp.ResourceGroupName = resourceGroupName + } + case "dataLakeAnalyticsUri": + if v != nil { + var dataLakeAnalyticsURI interface{} + err = json.Unmarshal(*v, &dataLakeAnalyticsURI) + if err != nil { + return err + } + adlalstp.DataLakeAnalyticsURI = dataLakeAnalyticsURI } case "encryptedCredential": if v != nil { @@ -18790,7 +19766,7 @@ func (addllstp *AzureDatabricksDetltaLakeLinkedServiceTypeProperties) UnmarshalJ if err != nil { return err } - addllstp.EncryptedCredential = encryptedCredential + adlalstp.EncryptedCredential = encryptedCredential } } } @@ -18798,564 +19774,544 @@ func (addllstp *AzureDatabricksDetltaLakeLinkedServiceTypeProperties) UnmarshalJ return nil } -// AzureDatabricksLinkedService azure Databricks linked service. -type AzureDatabricksLinkedService struct { - // AzureDatabricksLinkedServiceTypeProperties - Azure Databricks linked service properties. - *AzureDatabricksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// AzureDataLakeStoreDataset azure Data Lake Store dataset. +type AzureDataLakeStoreDataset struct { + // AzureDataLakeStoreDatasetTypeProperties - Azure Data Lake Store dataset properties. + *AzureDataLakeStoreDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. + // Description - Dataset description. Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. + // Annotations - List of tags that can be used for describing the Dataset. Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) MarshalJSON() ([]byte, error) { - adls.Type = TypeAzureDatabricks +// MarshalJSON is the custom marshaler for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) MarshalJSON() ([]byte, error) { + adlsd.Type = TypeAzureDataLakeStoreFile objectMap := make(map[string]interface{}) - if adls.AzureDatabricksLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adls.AzureDatabricksLinkedServiceTypeProperties + if adlsd.AzureDataLakeStoreDatasetTypeProperties != nil { + objectMap["typeProperties"] = adlsd.AzureDataLakeStoreDatasetTypeProperties } - if adls.ConnectVia != nil { - objectMap["connectVia"] = adls.ConnectVia + if adlsd.Description != nil { + objectMap["description"] = adlsd.Description } - if adls.Description != nil { - objectMap["description"] = adls.Description + if adlsd.Structure != nil { + objectMap["structure"] = adlsd.Structure } - if adls.Parameters != nil { - objectMap["parameters"] = adls.Parameters + if adlsd.Schema != nil { + objectMap["schema"] = adlsd.Schema } - if adls.Annotations != nil { - objectMap["annotations"] = adls.Annotations + if adlsd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = adlsd.LinkedServiceName } - if adls.Type != "" { - objectMap["type"] = adls.Type + if adlsd.Parameters != nil { + objectMap["parameters"] = adlsd.Parameters } - for k, v := range adls.AdditionalProperties { + if adlsd.Annotations != nil { + objectMap["annotations"] = adlsd.Annotations + } + if adlsd.Folder != nil { + objectMap["folder"] = adlsd.Folder + } + if adlsd.Type != "" { + objectMap["type"] = adlsd.Type + } + for k, v := range adlsd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return &adls, true -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsDrillTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsHTTPDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsWebTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsRestResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsInformixTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsDb2TableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsOracleTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsODataResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsFileShareDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsOffice365Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return &adlsd, true } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCustomDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBinaryDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsOrcDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsXMLDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsJSONDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsParquetDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsExcelDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAvroDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adls, true +// AsBasicDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsBasicDataset() (BasicDataset, bool) { + return &adlsd, true } -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksLinkedService struct. -func (adls *AzureDatabricksLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreDataset struct. +func (adlsd *AzureDataLakeStoreDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -19365,12 +20321,12 @@ func (adls *AzureDatabricksLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureDatabricksLinkedServiceTypeProperties AzureDatabricksLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDatabricksLinkedServiceTypeProperties) + var azureDataLakeStoreDatasetTypeProperties AzureDataLakeStoreDatasetTypeProperties + err = json.Unmarshal(*v, &azureDataLakeStoreDatasetTypeProperties) if err != nil { return err } - adls.AzureDatabricksLinkedServiceTypeProperties = &azureDatabricksLinkedServiceTypeProperties + adlsd.AzureDataLakeStoreDatasetTypeProperties = &azureDataLakeStoreDatasetTypeProperties } default: if v != nil { @@ -19379,28 +20335,46 @@ func (adls *AzureDatabricksLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if adls.AdditionalProperties == nil { - adls.AdditionalProperties = make(map[string]interface{}) + if adlsd.AdditionalProperties == nil { + adlsd.AdditionalProperties = make(map[string]interface{}) } - adls.AdditionalProperties[k] = additionalProperties + adlsd.AdditionalProperties[k] = additionalProperties } - case "connectVia": + case "description": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - adls.ConnectVia = &connectVia + adlsd.Description = &description } - case "description": + case "structure": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - adls.Description = &description + adlsd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + adlsd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + adlsd.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -19409,7 +20383,7 @@ func (adls *AzureDatabricksLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - adls.Parameters = parameters + adlsd.Parameters = parameters } case "annotations": if v != nil { @@ -19418,16 +20392,25 @@ func (adls *AzureDatabricksLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - adls.Annotations = &annotations + adlsd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + adlsd.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicLinkedService + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - adls.Type = typeVar + adlsd.Type = typeVar } } } @@ -19435,106 +20418,20 @@ func (adls *AzureDatabricksLinkedService) UnmarshalJSON(body []byte) error { return nil } -// AzureDatabricksLinkedServiceTypeProperties azure Databricks linked service properties. -type AzureDatabricksLinkedServiceTypeProperties struct { - // Domain - .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). - Domain interface{} `json:"domain,omitempty"` - // AccessToken - Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType string). - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // Authentication - Required to specify MSI, if using Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). - Authentication interface{} `json:"authentication,omitempty"` - // WorkspaceResourceID - Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). - WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` - // ExistingClusterID - The id of an existing interactive cluster that will be used for all runs of this activity. Type: string (or Expression with resultType string). - ExistingClusterID interface{} `json:"existingClusterId,omitempty"` - // InstancePoolID - The id of an existing instance pool that will be used for all runs of this activity. Type: string (or Expression with resultType string). - InstancePoolID interface{} `json:"instancePoolId,omitempty"` - // NewClusterVersion - 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). - NewClusterVersion interface{} `json:"newClusterVersion,omitempty"` - // NewClusterNumOfWorker - 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). - NewClusterNumOfWorker interface{} `json:"newClusterNumOfWorker,omitempty"` - // NewClusterNodeType - 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). - NewClusterNodeType interface{} `json:"newClusterNodeType,omitempty"` - // NewClusterSparkConf - A set of optional, user-specified Spark configuration key-value pairs. - NewClusterSparkConf map[string]interface{} `json:"newClusterSparkConf"` - // NewClusterSparkEnvVars - A set of optional, user-specified Spark environment variables key-value pairs. - NewClusterSparkEnvVars map[string]interface{} `json:"newClusterSparkEnvVars"` - // NewClusterCustomTags - Additional tags for cluster resources. This property is ignored in instance pool configurations. - NewClusterCustomTags map[string]interface{} `json:"newClusterCustomTags"` - // NewClusterLogDestination - Specify a location to deliver Spark driver, worker, and event logs. Type: string (or Expression with resultType string). - NewClusterLogDestination interface{} `json:"newClusterLogDestination,omitempty"` - // NewClusterDriverNodeType - The driver node type for the new job cluster. This property is ignored in instance pool configurations. Type: string (or Expression with resultType string). - NewClusterDriverNodeType interface{} `json:"newClusterDriverNodeType,omitempty"` - // NewClusterInitScripts - User-defined initialization scripts for the new cluster. Type: array of strings (or Expression with resultType array of strings). - NewClusterInitScripts interface{} `json:"newClusterInitScripts,omitempty"` - // NewClusterEnableElasticDisk - 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). - NewClusterEnableElasticDisk interface{} `json:"newClusterEnableElasticDisk,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - // PolicyID - The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression with resultType string). - PolicyID interface{} `json:"policyId,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDatabricksLinkedServiceTypeProperties. -func (adlstp AzureDatabricksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if adlstp.Domain != nil { - objectMap["domain"] = adlstp.Domain - } - objectMap["accessToken"] = adlstp.AccessToken - if adlstp.Authentication != nil { - objectMap["authentication"] = adlstp.Authentication - } - if adlstp.WorkspaceResourceID != nil { - objectMap["workspaceResourceId"] = adlstp.WorkspaceResourceID - } - if adlstp.ExistingClusterID != nil { - objectMap["existingClusterId"] = adlstp.ExistingClusterID - } - if adlstp.InstancePoolID != nil { - objectMap["instancePoolId"] = adlstp.InstancePoolID - } - if adlstp.NewClusterVersion != nil { - objectMap["newClusterVersion"] = adlstp.NewClusterVersion - } - if adlstp.NewClusterNumOfWorker != nil { - objectMap["newClusterNumOfWorker"] = adlstp.NewClusterNumOfWorker - } - if adlstp.NewClusterNodeType != nil { - objectMap["newClusterNodeType"] = adlstp.NewClusterNodeType - } - if adlstp.NewClusterSparkConf != nil { - objectMap["newClusterSparkConf"] = adlstp.NewClusterSparkConf - } - if adlstp.NewClusterSparkEnvVars != nil { - objectMap["newClusterSparkEnvVars"] = adlstp.NewClusterSparkEnvVars - } - if adlstp.NewClusterCustomTags != nil { - objectMap["newClusterCustomTags"] = adlstp.NewClusterCustomTags - } - if adlstp.NewClusterLogDestination != nil { - objectMap["newClusterLogDestination"] = adlstp.NewClusterLogDestination - } - if adlstp.NewClusterDriverNodeType != nil { - objectMap["newClusterDriverNodeType"] = adlstp.NewClusterDriverNodeType - } - if adlstp.NewClusterInitScripts != nil { - objectMap["newClusterInitScripts"] = adlstp.NewClusterInitScripts - } - if adlstp.NewClusterEnableElasticDisk != nil { - objectMap["newClusterEnableElasticDisk"] = adlstp.NewClusterEnableElasticDisk - } - if adlstp.EncryptedCredential != nil { - objectMap["encryptedCredential"] = adlstp.EncryptedCredential - } - if adlstp.PolicyID != nil { - objectMap["policyId"] = adlstp.PolicyID - } - return json.Marshal(objectMap) +// AzureDataLakeStoreDatasetTypeProperties azure Data Lake Store dataset properties. +type AzureDataLakeStoreDatasetTypeProperties struct { + // FolderPath - Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Format - The format of the Data Lake Store. + Format BasicDatasetStorageFormat `json:"format,omitempty"` + // Compression - The data compression method used for the item(s) in the Azure Data Lake Store. + Compression BasicDatasetCompression `json:"compression,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksLinkedServiceTypeProperties struct. -func (adlstp *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreDatasetTypeProperties struct. +func (adlsdtp *AzureDataLakeStoreDatasetTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -19542,166 +20439,39 @@ func (adlstp *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(body []b } for k, v := range m { switch k { - case "domain": - if v != nil { - var domain interface{} - err = json.Unmarshal(*v, &domain) - if err != nil { - return err - } - adlstp.Domain = domain - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - adlstp.AccessToken = accessToken - } - case "authentication": - if v != nil { - var authentication interface{} - err = json.Unmarshal(*v, &authentication) - if err != nil { - return err - } - adlstp.Authentication = authentication - } - case "workspaceResourceId": - if v != nil { - var workspaceResourceID interface{} - err = json.Unmarshal(*v, &workspaceResourceID) - if err != nil { - return err - } - adlstp.WorkspaceResourceID = workspaceResourceID - } - case "existingClusterId": - if v != nil { - var existingClusterID interface{} - err = json.Unmarshal(*v, &existingClusterID) - if err != nil { - return err - } - adlstp.ExistingClusterID = existingClusterID - } - case "instancePoolId": - if v != nil { - var instancePoolID interface{} - err = json.Unmarshal(*v, &instancePoolID) - if err != nil { - return err - } - adlstp.InstancePoolID = instancePoolID - } - case "newClusterVersion": - if v != nil { - var newClusterVersion interface{} - err = json.Unmarshal(*v, &newClusterVersion) - if err != nil { - return err - } - adlstp.NewClusterVersion = newClusterVersion - } - case "newClusterNumOfWorker": - if v != nil { - var newClusterNumOfWorker interface{} - err = json.Unmarshal(*v, &newClusterNumOfWorker) - if err != nil { - return err - } - adlstp.NewClusterNumOfWorker = newClusterNumOfWorker - } - case "newClusterNodeType": - if v != nil { - var newClusterNodeType interface{} - err = json.Unmarshal(*v, &newClusterNodeType) - if err != nil { - return err - } - adlstp.NewClusterNodeType = newClusterNodeType - } - case "newClusterSparkConf": - if v != nil { - var newClusterSparkConf map[string]interface{} - err = json.Unmarshal(*v, &newClusterSparkConf) - if err != nil { - return err - } - adlstp.NewClusterSparkConf = newClusterSparkConf - } - case "newClusterSparkEnvVars": - if v != nil { - var newClusterSparkEnvVars map[string]interface{} - err = json.Unmarshal(*v, &newClusterSparkEnvVars) - if err != nil { - return err - } - adlstp.NewClusterSparkEnvVars = newClusterSparkEnvVars - } - case "newClusterCustomTags": - if v != nil { - var newClusterCustomTags map[string]interface{} - err = json.Unmarshal(*v, &newClusterCustomTags) - if err != nil { - return err - } - adlstp.NewClusterCustomTags = newClusterCustomTags - } - case "newClusterLogDestination": - if v != nil { - var newClusterLogDestination interface{} - err = json.Unmarshal(*v, &newClusterLogDestination) - if err != nil { - return err - } - adlstp.NewClusterLogDestination = newClusterLogDestination - } - case "newClusterDriverNodeType": - if v != nil { - var newClusterDriverNodeType interface{} - err = json.Unmarshal(*v, &newClusterDriverNodeType) - if err != nil { - return err - } - adlstp.NewClusterDriverNodeType = newClusterDriverNodeType - } - case "newClusterInitScripts": + case "folderPath": if v != nil { - var newClusterInitScripts interface{} - err = json.Unmarshal(*v, &newClusterInitScripts) + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) if err != nil { return err } - adlstp.NewClusterInitScripts = newClusterInitScripts + adlsdtp.FolderPath = folderPath } - case "newClusterEnableElasticDisk": + case "fileName": if v != nil { - var newClusterEnableElasticDisk interface{} - err = json.Unmarshal(*v, &newClusterEnableElasticDisk) + var fileName interface{} + err = json.Unmarshal(*v, &fileName) if err != nil { return err } - adlstp.NewClusterEnableElasticDisk = newClusterEnableElasticDisk + adlsdtp.FileName = fileName } - case "encryptedCredential": + case "format": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + formatVar, err := unmarshalBasicDatasetStorageFormat(*v) if err != nil { return err } - adlstp.EncryptedCredential = encryptedCredential + adlsdtp.Format = formatVar } - case "policyId": + case "compression": if v != nil { - var policyID interface{} - err = json.Unmarshal(*v, &policyID) + compression, err := unmarshalBasicDatasetCompression(*v) if err != nil { return err } - adlstp.PolicyID = policyID + adlsdtp.Compression = compression } } } @@ -19709,933 +20479,564 @@ func (adlstp *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(body []b return nil } -// AzureDataExplorerCommandActivity azure Data Explorer command activity. -type AzureDataExplorerCommandActivity struct { - // AzureDataExplorerCommandActivityTypeProperties - Azure Data Explorer command activity properties. - *AzureDataExplorerCommandActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` +// AzureDataLakeStoreLinkedService azure Data Lake Store linked service. +type AzureDataLakeStoreLinkedService struct { + // AzureDataLakeStoreLinkedServiceTypeProperties - Azure Data Lake Store linked service properties. + *AzureDataLakeStoreLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) MarshalJSON() ([]byte, error) { - adeca.Type = TypeAzureDataExplorerCommand +// MarshalJSON is the custom marshaler for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) MarshalJSON() ([]byte, error) { + adlsls.Type = TypeAzureDataLakeStore objectMap := make(map[string]interface{}) - if adeca.AzureDataExplorerCommandActivityTypeProperties != nil { - objectMap["typeProperties"] = adeca.AzureDataExplorerCommandActivityTypeProperties - } - if adeca.LinkedServiceName != nil { - objectMap["linkedServiceName"] = adeca.LinkedServiceName - } - if adeca.Policy != nil { - objectMap["policy"] = adeca.Policy + if adlsls.AzureDataLakeStoreLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = adlsls.AzureDataLakeStoreLinkedServiceTypeProperties } - if adeca.Name != nil { - objectMap["name"] = adeca.Name + if adlsls.ConnectVia != nil { + objectMap["connectVia"] = adlsls.ConnectVia } - if adeca.Description != nil { - objectMap["description"] = adeca.Description + if adlsls.Description != nil { + objectMap["description"] = adlsls.Description } - if adeca.DependsOn != nil { - objectMap["dependsOn"] = adeca.DependsOn + if adlsls.Parameters != nil { + objectMap["parameters"] = adlsls.Parameters } - if adeca.UserProperties != nil { - objectMap["userProperties"] = adeca.UserProperties + if adlsls.Annotations != nil { + objectMap["annotations"] = adlsls.Annotations } - if adeca.Type != "" { - objectMap["type"] = adeca.Type + if adlsls.Type != "" { + objectMap["type"] = adlsls.Type } - for k, v := range adeca.AdditionalProperties { + for k, v := range adlsls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return &adeca, true -} - -// AsDeleteActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &adeca, true -} - -// AsWebHookActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsBasicActivity() (BasicActivity, bool) { - return &adeca, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerCommandActivity struct. -func (adeca *AzureDataExplorerCommandActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataExplorerCommandActivityTypeProperties AzureDataExplorerCommandActivityTypeProperties - err = json.Unmarshal(*v, &azureDataExplorerCommandActivityTypeProperties) - if err != nil { - return err - } - adeca.AzureDataExplorerCommandActivityTypeProperties = &azureDataExplorerCommandActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - adeca.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - adeca.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adeca.AdditionalProperties == nil { - adeca.AdditionalProperties = make(map[string]interface{}) - } - adeca.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - adeca.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adeca.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - adeca.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - adeca.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adeca.Type = typeVar - } - } - } - - return nil -} - -// AzureDataExplorerCommandActivityTypeProperties azure Data Explorer command activity properties. -type AzureDataExplorerCommandActivityTypeProperties struct { - // Command - A control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType string). - Command interface{} `json:"command,omitempty"` - // CommandTimeout - Control command timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..) - CommandTimeout interface{} `json:"commandTimeout,omitempty"` -} - -// AzureDataExplorerDatasetTypeProperties azure Data Explorer (Kusto) dataset properties. -type AzureDataExplorerDatasetTypeProperties struct { - // Table - The table name of the Azure Data Explorer database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// AzureDataExplorerLinkedService azure Data Explorer (Kusto) linked service. -type AzureDataExplorerLinkedService struct { - // AzureDataExplorerLinkedServiceTypeProperties - Azure Data Explorer (Kusto) linked service properties. - *AzureDataExplorerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) MarshalJSON() ([]byte, error) { - adels.Type = TypeAzureDataExplorer - objectMap := make(map[string]interface{}) - if adels.AzureDataExplorerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adels.AzureDataExplorerLinkedServiceTypeProperties - } - if adels.ConnectVia != nil { - objectMap["connectVia"] = adels.ConnectVia - } - if adels.Description != nil { - objectMap["description"] = adels.Description - } - if adels.Parameters != nil { - objectMap["parameters"] = adels.Parameters - } - if adels.Annotations != nil { - objectMap["annotations"] = adels.Annotations - } - if adels.Type != "" { - objectMap["type"] = adels.Type - } - for k, v := range adels.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return &adels, true -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return &adlsls, true } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adels, true +// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &adlsls, true } -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerLinkedService struct. -func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLinkedService struct. +func (adlsls *AzureDataLakeStoreLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -20645,12 +21046,12 @@ func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureDataExplorerLinkedServiceTypeProperties AzureDataExplorerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDataExplorerLinkedServiceTypeProperties) + var azureDataLakeStoreLinkedServiceTypeProperties AzureDataLakeStoreLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureDataLakeStoreLinkedServiceTypeProperties) if err != nil { return err } - adels.AzureDataExplorerLinkedServiceTypeProperties = &azureDataExplorerLinkedServiceTypeProperties + adlsls.AzureDataLakeStoreLinkedServiceTypeProperties = &azureDataLakeStoreLinkedServiceTypeProperties } default: if v != nil { @@ -20659,10 +21060,10 @@ func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if adels.AdditionalProperties == nil { - adels.AdditionalProperties = make(map[string]interface{}) + if adlsls.AdditionalProperties == nil { + adlsls.AdditionalProperties = make(map[string]interface{}) } - adels.AdditionalProperties[k] = additionalProperties + adlsls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -20671,7 +21072,7 @@ func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - adels.ConnectVia = &connectVia + adlsls.ConnectVia = &connectVia } case "description": if v != nil { @@ -20680,7 +21081,7 @@ func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - adels.Description = &description + adlsls.Description = &description } case "parameters": if v != nil { @@ -20689,7 +21090,7 @@ func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - adels.Parameters = parameters + adlsls.Parameters = parameters } case "annotations": if v != nil { @@ -20698,7 +21099,7 @@ func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - adels.Annotations = &annotations + adlsls.Annotations = &annotations } case "type": if v != nil { @@ -20707,7 +21108,7 @@ func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - adels.Type = typeVar + adlsls.Type = typeVar } } } @@ -20715,22 +21116,30 @@ func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { return nil } -// AzureDataExplorerLinkedServiceTypeProperties azure Data Explorer (Kusto) linked service properties. -type AzureDataExplorerLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format https://..kusto.windows.net. Type: string (or Expression with resultType string) - Endpoint interface{} `json:"endpoint,omitempty"` - // ServicePrincipalID - The ID of the service principal used to authenticate against Azure Data Explorer. Type: string (or Expression with resultType string). +// AzureDataLakeStoreLinkedServiceTypeProperties azure Data Lake Store linked service properties. +type AzureDataLakeStoreLinkedServiceTypeProperties struct { + // DataLakeStoreURI - Data Lake Store service URI. Type: string (or Expression with resultType string). + DataLakeStoreURI interface{} `json:"dataLakeStoreUri,omitempty"` + // ServicePrincipalID - The ID of the application used to authenticate against the Azure Data Lake Store account. Type: string (or Expression with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Kusto. + // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Store account. ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Database - Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` + // AzureCloudType - Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). + AzureCloudType interface{} `json:"azureCloudType,omitempty"` + // AccountName - Data Lake Store account name. Type: string (or Expression with resultType string). + AccountName interface{} `json:"accountName,omitempty"` + // SubscriptionID - Data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). + SubscriptionID interface{} `json:"subscriptionId,omitempty"` + // ResourceGroupName - Data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). + ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerLinkedServiceTypeProperties struct. -func (adelstp *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLinkedServiceTypeProperties struct. +func (adlslstp *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -20738,14 +21147,14 @@ func (adelstp *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(body } for k, v := range m { switch k { - case "endpoint": + case "dataLakeStoreUri": if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) + var dataLakeStoreURI interface{} + err = json.Unmarshal(*v, &dataLakeStoreURI) if err != nil { return err } - adelstp.Endpoint = endpoint + adlslstp.DataLakeStoreURI = dataLakeStoreURI } case "servicePrincipalId": if v != nil { @@ -20754,7 +21163,7 @@ func (adelstp *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(body if err != nil { return err } - adelstp.ServicePrincipalID = servicePrincipalID + adlslstp.ServicePrincipalID = servicePrincipalID } case "servicePrincipalKey": if v != nil { @@ -20762,25 +21171,61 @@ func (adelstp *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(body if err != nil { return err } - adelstp.ServicePrincipalKey = servicePrincipalKey + adlslstp.ServicePrincipalKey = servicePrincipalKey } - case "database": + case "tenant": if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) + var tenant interface{} + err = json.Unmarshal(*v, &tenant) if err != nil { return err } - adelstp.Database = databaseVar + adlslstp.Tenant = tenant } - case "tenant": + case "azureCloudType": if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) if err != nil { return err } - adelstp.Tenant = tenant + adlslstp.AzureCloudType = azureCloudType + } + case "accountName": + if v != nil { + var accountName interface{} + err = json.Unmarshal(*v, &accountName) + if err != nil { + return err + } + adlslstp.AccountName = accountName + } + case "subscriptionId": + if v != nil { + var subscriptionID interface{} + err = json.Unmarshal(*v, &subscriptionID) + if err != nil { + return err + } + adlslstp.SubscriptionID = subscriptionID + } + case "resourceGroupName": + if v != nil { + var resourceGroupName interface{} + err = json.Unmarshal(*v, &resourceGroupName) + if err != nil { + return err + } + adlslstp.ResourceGroupName = resourceGroupName + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + adlslstp.EncryptedCredential = encryptedCredential } } } @@ -20788,264 +21233,324 @@ func (adelstp *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(body return nil } -// AzureDataExplorerSink a copy activity Azure Data Explorer sink. -type AzureDataExplorerSink struct { - // IngestionMappingName - A name of a pre-created csv mapping that was defined on the target Kusto table. Type: string. - IngestionMappingName interface{} `json:"ingestionMappingName,omitempty"` - // IngestionMappingAsJSON - An explicit column mapping description provided in a json format. Type: string. - IngestionMappingAsJSON interface{} `json:"ingestionMappingAsJson,omitempty"` - // FlushImmediately - If set to true, any aggregation will be skipped. Default is false. Type: boolean. - FlushImmediately interface{} `json:"flushImmediately,omitempty"` +// AzureDataLakeStoreLocation the location of azure data lake store dataset. +type AzureDataLakeStoreLocation struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) MarshalJSON() ([]byte, error) { - ades.Type = TypeAzureDataExplorerSink +// MarshalJSON is the custom marshaler for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) MarshalJSON() ([]byte, error) { + adlsl.Type = TypeAzureDataLakeStoreLocation objectMap := make(map[string]interface{}) - if ades.IngestionMappingName != nil { - objectMap["ingestionMappingName"] = ades.IngestionMappingName - } - if ades.IngestionMappingAsJSON != nil { - objectMap["ingestionMappingAsJson"] = ades.IngestionMappingAsJSON - } - if ades.FlushImmediately != nil { - objectMap["flushImmediately"] = ades.FlushImmediately - } - if ades.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ades.WriteBatchSize - } - if ades.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ades.WriteBatchTimeout - } - if ades.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ades.SinkRetryCount - } - if ades.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ades.SinkRetryWait + if adlsl.FolderPath != nil { + objectMap["folderPath"] = adlsl.FolderPath } - if ades.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections + if adlsl.FileName != nil { + objectMap["fileName"] = adlsl.FileName } - if ades.Type != "" { - objectMap["type"] = ades.Type + if adlsl.Type != "" { + objectMap["type"] = adlsl.Type } - for k, v := range ades.AdditionalProperties { + for k, v := range adlsl.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsHdfsLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsHdfsLocation() (*HdfsLocation, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return &ades, true -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsHTTPServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsSftpLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsSftpLocation() (*SftpLocation, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsFtpServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsInformixSink() (*InformixSink, bool) { +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsOdbcSink() (*OdbcSink, bool) { +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsFileServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsFileServerLocation() (*FileServerLocation, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsAmazonS3Location is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsOracleSink() (*OracleSink, bool) { - return nil, false +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return &adlsl, true } -// AsSnowflakeSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSQLMISink() (*SQLMISink, bool) { +// AsDatasetLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsDatasetLocation() (*DatasetLocation, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &adlsl, true } -// AsSQLServerSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLocation struct. +func (adlsl *AzureDataLakeStoreLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlsl.AdditionalProperties == nil { + adlsl.AdditionalProperties = make(map[string]interface{}) + } + adlsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + adlsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + adlsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlsl.Type = typeVar + } + } + } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false + return nil } -// AsFileSystemSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false +// AzureDataLakeStoreReadSettings azure data lake store read settings. +type AzureDataLakeStoreReadSettings struct { + // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + Recursive interface{} `json:"recursive,omitempty"` + // WildcardFolderPath - ADLS wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - ADLS wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). + FileListPath interface{} `json:"fileListPath,omitempty"` + // ListAfter - Lists files after the value (exclusive) based on file/folder names’ lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string (or Expression with resultType string). + ListAfter interface{} `json:"listAfter,omitempty"` + // ListBefore - Lists files before the value (inclusive) based on file/folder names’ lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string (or Expression with resultType string). + ListBefore interface{} `json:"listBefore,omitempty"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. + EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` } -// AsBlobSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsBlobSink() (*BlobSink, bool) { - return nil, false +// MarshalJSON is the custom marshaler for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) MarshalJSON() ([]byte, error) { + adlsrs.Type = TypeAzureDataLakeStoreReadSettings + objectMap := make(map[string]interface{}) + if adlsrs.Recursive != nil { + objectMap["recursive"] = adlsrs.Recursive + } + if adlsrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = adlsrs.WildcardFolderPath + } + if adlsrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = adlsrs.WildcardFileName + } + if adlsrs.FileListPath != nil { + objectMap["fileListPath"] = adlsrs.FileListPath + } + if adlsrs.ListAfter != nil { + objectMap["listAfter"] = adlsrs.ListAfter + } + if adlsrs.ListBefore != nil { + objectMap["listBefore"] = adlsrs.ListBefore + } + if adlsrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = adlsrs.EnablePartitionDiscovery + } + if adlsrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = adlsrs.PartitionRootPath + } + if adlsrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = adlsrs.DeleteFilesAfterCompletion + } + if adlsrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = adlsrs.ModifiedDatetimeStart + } + if adlsrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = adlsrs.ModifiedDatetimeEnd + } + if adlsrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = adlsrs.MaxConcurrentConnections + } + if adlsrs.Type != "" { + objectMap["type"] = adlsrs.Type + } + for k, v := range adlsrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsBinarySink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsBinarySink() (*BinarySink, bool) { +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsParquetSink() (*ParquetSink, bool) { +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAvroSink() (*AvroSink, bool) { +// AsSftpReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsFtpReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsRestSink() (*RestSink, bool) { +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsOrcSink() (*OrcSink, bool) { - return nil, false +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return &adlsrs, true } -// AsJSONSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsJSONSink() (*JSONSink, bool) { +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsCopySink() (*CopySink, bool) { +// AsStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ades, true +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &adlsrs, true } -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerSink struct. -func (ades *AzureDataExplorerSink) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreReadSettings struct. +func (adlsrs *AzureDataLakeStoreReadSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -21053,80 +21558,116 @@ func (ades *AzureDataExplorerSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "ingestionMappingName": + case "recursive": if v != nil { - var ingestionMappingName interface{} - err = json.Unmarshal(*v, &ingestionMappingName) + var recursive interface{} + err = json.Unmarshal(*v, &recursive) if err != nil { return err } - ades.IngestionMappingName = ingestionMappingName + adlsrs.Recursive = recursive } - case "ingestionMappingAsJson": + case "wildcardFolderPath": if v != nil { - var ingestionMappingAsJSON interface{} - err = json.Unmarshal(*v, &ingestionMappingAsJSON) + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) if err != nil { return err } - ades.IngestionMappingAsJSON = ingestionMappingAsJSON + adlsrs.WildcardFolderPath = wildcardFolderPath } - case "flushImmediately": + case "wildcardFileName": if v != nil { - var flushImmediately interface{} - err = json.Unmarshal(*v, &flushImmediately) + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) if err != nil { return err } - ades.FlushImmediately = flushImmediately + adlsrs.WildcardFileName = wildcardFileName } - default: + case "fileListPath": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) if err != nil { return err } - if ades.AdditionalProperties == nil { - ades.AdditionalProperties = make(map[string]interface{}) + adlsrs.FileListPath = fileListPath + } + case "listAfter": + if v != nil { + var listAfter interface{} + err = json.Unmarshal(*v, &listAfter) + if err != nil { + return err } - ades.AdditionalProperties[k] = additionalProperties + adlsrs.ListAfter = listAfter } - case "writeBatchSize": + case "listBefore": if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) + var listBefore interface{} + err = json.Unmarshal(*v, &listBefore) if err != nil { return err } - ades.WriteBatchSize = writeBatchSize + adlsrs.ListBefore = listBefore } - case "writeBatchTimeout": + case "enablePartitionDiscovery": if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) + var enablePartitionDiscovery bool + err = json.Unmarshal(*v, &enablePartitionDiscovery) if err != nil { return err } - ades.WriteBatchTimeout = writeBatchTimeout + adlsrs.EnablePartitionDiscovery = &enablePartitionDiscovery } - case "sinkRetryCount": + case "partitionRootPath": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) if err != nil { return err } - ades.SinkRetryCount = sinkRetryCount + adlsrs.PartitionRootPath = partitionRootPath } - case "sinkRetryWait": + case "deleteFilesAfterCompletion": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) if err != nil { return err } - ades.SinkRetryWait = sinkRetryWait + adlsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + adlsrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + adlsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlsrs.AdditionalProperties == nil { + adlsrs.AdditionalProperties = make(map[string]interface{}) + } + adlsrs.AdditionalProperties[k] = additionalProperties } case "maxConcurrentConnections": if v != nil { @@ -21135,16 +21676,16 @@ func (ades *AzureDataExplorerSink) UnmarshalJSON(body []byte) error { if err != nil { return err } - ades.MaxConcurrentConnections = maxConcurrentConnections + adlsrs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicStoreReadSettings err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - ades.Type = typeVar + adlsrs.Type = typeVar } } } @@ -21152,626 +21693,944 @@ func (ades *AzureDataExplorerSink) UnmarshalJSON(body []byte) error { return nil } -// AzureDataExplorerSource a copy activity Azure Data Explorer (Kusto) source. -type AzureDataExplorerSource struct { - // Query - Database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // NoTruncation - The name of the Boolean option that controls whether truncation is applied to result-sets that go beyond a certain row-count limit. - NoTruncation interface{} `json:"noTruncation,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// AzureDataLakeStoreSink a copy activity Azure Data Lake Store sink. +type AzureDataLakeStoreSink struct { + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // EnableAdlsSingleFileParallel - Single File Parallel. + EnableAdlsSingleFileParallel interface{} `json:"enableAdlsSingleFileParallel,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) MarshalJSON() ([]byte, error) { - ades.Type = TypeAzureDataExplorerSource +// MarshalJSON is the custom marshaler for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) MarshalJSON() ([]byte, error) { + adlss.Type = TypeAzureDataLakeStoreSink objectMap := make(map[string]interface{}) - if ades.Query != nil { - objectMap["query"] = ades.Query + if adlss.CopyBehavior != nil { + objectMap["copyBehavior"] = adlss.CopyBehavior } - if ades.NoTruncation != nil { - objectMap["noTruncation"] = ades.NoTruncation + if adlss.EnableAdlsSingleFileParallel != nil { + objectMap["enableAdlsSingleFileParallel"] = adlss.EnableAdlsSingleFileParallel } - if ades.QueryTimeout != nil { - objectMap["queryTimeout"] = ades.QueryTimeout + if adlss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = adlss.WriteBatchSize } - if ades.AdditionalColumns != nil { - objectMap["additionalColumns"] = ades.AdditionalColumns + if adlss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = adlss.WriteBatchTimeout } - if ades.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ades.SourceRetryCount + if adlss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = adlss.SinkRetryCount } - if ades.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ades.SourceRetryWait + if adlss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = adlss.SinkRetryWait } - if ades.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections + if adlss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections } - if ades.Type != "" { - objectMap["type"] = ades.Type + if adlss.Type != "" { + objectMap["type"] = adlss.Type } - for k, v := range ades.AdditionalProperties { + for k, v := range adlss.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsHTTPSource() (*HTTPSource, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsSalesforceSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsOffice365Source() (*Office365Source, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsDynamicsSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsInformixSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsWebSource() (*WebSource, bool) { +// AsOdbcSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsOracleSource() (*OracleSource, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return &ades, true +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false } -// AsHdfsSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsHdfsSource() (*HdfsSource, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return &adlss, true +} + +// AsOracleSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsRestSource() (*RestSource, bool) { +// AsSQLDWSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSQLMISink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsODataSource() (*ODataSource, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsSQLServerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsRelationalSource() (*RelationalSource, bool) { +// AsSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsFileSystemSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsBlobSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsBinarySink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsBlobSource() (*BlobSource, bool) { +// AsParquetSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAvroSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsAzureTableSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsVerticaSource() (*VerticaSource, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsRestSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsZohoSource() (*ZohoSource, bool) { +// AsOrcSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsXeroSource() (*XeroSource, bool) { +// AsJSONSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSquareSource() (*SquareSource, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSparkSource() (*SparkSource, bool) { +// AsCopySink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsShopifySource() (*ShopifySource, bool) { +// AsBasicCopySink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsBasicCopySink() (BasicCopySink, bool) { + return &adlss, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreSink struct. +func (adlss *AzureDataLakeStoreSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + adlss.CopyBehavior = copyBehavior + } + case "enableAdlsSingleFileParallel": + if v != nil { + var enableAdlsSingleFileParallel interface{} + err = json.Unmarshal(*v, &enableAdlsSingleFileParallel) + if err != nil { + return err + } + adlss.EnableAdlsSingleFileParallel = enableAdlsSingleFileParallel + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlss.AdditionalProperties == nil { + adlss.AdditionalProperties = make(map[string]interface{}) + } + adlss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + adlss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + adlss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + adlss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + adlss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + adlss.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlss.Type = typeVar + } + } + } + + return nil +} + +// AzureDataLakeStoreSource a copy activity Azure Data Lake source. +type AzureDataLakeStoreSource struct { + // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + Recursive interface{} `json:"recursive,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) MarshalJSON() ([]byte, error) { + adlss.Type = TypeAzureDataLakeStoreSource + objectMap := make(map[string]interface{}) + if adlss.Recursive != nil { + objectMap["recursive"] = adlss.Recursive + } + if adlss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = adlss.SourceRetryCount + } + if adlss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = adlss.SourceRetryWait + } + if adlss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections + } + if adlss.Type != "" { + objectMap["type"] = adlss.Type + } + for k, v := range adlss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsPrestoSource() (*PrestoSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsPaypalSource() (*PaypalSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return &adlss, true +} + +// AsOffice365Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMarketoSource() (*MarketoSource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsJiraSource() (*JiraSource, bool) { +// AsWebSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsOracleSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsHubspotSource() (*HubspotSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsHiveSource() (*HiveSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsHBaseSource() (*HBaseSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsRestSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsEloquaSource() (*EloquaSource, bool) { +// AsODataSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDrillSource() (*DrillSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsConcurSource() (*ConcurSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsTeradataSource() (*TeradataSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsBlobSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSQLMISource() (*SQLMISource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSQLSource() (*SQLSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapEccSource() (*SapEccSource, bool) { +// AsZohoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsXeroSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSquareSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSparkSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSybaseSource() (*SybaseSource, bool) { +// AsShopifySource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMySQLSource() (*MySQLSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsOdbcSource() (*OdbcSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDb2Source() (*Db2Source, bool) { +// AsPhoenixSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsInformixSource() (*InformixSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsBinarySource() (*BinarySource, bool) { +// AsMagentoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsOrcSource() (*OrcSource, bool) { +// AsJiraSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsXMLSource() (*XMLSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsJSONSource() (*JSONSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsHiveSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsParquetSource() (*ParquetSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsExcelSource() (*ExcelSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAvroSource() (*AvroSource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCopySource() (*CopySource, bool) { +// AsEloquaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ades, true +// AsDrillSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDrillSource() (*DrillSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerSource struct. -func (ades *AzureDataExplorerSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ades.Query = query - } - case "noTruncation": - if v != nil { - var noTruncation interface{} - err = json.Unmarshal(*v, &noTruncation) - if err != nil { - return err - } - ades.NoTruncation = noTruncation - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ades.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ades.AdditionalColumns = &additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ades.AdditionalProperties == nil { - ades.AdditionalProperties = make(map[string]interface{}) - } - ades.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ades.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ades.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ades.MaxConcurrentConnections = maxConcurrentConnections - } +// AsCouchbaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsBasicCopySource() (BasicCopySource, bool) { + return &adlss, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreSource struct. +func (adlss *AzureDataLakeStoreSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + adlss.Recursive = recursive + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlss.AdditionalProperties == nil { + adlss.AdditionalProperties = make(map[string]interface{}) + } + adlss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + adlss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + adlss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + adlss.MaxConcurrentConnections = maxConcurrentConnections + } case "type": if v != nil { var typeVar TypeBasicCopySource @@ -21779,7 +22638,7 @@ func (ades *AzureDataExplorerSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ades.Type = typeVar + adlss.Type = typeVar } } } @@ -21787,10 +22646,149 @@ func (ades *AzureDataExplorerSource) UnmarshalJSON(body []byte) error { return nil } -// AzureDataExplorerTableDataset the Azure Data Explorer (Kusto) dataset. -type AzureDataExplorerTableDataset struct { - // AzureDataExplorerDatasetTypeProperties - Azure Data Explorer (Kusto) dataset properties. - *AzureDataExplorerDatasetTypeProperties `json:"typeProperties,omitempty"` +// AzureDataLakeStoreWriteSettings azure data lake store write settings. +type AzureDataLakeStoreWriteSettings struct { + // ExpiryDateTime - Specifies the expiry time of the written files. The time is applied to the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: integer (or Expression with resultType integer). + ExpiryDateTime interface{} `json:"expiryDateTime,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeAzureFileStorageWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings', 'TypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) MarshalJSON() ([]byte, error) { + adlsws.Type = TypeAzureDataLakeStoreWriteSettings + objectMap := make(map[string]interface{}) + if adlsws.ExpiryDateTime != nil { + objectMap["expiryDateTime"] = adlsws.ExpiryDateTime + } + if adlsws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = adlsws.MaxConcurrentConnections + } + if adlsws.CopyBehavior != nil { + objectMap["copyBehavior"] = adlsws.CopyBehavior + } + if adlsws.Type != "" { + objectMap["type"] = adlsws.Type + } + for k, v := range adlsws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { + return nil, false +} + +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return &adlsws, true +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &adlsws, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreWriteSettings struct. +func (adlsws *AzureDataLakeStoreWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "expiryDateTime": + if v != nil { + var expiryDateTime interface{} + err = json.Unmarshal(*v, &expiryDateTime) + if err != nil { + return err + } + adlsws.ExpiryDateTime = expiryDateTime + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlsws.AdditionalProperties == nil { + adlsws.AdditionalProperties = make(map[string]interface{}) + } + adlsws.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + adlsws.MaxConcurrentConnections = maxConcurrentConnections + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + adlsws.CopyBehavior = copyBehavior + } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlsws.Type = typeVar + } + } + } + + return nil +} + +// AzureDatabricksDeltaLakeDataset azure Databricks Delta Lake dataset. +type AzureDatabricksDeltaLakeDataset struct { + // AzureDatabricksDeltaLakeDatasetTypeProperties - Properties specific to this dataset type. + *AzureDatabricksDeltaLakeDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -21811,520 +22809,520 @@ type AzureDataExplorerTableDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) MarshalJSON() ([]byte, error) { - adetd.Type = TypeAzureDataExplorerTable +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) MarshalJSON() ([]byte, error) { + addld.Type = TypeAzureDatabricksDeltaLakeDataset objectMap := make(map[string]interface{}) - if adetd.AzureDataExplorerDatasetTypeProperties != nil { - objectMap["typeProperties"] = adetd.AzureDataExplorerDatasetTypeProperties + if addld.AzureDatabricksDeltaLakeDatasetTypeProperties != nil { + objectMap["typeProperties"] = addld.AzureDatabricksDeltaLakeDatasetTypeProperties } - if adetd.Description != nil { - objectMap["description"] = adetd.Description + if addld.Description != nil { + objectMap["description"] = addld.Description } - if adetd.Structure != nil { - objectMap["structure"] = adetd.Structure + if addld.Structure != nil { + objectMap["structure"] = addld.Structure } - if adetd.Schema != nil { - objectMap["schema"] = adetd.Schema + if addld.Schema != nil { + objectMap["schema"] = addld.Schema } - if adetd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = adetd.LinkedServiceName + if addld.LinkedServiceName != nil { + objectMap["linkedServiceName"] = addld.LinkedServiceName } - if adetd.Parameters != nil { - objectMap["parameters"] = adetd.Parameters + if addld.Parameters != nil { + objectMap["parameters"] = addld.Parameters } - if adetd.Annotations != nil { - objectMap["annotations"] = adetd.Annotations + if addld.Annotations != nil { + objectMap["annotations"] = addld.Annotations } - if adetd.Folder != nil { - objectMap["folder"] = adetd.Folder + if addld.Folder != nil { + objectMap["folder"] = addld.Folder } - if adetd.Type != "" { - objectMap["type"] = adetd.Type + if addld.Type != "" { + objectMap["type"] = addld.Type } - for k, v := range adetd.AdditionalProperties { + for k, v := range addld.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return &addld, true } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return &adetd, true +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &adetd, true +// AsBasicDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsBasicDataset() (BasicDataset, bool) { + return &addld, true } -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerTableDataset struct. -func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeDataset struct. +func (addld *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -22334,12 +23332,12 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureDataExplorerDatasetTypeProperties AzureDataExplorerDatasetTypeProperties - err = json.Unmarshal(*v, &azureDataExplorerDatasetTypeProperties) + var azureDatabricksDeltaLakeDatasetTypeProperties AzureDatabricksDeltaLakeDatasetTypeProperties + err = json.Unmarshal(*v, &azureDatabricksDeltaLakeDatasetTypeProperties) if err != nil { return err } - adetd.AzureDataExplorerDatasetTypeProperties = &azureDataExplorerDatasetTypeProperties + addld.AzureDatabricksDeltaLakeDatasetTypeProperties = &azureDatabricksDeltaLakeDatasetTypeProperties } default: if v != nil { @@ -22348,10 +23346,10 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if adetd.AdditionalProperties == nil { - adetd.AdditionalProperties = make(map[string]interface{}) + if addld.AdditionalProperties == nil { + addld.AdditionalProperties = make(map[string]interface{}) } - adetd.AdditionalProperties[k] = additionalProperties + addld.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -22360,7 +23358,7 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - adetd.Description = &description + addld.Description = &description } case "structure": if v != nil { @@ -22369,7 +23367,7 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - adetd.Structure = structure + addld.Structure = structure } case "schema": if v != nil { @@ -22378,7 +23376,7 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - adetd.Schema = schema + addld.Schema = schema } case "linkedServiceName": if v != nil { @@ -22387,7 +23385,7 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - adetd.LinkedServiceName = &linkedServiceName + addld.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -22396,7 +23394,7 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - adetd.Parameters = parameters + addld.Parameters = parameters } case "annotations": if v != nil { @@ -22405,7 +23403,7 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - adetd.Annotations = &annotations + addld.Annotations = &annotations } case "folder": if v != nil { @@ -22414,7 +23412,7 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - adetd.Folder = &folder + addld.Folder = &folder } case "type": if v != nil { @@ -22423,7 +23421,7 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - adetd.Type = typeVar + addld.Type = typeVar } } } @@ -22431,564 +23429,782 @@ func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { return nil } -// AzureDataLakeAnalyticsLinkedService azure Data Lake Analytics linked service. -type AzureDataLakeAnalyticsLinkedService struct { - // AzureDataLakeAnalyticsLinkedServiceTypeProperties - Azure Data Lake Analytics linked service properties. - *AzureDataLakeAnalyticsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// AzureDatabricksDeltaLakeDatasetTypeProperties azure Databricks Delta Lake Dataset Properties +type AzureDatabricksDeltaLakeDatasetTypeProperties struct { + // Table - The name of delta table. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Database - The database name of delta table. Type: string (or Expression with resultType string). + Database interface{} `json:"database,omitempty"` +} + +// AzureDatabricksDeltaLakeExportCommand azure Databricks Delta Lake export command settings. +type AzureDatabricksDeltaLakeExportCommand struct { + // DateFormat - Specify the date format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). + DateFormat interface{} `json:"dateFormat,omitempty"` + // TimestampFormat - Specify the timestamp format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). + TimestampFormat interface{} `json:"timestampFormat,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // Type - Possible values include: 'TypeExportSettings', 'TypeSnowflakeExportCopyCommand', 'TypeAzureDatabricksDeltaLakeExportCommand' + Type TypeBasicExportSettings `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) MarshalJSON() ([]byte, error) { - adlals.Type = TypeAzureDataLakeAnalytics +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeExportCommand. +func (addlec AzureDatabricksDeltaLakeExportCommand) MarshalJSON() ([]byte, error) { + addlec.Type = TypeAzureDatabricksDeltaLakeExportCommand objectMap := make(map[string]interface{}) - if adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties - } - if adlals.ConnectVia != nil { - objectMap["connectVia"] = adlals.ConnectVia - } - if adlals.Description != nil { - objectMap["description"] = adlals.Description - } - if adlals.Parameters != nil { - objectMap["parameters"] = adlals.Parameters + if addlec.DateFormat != nil { + objectMap["dateFormat"] = addlec.DateFormat } - if adlals.Annotations != nil { - objectMap["annotations"] = adlals.Annotations + if addlec.TimestampFormat != nil { + objectMap["timestampFormat"] = addlec.TimestampFormat } - if adlals.Type != "" { - objectMap["type"] = adlals.Type + if addlec.Type != "" { + objectMap["type"] = addlec.Type } - for k, v := range adlals.AdditionalProperties { + for k, v := range addlec.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. +func (addlec AzureDatabricksDeltaLakeExportCommand) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false +// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. +func (addlec AzureDatabricksDeltaLakeExportCommand) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { + return &addlec, true } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsExportSettings is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. +func (addlec AzureDatabricksDeltaLakeExportCommand) AsExportSettings() (*ExportSettings, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false +// AsBasicExportSettings is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. +func (addlec AzureDatabricksDeltaLakeExportCommand) AsBasicExportSettings() (BasicExportSettings, bool) { + return &addlec, true } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeExportCommand struct. +func (addlec *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "dateFormat": + if v != nil { + var dateFormat interface{} + err = json.Unmarshal(*v, &dateFormat) + if err != nil { + return err + } + addlec.DateFormat = dateFormat + } + case "timestampFormat": + if v != nil { + var timestampFormat interface{} + err = json.Unmarshal(*v, ×tampFormat) + if err != nil { + return err + } + addlec.TimestampFormat = timestampFormat + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if addlec.AdditionalProperties == nil { + addlec.AdditionalProperties = make(map[string]interface{}) + } + addlec.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicExportSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + addlec.Type = typeVar + } + } + } -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false + return nil } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false +// AzureDatabricksDeltaLakeImportCommand azure Databricks Delta Lake import command settings. +type AzureDatabricksDeltaLakeImportCommand struct { + // DateFormat - Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). + DateFormat interface{} `json:"dateFormat,omitempty"` + // TimestampFormat - Specify the timestamp format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). + TimestampFormat interface{} `json:"timestampFormat,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeImportSettings', 'TypeAzureDatabricksDeltaLakeImportCommand', 'TypeSnowflakeImportCopyCommand' + Type TypeBasicImportSettings `json:"type,omitempty"` } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeImportCommand. +func (addlic AzureDatabricksDeltaLakeImportCommand) MarshalJSON() ([]byte, error) { + addlic.Type = TypeAzureDatabricksDeltaLakeImportCommand + objectMap := make(map[string]interface{}) + if addlic.DateFormat != nil { + objectMap["dateFormat"] = addlic.DateFormat + } + if addlic.TimestampFormat != nil { + objectMap["timestampFormat"] = addlic.TimestampFormat + } + if addlic.Type != "" { + objectMap["type"] = addlic.Type + } + for k, v := range addlic.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeImportCommand is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. +func (addlic AzureDatabricksDeltaLakeImportCommand) AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) { + return &addlic, true +} + +// AsSnowflakeImportCopyCommand is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. +func (addlic AzureDatabricksDeltaLakeImportCommand) AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return &adlals, true +// AsImportSettings is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. +func (addlic AzureDatabricksDeltaLakeImportCommand) AsImportSettings() (*ImportSettings, bool) { + return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsBasicImportSettings is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. +func (addlic AzureDatabricksDeltaLakeImportCommand) AsBasicImportSettings() (BasicImportSettings, bool) { + return &addlic, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeImportCommand struct. +func (addlic *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "dateFormat": + if v != nil { + var dateFormat interface{} + err = json.Unmarshal(*v, &dateFormat) + if err != nil { + return err + } + addlic.DateFormat = dateFormat + } + case "timestampFormat": + if v != nil { + var timestampFormat interface{} + err = json.Unmarshal(*v, ×tampFormat) + if err != nil { + return err + } + addlic.TimestampFormat = timestampFormat + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if addlic.AdditionalProperties == nil { + addlic.AdditionalProperties = make(map[string]interface{}) + } + addlic.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicImportSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + addlic.Type = typeVar + } + } + } + + return nil +} + +// AzureDatabricksDeltaLakeLinkedService azure Databricks Delta Lake linked service. +type AzureDatabricksDeltaLakeLinkedService struct { + // AzureDatabricksDetltaLakeLinkedServiceTypeProperties - Azure Databricks Delta Lake linked service properties. + *AzureDatabricksDetltaLakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) MarshalJSON() ([]byte, error) { + addlls.Type = TypeAzureDatabricksDeltaLake + objectMap := make(map[string]interface{}) + if addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties + } + if addlls.ConnectVia != nil { + objectMap["connectVia"] = addlls.ConnectVia + } + if addlls.Description != nil { + objectMap["description"] = addlls.Description + } + if addlls.Parameters != nil { + objectMap["parameters"] = addlls.Parameters + } + if addlls.Annotations != nil { + objectMap["annotations"] = addlls.Annotations + } + if addlls.Type != "" { + objectMap["type"] = addlls.Type + } + for k, v := range addlls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return &addlls, true +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adlals, true +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeAnalyticsLinkedService struct. -func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) error { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &addlls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeLinkedService struct. +func (addlls *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -22998,12 +24214,12 @@ func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) er switch k { case "typeProperties": if v != nil { - var azureDataLakeAnalyticsLinkedServiceTypeProperties AzureDataLakeAnalyticsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDataLakeAnalyticsLinkedServiceTypeProperties) + var azureDatabricksDetltaLakeLinkedServiceTypeProperties AzureDatabricksDetltaLakeLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureDatabricksDetltaLakeLinkedServiceTypeProperties) if err != nil { return err } - adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties = &azureDataLakeAnalyticsLinkedServiceTypeProperties + addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties = &azureDatabricksDetltaLakeLinkedServiceTypeProperties } default: if v != nil { @@ -23012,10 +24228,10 @@ func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) er if err != nil { return err } - if adlals.AdditionalProperties == nil { - adlals.AdditionalProperties = make(map[string]interface{}) + if addlls.AdditionalProperties == nil { + addlls.AdditionalProperties = make(map[string]interface{}) } - adlals.AdditionalProperties[k] = additionalProperties + addlls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -23024,7 +24240,7 @@ func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) er if err != nil { return err } - adlals.ConnectVia = &connectVia + addlls.ConnectVia = &connectVia } case "description": if v != nil { @@ -23033,7 +24249,7 @@ func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) er if err != nil { return err } - adlals.Description = &description + addlls.Description = &description } case "parameters": if v != nil { @@ -23042,7 +24258,7 @@ func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) er if err != nil { return err } - adlals.Parameters = parameters + addlls.Parameters = parameters } case "annotations": if v != nil { @@ -23051,7 +24267,7 @@ func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) er if err != nil { return err } - adlals.Annotations = &annotations + addlls.Annotations = &annotations } case "type": if v != nil { @@ -23060,113 +24276,7 @@ func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) er if err != nil { return err } - adlals.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeAnalyticsLinkedServiceTypeProperties azure Data Lake Analytics linked service properties. -type AzureDataLakeAnalyticsLinkedServiceTypeProperties struct { - // AccountName - The Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` - // ServicePrincipalID - The ID of the application used to authenticate against the Azure Data Lake Analytics account. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Analytics account. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // SubscriptionID - Data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` - // ResourceGroupName - Data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` - // DataLakeAnalyticsURI - Azure Data Lake Analytics URI Type: string (or Expression with resultType string). - DataLakeAnalyticsURI interface{} `json:"dataLakeAnalyticsUri,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeAnalyticsLinkedServiceTypeProperties struct. -func (adlalstp *AzureDataLakeAnalyticsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accountName": - if v != nil { - var accountName interface{} - err = json.Unmarshal(*v, &accountName) - if err != nil { - return err - } - adlalstp.AccountName = accountName - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - adlalstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - adlalstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - adlalstp.Tenant = tenant - } - case "subscriptionId": - if v != nil { - var subscriptionID interface{} - err = json.Unmarshal(*v, &subscriptionID) - if err != nil { - return err - } - adlalstp.SubscriptionID = subscriptionID - } - case "resourceGroupName": - if v != nil { - var resourceGroupName interface{} - err = json.Unmarshal(*v, &resourceGroupName) - if err != nil { - return err - } - adlalstp.ResourceGroupName = resourceGroupName - } - case "dataLakeAnalyticsUri": - if v != nil { - var dataLakeAnalyticsURI interface{} - err = json.Unmarshal(*v, &dataLakeAnalyticsURI) - if err != nil { - return err - } - adlalstp.DataLakeAnalyticsURI = dataLakeAnalyticsURI - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - adlalstp.EncryptedCredential = encryptedCredential + addlls.Type = typeVar } } } @@ -23174,544 +24284,269 @@ func (adlalstp *AzureDataLakeAnalyticsLinkedServiceTypeProperties) UnmarshalJSON return nil } -// AzureDataLakeStoreDataset azure Data Lake Store dataset. -type AzureDataLakeStoreDataset struct { - // AzureDataLakeStoreDatasetTypeProperties - Azure Data Lake Store dataset properties. - *AzureDataLakeStoreDatasetTypeProperties `json:"typeProperties,omitempty"` +// AzureDatabricksDeltaLakeSink a copy activity Azure Databricks Delta Lake sink. +type AzureDatabricksDeltaLakeSink struct { + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // ImportSettings - Azure Databricks Delta Lake import settings. + ImportSettings *AzureDatabricksDeltaLakeImportCommand `json:"importSettings,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) MarshalJSON() ([]byte, error) { - adlsd.Type = TypeAzureDataLakeStoreFile +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) MarshalJSON() ([]byte, error) { + addls.Type = TypeAzureDatabricksDeltaLakeSink objectMap := make(map[string]interface{}) - if adlsd.AzureDataLakeStoreDatasetTypeProperties != nil { - objectMap["typeProperties"] = adlsd.AzureDataLakeStoreDatasetTypeProperties - } - if adlsd.Description != nil { - objectMap["description"] = adlsd.Description + if addls.PreCopyScript != nil { + objectMap["preCopyScript"] = addls.PreCopyScript } - if adlsd.Structure != nil { - objectMap["structure"] = adlsd.Structure + if addls.ImportSettings != nil { + objectMap["importSettings"] = addls.ImportSettings } - if adlsd.Schema != nil { - objectMap["schema"] = adlsd.Schema + if addls.WriteBatchSize != nil { + objectMap["writeBatchSize"] = addls.WriteBatchSize } - if adlsd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = adlsd.LinkedServiceName + if addls.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = addls.WriteBatchTimeout } - if adlsd.Parameters != nil { - objectMap["parameters"] = adlsd.Parameters + if addls.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = addls.SinkRetryCount } - if adlsd.Annotations != nil { - objectMap["annotations"] = adlsd.Annotations + if addls.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = addls.SinkRetryWait } - if adlsd.Folder != nil { - objectMap["folder"] = adlsd.Folder + if addls.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = addls.MaxConcurrentConnections } - if adlsd.Type != "" { - objectMap["type"] = adlsd.Type + if addls.Type != "" { + objectMap["type"] = addls.Type } - for k, v := range adlsd.AdditionalProperties { + for k, v := range addls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsSalesforceSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsDynamicsSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsInformixSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsOdbcSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsOracleSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsSQLDWSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsSQLMISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSQLServerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsFileSystemSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsBlobSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsBinarySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsParquetSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsAvroSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsAzureTableSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return &addls, true } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsRestSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsOrcSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsJSONSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsCopySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false +// AsBasicCopySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsBasicCopySink() (BasicCopySink, bool) { + return &addls, true } -// AsDb2TableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return &adlsd, true -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsBasicDataset() (BasicDataset, bool) { - return &adlsd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreDataset struct. -func (adlsd *AzureDataLakeStoreDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeSink struct. +func (addls *AzureDatabricksDeltaLakeSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -23719,159 +24554,89 @@ func (adlsd *AzureDataLakeStoreDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "preCopyScript": if v != nil { - var azureDataLakeStoreDatasetTypeProperties AzureDataLakeStoreDatasetTypeProperties - err = json.Unmarshal(*v, &azureDataLakeStoreDatasetTypeProperties) + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) if err != nil { return err } - adlsd.AzureDataLakeStoreDatasetTypeProperties = &azureDataLakeStoreDatasetTypeProperties + addls.PreCopyScript = preCopyScript } - default: + case "importSettings": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var importSettings AzureDatabricksDeltaLakeImportCommand + err = json.Unmarshal(*v, &importSettings) if err != nil { return err } - if adlsd.AdditionalProperties == nil { - adlsd.AdditionalProperties = make(map[string]interface{}) - } - adlsd.AdditionalProperties[k] = additionalProperties + addls.ImportSettings = &importSettings } - case "description": + default: if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - adlsd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err + if addls.AdditionalProperties == nil { + addls.AdditionalProperties = make(map[string]interface{}) } - adlsd.Structure = structure + addls.AdditionalProperties[k] = additionalProperties } - case "schema": + case "writeBatchSize": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - adlsd.Schema = schema + addls.WriteBatchSize = writeBatchSize } - case "linkedServiceName": + case "writeBatchTimeout": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - adlsd.LinkedServiceName = &linkedServiceName + addls.WriteBatchTimeout = writeBatchTimeout } - case "parameters": + case "sinkRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) if err != nil { return err } - adlsd.Parameters = parameters + addls.SinkRetryCount = sinkRetryCount } - case "annotations": + case "sinkRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) if err != nil { return err } - adlsd.Annotations = &annotations + addls.SinkRetryWait = sinkRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - adlsd.Folder = &folder + addls.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - adlsd.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreDatasetTypeProperties azure Data Lake Store dataset properties. -type AzureDataLakeStoreDatasetTypeProperties struct { - // FolderPath - Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Format - The format of the Data Lake Store. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used for the item(s) in the Azure Data Lake Store. - Compression BasicDatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreDatasetTypeProperties struct. -func (adlsdtp *AzureDataLakeStoreDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - adlsdtp.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - adlsdtp.FileName = fileName - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - adlsdtp.Format = formatVar - } - case "compression": - if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) - if err != nil { - return err - } - adlsdtp.Compression = compression + addls.Type = typeVar } } } @@ -23879,564 +24644,534 @@ func (adlsdtp *AzureDataLakeStoreDatasetTypeProperties) UnmarshalJSON(body []byt return nil } -// AzureDataLakeStoreLinkedService azure Data Lake Store linked service. -type AzureDataLakeStoreLinkedService struct { - // AzureDataLakeStoreLinkedServiceTypeProperties - Azure Data Lake Store linked service properties. - *AzureDataLakeStoreLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// AzureDatabricksDeltaLakeSource a copy activity Azure Databricks Delta Lake source. +type AzureDatabricksDeltaLakeSource struct { + // Query - Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // ExportSettings - Azure Databricks Delta Lake export settings. + ExportSettings *AzureDatabricksDeltaLakeExportCommand `json:"exportSettings,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) MarshalJSON() ([]byte, error) { - adlsls.Type = TypeAzureDataLakeStore +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) MarshalJSON() ([]byte, error) { + addls.Type = TypeAzureDatabricksDeltaLakeSource objectMap := make(map[string]interface{}) - if adlsls.AzureDataLakeStoreLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adlsls.AzureDataLakeStoreLinkedServiceTypeProperties + if addls.Query != nil { + objectMap["query"] = addls.Query } - if adlsls.ConnectVia != nil { - objectMap["connectVia"] = adlsls.ConnectVia + if addls.ExportSettings != nil { + objectMap["exportSettings"] = addls.ExportSettings } - if adlsls.Description != nil { - objectMap["description"] = adlsls.Description + if addls.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = addls.SourceRetryCount } - if adlsls.Parameters != nil { - objectMap["parameters"] = adlsls.Parameters + if addls.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = addls.SourceRetryWait } - if adlsls.Annotations != nil { - objectMap["annotations"] = adlsls.Annotations + if addls.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = addls.MaxConcurrentConnections } - if adlsls.Type != "" { - objectMap["type"] = adlsls.Type + if addls.Type != "" { + objectMap["type"] = addls.Type } - for k, v := range adlsls.AdditionalProperties { + for k, v := range addls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return &addls, true } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsFileSystemSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsRestSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsVerticaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsNetezzaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsZohoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsXeroSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsSquareSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSparkSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsShopifySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsServiceNowSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsPrestoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsPhoenixSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsPaypalSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsMarketoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsMariaDBSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsMagentoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsJiraSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsImpalaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsHubspotSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsHiveSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsHBaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsGreenplumSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return &adlsls, true -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsEloquaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsDrillSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsConcurSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsCassandraSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsTeradataSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsSQLDWSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsSQLMISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsSQLServerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSapTableSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsSapHanaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsSapEccSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsSalesforceSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSapBwSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsSybaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsMySQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsOdbcSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsDb2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsInformixSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsTabularSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsBinarySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsOrcSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsXMLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsJSONSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsParquetSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsExcelSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAvroSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsCopySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adlsls, true +// AsBasicCopySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsBasicCopySource() (BasicCopySource, bool) { + return &addls, true } -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLinkedService struct. -func (adlsls *AzureDataLakeStoreLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeSource struct. +func (addls *AzureDatabricksDeltaLakeSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -24444,71 +25179,71 @@ func (adlsls *AzureDataLakeStoreLinkedService) UnmarshalJSON(body []byte) error } for k, v := range m { switch k { - case "typeProperties": + case "query": if v != nil { - var azureDataLakeStoreLinkedServiceTypeProperties AzureDataLakeStoreLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDataLakeStoreLinkedServiceTypeProperties) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - adlsls.AzureDataLakeStoreLinkedServiceTypeProperties = &azureDataLakeStoreLinkedServiceTypeProperties + addls.Query = query } - default: + case "exportSettings": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var exportSettings AzureDatabricksDeltaLakeExportCommand + err = json.Unmarshal(*v, &exportSettings) if err != nil { return err } - if adlsls.AdditionalProperties == nil { - adlsls.AdditionalProperties = make(map[string]interface{}) - } - adlsls.AdditionalProperties[k] = additionalProperties + addls.ExportSettings = &exportSettings } - case "connectVia": + default: if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - adlsls.ConnectVia = &connectVia + if addls.AdditionalProperties == nil { + addls.AdditionalProperties = make(map[string]interface{}) + } + addls.AdditionalProperties[k] = additionalProperties } - case "description": + case "sourceRetryCount": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - adlsls.Description = &description + addls.SourceRetryCount = sourceRetryCount } - case "parameters": + case "sourceRetryWait": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - adlsls.Parameters = parameters + addls.SourceRetryWait = sourceRetryWait } - case "annotations": + case "maxConcurrentConnections": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - adlsls.Annotations = &annotations + addls.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicLinkedService + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - adlsls.Type = typeVar + addls.Type = typeVar } } } @@ -24516,30 +25251,21 @@ func (adlsls *AzureDataLakeStoreLinkedService) UnmarshalJSON(body []byte) error return nil } -// AzureDataLakeStoreLinkedServiceTypeProperties azure Data Lake Store linked service properties. -type AzureDataLakeStoreLinkedServiceTypeProperties struct { - // DataLakeStoreURI - Data Lake Store service URI. Type: string (or Expression with resultType string). - DataLakeStoreURI interface{} `json:"dataLakeStoreUri,omitempty"` - // ServicePrincipalID - The ID of the application used to authenticate against the Azure Data Lake Store account. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Store account. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // AzureCloudType - Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` - // AccountName - Data Lake Store account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` - // SubscriptionID - Data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` - // ResourceGroupName - Data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` +// AzureDatabricksDetltaLakeLinkedServiceTypeProperties azure Databricks Delta Lake linked service +// properties. +type AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct { + // Domain - .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). + Domain interface{} `json:"domain,omitempty"` + // AccessToken - Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or AzureKeyVaultSecretReference. + AccessToken BasicSecretBase `json:"accessToken,omitempty"` + // ClusterID - The id of an existing interactive cluster that will be used for all runs of this job. Type: string (or Expression with resultType string). + ClusterID interface{} `json:"clusterId,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLinkedServiceTypeProperties struct. -func (adlslstp *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct. +func (addllstp *AzureDatabricksDetltaLakeLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -24547,76 +25273,31 @@ func (adlslstp *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(bod } for k, v := range m { switch k { - case "dataLakeStoreUri": - if v != nil { - var dataLakeStoreURI interface{} - err = json.Unmarshal(*v, &dataLakeStoreURI) - if err != nil { - return err - } - adlslstp.DataLakeStoreURI = dataLakeStoreURI - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - adlslstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - adlslstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - adlslstp.Tenant = tenant - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - adlslstp.AzureCloudType = azureCloudType - } - case "accountName": + case "domain": if v != nil { - var accountName interface{} - err = json.Unmarshal(*v, &accountName) + var domain interface{} + err = json.Unmarshal(*v, &domain) if err != nil { return err } - adlslstp.AccountName = accountName + addllstp.Domain = domain } - case "subscriptionId": + case "accessToken": if v != nil { - var subscriptionID interface{} - err = json.Unmarshal(*v, &subscriptionID) + accessToken, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - adlslstp.SubscriptionID = subscriptionID + addllstp.AccessToken = accessToken } - case "resourceGroupName": + case "clusterId": if v != nil { - var resourceGroupName interface{} - err = json.Unmarshal(*v, &resourceGroupName) + var clusterID interface{} + err = json.Unmarshal(*v, &clusterID) if err != nil { return err } - adlslstp.ResourceGroupName = resourceGroupName + addllstp.ClusterID = clusterID } case "encryptedCredential": if v != nil { @@ -24625,7 +25306,7 @@ func (adlslstp *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(bod if err != nil { return err } - adlslstp.EncryptedCredential = encryptedCredential + addllstp.EncryptedCredential = encryptedCredential } } } @@ -24633,1339 +25314,743 @@ func (adlslstp *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(bod return nil } -// AzureDataLakeStoreLocation the location of azure data lake store dataset. -type AzureDataLakeStoreLocation struct { +// AzureDatabricksLinkedService azure Databricks linked service. +type AzureDatabricksLinkedService struct { + // AzureDatabricksLinkedServiceTypeProperties - Azure Databricks linked service properties. + *AzureDatabricksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) MarshalJSON() ([]byte, error) { - adlsl.Type = TypeAzureDataLakeStoreLocation +// MarshalJSON is the custom marshaler for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) MarshalJSON() ([]byte, error) { + adls.Type = TypeAzureDatabricks objectMap := make(map[string]interface{}) - if adlsl.FolderPath != nil { - objectMap["folderPath"] = adlsl.FolderPath + if adls.AzureDatabricksLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = adls.AzureDatabricksLinkedServiceTypeProperties } - if adlsl.FileName != nil { - objectMap["fileName"] = adlsl.FileName + if adls.ConnectVia != nil { + objectMap["connectVia"] = adls.ConnectVia } - if adlsl.Type != "" { - objectMap["type"] = adlsl.Type + if adls.Description != nil { + objectMap["description"] = adls.Description } - for k, v := range adlsl.AdditionalProperties { + if adls.Parameters != nil { + objectMap["parameters"] = adls.Parameters + } + if adls.Annotations != nil { + objectMap["annotations"] = adls.Annotations + } + if adls.Type != "" { + objectMap["type"] = adls.Type + } + for k, v := range adls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsHdfsLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsHdfsLocation() (*HdfsLocation, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsHTTPServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsFileServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsFileServerLocation() (*FileServerLocation, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAmazonS3Location is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return &adlsl, true -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsDatasetLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsDatasetLocation() (*DatasetLocation, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &adlsl, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLocation struct. -func (adlsl *AzureDataLakeStoreLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlsl.AdditionalProperties == nil { - adlsl.AdditionalProperties = make(map[string]interface{}) - } - adlsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - adlsl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - adlsl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlsl.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreReadSettings azure data lake store read settings. -type AzureDataLakeStoreReadSettings struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // WildcardFolderPath - ADLS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - ADLS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` - // ListAfter - Lists files after the value (exclusive) based on file/folder names’ lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string (or Expression with resultType string). - ListAfter interface{} `json:"listAfter,omitempty"` - // ListBefore - Lists files before the value (inclusive) based on file/folder names’ lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string (or Expression with resultType string). - ListBefore interface{} `json:"listBefore,omitempty"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) MarshalJSON() ([]byte, error) { - adlsrs.Type = TypeAzureDataLakeStoreReadSettings - objectMap := make(map[string]interface{}) - if adlsrs.Recursive != nil { - objectMap["recursive"] = adlsrs.Recursive - } - if adlsrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = adlsrs.WildcardFolderPath - } - if adlsrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = adlsrs.WildcardFileName - } - if adlsrs.FileListPath != nil { - objectMap["fileListPath"] = adlsrs.FileListPath - } - if adlsrs.ListAfter != nil { - objectMap["listAfter"] = adlsrs.ListAfter - } - if adlsrs.ListBefore != nil { - objectMap["listBefore"] = adlsrs.ListBefore - } - if adlsrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = adlsrs.EnablePartitionDiscovery - } - if adlsrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = adlsrs.PartitionRootPath - } - if adlsrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = adlsrs.DeleteFilesAfterCompletion - } - if adlsrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = adlsrs.ModifiedDatetimeStart - } - if adlsrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = adlsrs.ModifiedDatetimeEnd - } - if adlsrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = adlsrs.MaxConcurrentConnections - } - if adlsrs.Type != "" { - objectMap["type"] = adlsrs.Type - } - for k, v := range adlsrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return &adls, true } -// AsSftpReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsFtpReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return &adlsrs, true -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &adlsrs, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreReadSettings struct. -func (adlsrs *AzureDataLakeStoreReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - adlsrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - adlsrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - adlsrs.WildcardFileName = wildcardFileName - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - adlsrs.FileListPath = fileListPath - } - case "listAfter": - if v != nil { - var listAfter interface{} - err = json.Unmarshal(*v, &listAfter) - if err != nil { - return err - } - adlsrs.ListAfter = listAfter - } - case "listBefore": - if v != nil { - var listBefore interface{} - err = json.Unmarshal(*v, &listBefore) - if err != nil { - return err - } - adlsrs.ListBefore = listBefore - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery bool - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - adlsrs.EnablePartitionDiscovery = &enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - adlsrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - adlsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - adlsrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - adlsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlsrs.AdditionalProperties == nil { - adlsrs.AdditionalProperties = make(map[string]interface{}) - } - adlsrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - adlsrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlsrs.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreSink a copy activity Azure Data Lake Store sink. -type AzureDataLakeStoreSink struct { - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // EnableAdlsSingleFileParallel - Single File Parallel. - EnableAdlsSingleFileParallel interface{} `json:"enableAdlsSingleFileParallel,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) MarshalJSON() ([]byte, error) { - adlss.Type = TypeAzureDataLakeStoreSink - objectMap := make(map[string]interface{}) - if adlss.CopyBehavior != nil { - objectMap["copyBehavior"] = adlss.CopyBehavior - } - if adlss.EnableAdlsSingleFileParallel != nil { - objectMap["enableAdlsSingleFileParallel"] = adlss.EnableAdlsSingleFileParallel - } - if adlss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = adlss.WriteBatchSize - } - if adlss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = adlss.WriteBatchTimeout - } - if adlss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = adlss.SinkRetryCount - } - if adlss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = adlss.SinkRetryWait - } - if adlss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections - } - if adlss.Type != "" { - objectMap["type"] = adlss.Type - } - for k, v := range adlss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsInformixSink() (*InformixSink, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsOdbcSink() (*OdbcSink, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return &adlss, true -} - -// AsOracleSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsOracleSink() (*OracleSink, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSQLMISink() (*SQLMISink, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSQLSink() (*SQLSink, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsBlobSink() (*BlobSink, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsBinarySink() (*BinarySink, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsParquetSink() (*ParquetSink, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAvroSink() (*AvroSink, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsRestSink() (*RestSink, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsOrcSink() (*OrcSink, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsJSONSink() (*JSONSink, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsCopySink() (*CopySink, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsBasicCopySink() (BasicCopySink, bool) { - return &adlss, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreSink struct. -func (adlss *AzureDataLakeStoreSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - adlss.CopyBehavior = copyBehavior - } - case "enableAdlsSingleFileParallel": - if v != nil { - var enableAdlsSingleFileParallel interface{} - err = json.Unmarshal(*v, &enableAdlsSingleFileParallel) - if err != nil { - return err - } - adlss.EnableAdlsSingleFileParallel = enableAdlsSingleFileParallel - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlss.AdditionalProperties == nil { - adlss.AdditionalProperties = make(map[string]interface{}) - } - adlss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - adlss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - adlss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - adlss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - adlss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - adlss.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlss.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreSource a copy activity Azure Data Lake source. -type AzureDataLakeStoreSource struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) MarshalJSON() ([]byte, error) { - adlss.Type = TypeAzureDataLakeStoreSource - objectMap := make(map[string]interface{}) - if adlss.Recursive != nil { - objectMap["recursive"] = adlss.Recursive - } - if adlss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = adlss.SourceRetryCount - } - if adlss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = adlss.SourceRetryWait - } - if adlss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections - } - if adlss.Type != "" { - objectMap["type"] = adlss.Type - } - for k, v := range adlss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHTTPSource() (*HTTPSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return &adlss, true -} - -// AsOffice365Source is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOffice365Source() (*Office365Source, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsWebSource() (*WebSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOracleSource() (*OracleSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHdfsSource() (*HdfsSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsRestSource() (*RestSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsODataSource() (*ODataSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsRelationalSource() (*RelationalSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsBlobSource() (*BlobSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsVerticaSource() (*VerticaSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsZohoSource() (*ZohoSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsXeroSource() (*XeroSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSquareSource() (*SquareSource, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSparkSource() (*SparkSource, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsShopifySource() (*ShopifySource, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPrestoSource() (*PrestoSource, bool) { +// AsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false +// AsBasicLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &adls, true } -// AsPaypalSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksLinkedService struct. +func (adls *AzureDatabricksLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDatabricksLinkedServiceTypeProperties AzureDatabricksLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureDatabricksLinkedServiceTypeProperties) + if err != nil { + return err + } + adls.AzureDatabricksLinkedServiceTypeProperties = &azureDatabricksLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adls.AdditionalProperties == nil { + adls.AdditionalProperties = make(map[string]interface{}) + } + adls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + adls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + adls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + adls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + adls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adls.Type = typeVar + } + } + } -// AsMarketoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false + return nil } -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCopySource() (*CopySource, bool) { - return nil, false +// AzureDatabricksLinkedServiceTypeProperties azure Databricks linked service properties. +type AzureDatabricksLinkedServiceTypeProperties struct { + // Domain - .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). + Domain interface{} `json:"domain,omitempty"` + // AccessToken - Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType string). + AccessToken BasicSecretBase `json:"accessToken,omitempty"` + // Authentication - Required to specify MSI, if using Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). + Authentication interface{} `json:"authentication,omitempty"` + // WorkspaceResourceID - Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). + WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` + // ExistingClusterID - The id of an existing interactive cluster that will be used for all runs of this activity. Type: string (or Expression with resultType string). + ExistingClusterID interface{} `json:"existingClusterId,omitempty"` + // InstancePoolID - The id of an existing instance pool that will be used for all runs of this activity. Type: string (or Expression with resultType string). + InstancePoolID interface{} `json:"instancePoolId,omitempty"` + // NewClusterVersion - 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). + NewClusterVersion interface{} `json:"newClusterVersion,omitempty"` + // NewClusterNumOfWorker - 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). + NewClusterNumOfWorker interface{} `json:"newClusterNumOfWorker,omitempty"` + // NewClusterNodeType - 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). + NewClusterNodeType interface{} `json:"newClusterNodeType,omitempty"` + // NewClusterSparkConf - A set of optional, user-specified Spark configuration key-value pairs. + NewClusterSparkConf map[string]interface{} `json:"newClusterSparkConf"` + // NewClusterSparkEnvVars - A set of optional, user-specified Spark environment variables key-value pairs. + NewClusterSparkEnvVars map[string]interface{} `json:"newClusterSparkEnvVars"` + // NewClusterCustomTags - Additional tags for cluster resources. This property is ignored in instance pool configurations. + NewClusterCustomTags map[string]interface{} `json:"newClusterCustomTags"` + // NewClusterLogDestination - Specify a location to deliver Spark driver, worker, and event logs. Type: string (or Expression with resultType string). + NewClusterLogDestination interface{} `json:"newClusterLogDestination,omitempty"` + // NewClusterDriverNodeType - The driver node type for the new job cluster. This property is ignored in instance pool configurations. Type: string (or Expression with resultType string). + NewClusterDriverNodeType interface{} `json:"newClusterDriverNodeType,omitempty"` + // NewClusterInitScripts - User-defined initialization scripts for the new cluster. Type: array of strings (or Expression with resultType array of strings). + NewClusterInitScripts interface{} `json:"newClusterInitScripts,omitempty"` + // NewClusterEnableElasticDisk - 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). + NewClusterEnableElasticDisk interface{} `json:"newClusterEnableElasticDisk,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // PolicyID - The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression with resultType string). + PolicyID interface{} `json:"policyId,omitempty"` } -// AsBasicCopySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsBasicCopySource() (BasicCopySource, bool) { - return &adlss, true +// MarshalJSON is the custom marshaler for AzureDatabricksLinkedServiceTypeProperties. +func (adlstp AzureDatabricksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if adlstp.Domain != nil { + objectMap["domain"] = adlstp.Domain + } + objectMap["accessToken"] = adlstp.AccessToken + if adlstp.Authentication != nil { + objectMap["authentication"] = adlstp.Authentication + } + if adlstp.WorkspaceResourceID != nil { + objectMap["workspaceResourceId"] = adlstp.WorkspaceResourceID + } + if adlstp.ExistingClusterID != nil { + objectMap["existingClusterId"] = adlstp.ExistingClusterID + } + if adlstp.InstancePoolID != nil { + objectMap["instancePoolId"] = adlstp.InstancePoolID + } + if adlstp.NewClusterVersion != nil { + objectMap["newClusterVersion"] = adlstp.NewClusterVersion + } + if adlstp.NewClusterNumOfWorker != nil { + objectMap["newClusterNumOfWorker"] = adlstp.NewClusterNumOfWorker + } + if adlstp.NewClusterNodeType != nil { + objectMap["newClusterNodeType"] = adlstp.NewClusterNodeType + } + if adlstp.NewClusterSparkConf != nil { + objectMap["newClusterSparkConf"] = adlstp.NewClusterSparkConf + } + if adlstp.NewClusterSparkEnvVars != nil { + objectMap["newClusterSparkEnvVars"] = adlstp.NewClusterSparkEnvVars + } + if adlstp.NewClusterCustomTags != nil { + objectMap["newClusterCustomTags"] = adlstp.NewClusterCustomTags + } + if adlstp.NewClusterLogDestination != nil { + objectMap["newClusterLogDestination"] = adlstp.NewClusterLogDestination + } + if adlstp.NewClusterDriverNodeType != nil { + objectMap["newClusterDriverNodeType"] = adlstp.NewClusterDriverNodeType + } + if adlstp.NewClusterInitScripts != nil { + objectMap["newClusterInitScripts"] = adlstp.NewClusterInitScripts + } + if adlstp.NewClusterEnableElasticDisk != nil { + objectMap["newClusterEnableElasticDisk"] = adlstp.NewClusterEnableElasticDisk + } + if adlstp.EncryptedCredential != nil { + objectMap["encryptedCredential"] = adlstp.EncryptedCredential + } + if adlstp.PolicyID != nil { + objectMap["policyId"] = adlstp.PolicyID + } + return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreSource struct. -func (adlss *AzureDataLakeStoreSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksLinkedServiceTypeProperties struct. +func (adlstp *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -25973,201 +26058,166 @@ func (adlss *AzureDataLakeStoreSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "recursive": + case "domain": if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) + var domain interface{} + err = json.Unmarshal(*v, &domain) if err != nil { return err } - adlss.Recursive = recursive + adlstp.Domain = domain } - default: + case "accessToken": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + accessToken, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - if adlss.AdditionalProperties == nil { - adlss.AdditionalProperties = make(map[string]interface{}) + adlstp.AccessToken = accessToken + } + case "authentication": + if v != nil { + var authentication interface{} + err = json.Unmarshal(*v, &authentication) + if err != nil { + return err } - adlss.AdditionalProperties[k] = additionalProperties + adlstp.Authentication = authentication } - case "sourceRetryCount": + case "workspaceResourceId": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var workspaceResourceID interface{} + err = json.Unmarshal(*v, &workspaceResourceID) if err != nil { return err } - adlss.SourceRetryCount = sourceRetryCount + adlstp.WorkspaceResourceID = workspaceResourceID } - case "sourceRetryWait": + case "existingClusterId": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var existingClusterID interface{} + err = json.Unmarshal(*v, &existingClusterID) if err != nil { return err } - adlss.SourceRetryWait = sourceRetryWait + adlstp.ExistingClusterID = existingClusterID } - case "maxConcurrentConnections": + case "instancePoolId": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var instancePoolID interface{} + err = json.Unmarshal(*v, &instancePoolID) if err != nil { return err } - adlss.MaxConcurrentConnections = maxConcurrentConnections + adlstp.InstancePoolID = instancePoolID } - case "type": + case "newClusterVersion": if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) + var newClusterVersion interface{} + err = json.Unmarshal(*v, &newClusterVersion) if err != nil { return err } - adlss.Type = typeVar + adlstp.NewClusterVersion = newClusterVersion } - } - } - - return nil -} - -// AzureDataLakeStoreWriteSettings azure data lake store write settings. -type AzureDataLakeStoreWriteSettings struct { - // ExpiryDateTime - Specifies the expiry time of the written files. The time is applied to the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: integer (or Expression with resultType integer). - ExpiryDateTime interface{} `json:"expiryDateTime,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeAzureFileStorageWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings', 'TypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) MarshalJSON() ([]byte, error) { - adlsws.Type = TypeAzureDataLakeStoreWriteSettings - objectMap := make(map[string]interface{}) - if adlsws.ExpiryDateTime != nil { - objectMap["expiryDateTime"] = adlsws.ExpiryDateTime - } - if adlsws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = adlsws.MaxConcurrentConnections - } - if adlsws.CopyBehavior != nil { - objectMap["copyBehavior"] = adlsws.CopyBehavior - } - if adlsws.Type != "" { - objectMap["type"] = adlsws.Type - } - for k, v := range adlsws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return nil, false -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return &adlsws, true -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return nil, false -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return nil, false -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return nil, false -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &adlsws, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreWriteSettings struct. -func (adlsws *AzureDataLakeStoreWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "expiryDateTime": + case "newClusterNumOfWorker": if v != nil { - var expiryDateTime interface{} - err = json.Unmarshal(*v, &expiryDateTime) + var newClusterNumOfWorker interface{} + err = json.Unmarshal(*v, &newClusterNumOfWorker) if err != nil { return err } - adlsws.ExpiryDateTime = expiryDateTime + adlstp.NewClusterNumOfWorker = newClusterNumOfWorker } - default: + case "newClusterNodeType": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var newClusterNodeType interface{} + err = json.Unmarshal(*v, &newClusterNodeType) if err != nil { return err } - if adlsws.AdditionalProperties == nil { - adlsws.AdditionalProperties = make(map[string]interface{}) + adlstp.NewClusterNodeType = newClusterNodeType + } + case "newClusterSparkConf": + if v != nil { + var newClusterSparkConf map[string]interface{} + err = json.Unmarshal(*v, &newClusterSparkConf) + if err != nil { + return err } - adlsws.AdditionalProperties[k] = additionalProperties + adlstp.NewClusterSparkConf = newClusterSparkConf } - case "maxConcurrentConnections": + case "newClusterSparkEnvVars": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var newClusterSparkEnvVars map[string]interface{} + err = json.Unmarshal(*v, &newClusterSparkEnvVars) if err != nil { return err } - adlsws.MaxConcurrentConnections = maxConcurrentConnections + adlstp.NewClusterSparkEnvVars = newClusterSparkEnvVars } - case "copyBehavior": + case "newClusterCustomTags": if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) + var newClusterCustomTags map[string]interface{} + err = json.Unmarshal(*v, &newClusterCustomTags) if err != nil { return err } - adlsws.CopyBehavior = copyBehavior + adlstp.NewClusterCustomTags = newClusterCustomTags } - case "type": + case "newClusterLogDestination": if v != nil { - var typeVar TypeBasicStoreWriteSettings - err = json.Unmarshal(*v, &typeVar) + var newClusterLogDestination interface{} + err = json.Unmarshal(*v, &newClusterLogDestination) if err != nil { return err } - adlsws.Type = typeVar + adlstp.NewClusterLogDestination = newClusterLogDestination + } + case "newClusterDriverNodeType": + if v != nil { + var newClusterDriverNodeType interface{} + err = json.Unmarshal(*v, &newClusterDriverNodeType) + if err != nil { + return err + } + adlstp.NewClusterDriverNodeType = newClusterDriverNodeType + } + case "newClusterInitScripts": + if v != nil { + var newClusterInitScripts interface{} + err = json.Unmarshal(*v, &newClusterInitScripts) + if err != nil { + return err + } + adlstp.NewClusterInitScripts = newClusterInitScripts + } + case "newClusterEnableElasticDisk": + if v != nil { + var newClusterEnableElasticDisk interface{} + err = json.Unmarshal(*v, &newClusterEnableElasticDisk) + if err != nil { + return err + } + adlstp.NewClusterEnableElasticDisk = newClusterEnableElasticDisk + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + adlstp.EncryptedCredential = encryptedCredential + } + case "policyId": + if v != nil { + var policyID interface{} + err = json.Unmarshal(*v, &policyID) + if err != nil { + return err + } + adlstp.PolicyID = policyID } } } @@ -29260,564 +29310,644 @@ func (akvsr AzureKeyVaultSecretReference) AsBasicSecretBase() (BasicSecretBase, return &akvsr, true } -// AzureMariaDBLinkedService azure Database for MariaDB linked service. -type AzureMariaDBLinkedService struct { - // AzureMariaDBLinkedServiceTypeProperties - Azure Database for MariaDB linked service properties. - *AzureMariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// AzureMLBatchExecutionActivity azure ML Batch Execution activity. +type AzureMLBatchExecutionActivity struct { + // AzureMLBatchExecutionActivityTypeProperties - Azure ML Batch Execution activity properties. + *AzureMLBatchExecutionActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) MarshalJSON() ([]byte, error) { - amdls.Type = TypeAzureMariaDB +// MarshalJSON is the custom marshaler for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) MarshalJSON() ([]byte, error) { + ambea.Type = TypeAzureMLBatchExecution objectMap := make(map[string]interface{}) - if amdls.AzureMariaDBLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amdls.AzureMariaDBLinkedServiceTypeProperties + if ambea.AzureMLBatchExecutionActivityTypeProperties != nil { + objectMap["typeProperties"] = ambea.AzureMLBatchExecutionActivityTypeProperties } - if amdls.ConnectVia != nil { - objectMap["connectVia"] = amdls.ConnectVia + if ambea.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ambea.LinkedServiceName } - if amdls.Description != nil { - objectMap["description"] = amdls.Description + if ambea.Policy != nil { + objectMap["policy"] = ambea.Policy } - if amdls.Parameters != nil { - objectMap["parameters"] = amdls.Parameters + if ambea.Name != nil { + objectMap["name"] = ambea.Name } - if amdls.Annotations != nil { - objectMap["annotations"] = amdls.Annotations + if ambea.Description != nil { + objectMap["description"] = ambea.Description } - if amdls.Type != "" { - objectMap["type"] = amdls.Type + if ambea.DependsOn != nil { + objectMap["dependsOn"] = ambea.DependsOn } - for k, v := range amdls.AdditionalProperties { + if ambea.UserProperties != nil { + objectMap["userProperties"] = ambea.UserProperties + } + if ambea.Type != "" { + objectMap["type"] = ambea.Type + } + for k, v := range ambea.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return &ambea, true } -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsWebActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsLookupActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return &amdls, true -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsDeleteActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsCustomActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsCopyActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false +// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &ambea, true } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsWebHookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSetVariableActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsFilterActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsValidationActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsUntilActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsWaitActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsForEachActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsSwitchActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsIfConditionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsControlActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsBasicControlActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false +// AsBasicActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsBasicActivity() (BasicActivity, bool) { + return &ambea, true } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for AzureMLBatchExecutionActivity struct. +func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureMLBatchExecutionActivityTypeProperties AzureMLBatchExecutionActivityTypeProperties + err = json.Unmarshal(*v, &azureMLBatchExecutionActivityTypeProperties) + if err != nil { + return err + } + ambea.AzureMLBatchExecutionActivityTypeProperties = &azureMLBatchExecutionActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ambea.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + ambea.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ambea.AdditionalProperties == nil { + ambea.AdditionalProperties = make(map[string]interface{}) + } + ambea.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ambea.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ambea.Description = &description + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ambea.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ambea.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ambea.Type = typeVar + } + } + } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false + return nil } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false +// AzureMLBatchExecutionActivityTypeProperties azure ML Batch Execution activity properties. +type AzureMLBatchExecutionActivityTypeProperties struct { + // GlobalParameters - 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. + GlobalParameters map[string]interface{} `json:"globalParameters"` + // WebServiceOutputs - 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. + WebServiceOutputs map[string]*AzureMLWebServiceFile `json:"webServiceOutputs"` + // WebServiceInputs - 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. + WebServiceInputs map[string]*AzureMLWebServiceFile `json:"webServiceInputs"` } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for AzureMLBatchExecutionActivityTypeProperties. +func (ambeatp AzureMLBatchExecutionActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ambeatp.GlobalParameters != nil { + objectMap["globalParameters"] = ambeatp.GlobalParameters + } + if ambeatp.WebServiceOutputs != nil { + objectMap["webServiceOutputs"] = ambeatp.WebServiceOutputs + } + if ambeatp.WebServiceInputs != nil { + objectMap["webServiceInputs"] = ambeatp.WebServiceInputs + } + return json.Marshal(objectMap) } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false +// AzureMLExecutePipelineActivity azure ML Execute Pipeline activity. +type AzureMLExecutePipelineActivity struct { + // AzureMLExecutePipelineActivityTypeProperties - Azure ML Execute Pipeline activity properties. + *AzureMLExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) MarshalJSON() ([]byte, error) { + amepa.Type = TypeAzureMLExecutePipeline + objectMap := make(map[string]interface{}) + if amepa.AzureMLExecutePipelineActivityTypeProperties != nil { + objectMap["typeProperties"] = amepa.AzureMLExecutePipelineActivityTypeProperties + } + if amepa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = amepa.LinkedServiceName + } + if amepa.Policy != nil { + objectMap["policy"] = amepa.Policy + } + if amepa.Name != nil { + objectMap["name"] = amepa.Name + } + if amepa.Description != nil { + objectMap["description"] = amepa.Description + } + if amepa.DependsOn != nil { + objectMap["dependsOn"] = amepa.DependsOn + } + if amepa.UserProperties != nil { + objectMap["userProperties"] = amepa.UserProperties + } + if amepa.Type != "" { + objectMap["type"] = amepa.Type + } + for k, v := range amepa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return &amepa, true } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsWebActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsLookupActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDeleteActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsCustomActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCopyActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false +// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &amepa, true } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsWebHookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsSetVariableActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsFilterActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsValidationActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsUntilActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsWaitActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsForEachActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSwitchActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsIfConditionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsControlActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsBasicControlActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsBasicControlActivity() (BasicControlActivity, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amdls, true +// AsBasicActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsBasicActivity() (BasicActivity, bool) { + return &amepa, true } -// UnmarshalJSON is the custom unmarshaler for AzureMariaDBLinkedService struct. -func (amdls *AzureMariaDBLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureMLExecutePipelineActivity struct. +func (amepa *AzureMLExecutePipelineActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -29827,12 +29957,30 @@ func (amdls *AzureMariaDBLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureMariaDBLinkedServiceTypeProperties AzureMariaDBLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureMariaDBLinkedServiceTypeProperties) + var azureMLExecutePipelineActivityTypeProperties AzureMLExecutePipelineActivityTypeProperties + err = json.Unmarshal(*v, &azureMLExecutePipelineActivityTypeProperties) if err != nil { return err } - amdls.AzureMariaDBLinkedServiceTypeProperties = &azureMariaDBLinkedServiceTypeProperties + amepa.AzureMLExecutePipelineActivityTypeProperties = &azureMLExecutePipelineActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + amepa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + amepa.Policy = &policy } default: if v != nil { @@ -29841,19 +29989,19 @@ func (amdls *AzureMariaDBLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if amdls.AdditionalProperties == nil { - amdls.AdditionalProperties = make(map[string]interface{}) + if amepa.AdditionalProperties == nil { + amepa.AdditionalProperties = make(map[string]interface{}) } - amdls.AdditionalProperties[k] = additionalProperties + amepa.AdditionalProperties[k] = additionalProperties } - case "connectVia": + case "name": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - amdls.ConnectVia = &connectVia + amepa.Name = &name } case "description": if v != nil { @@ -29862,34 +30010,34 @@ func (amdls *AzureMariaDBLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - amdls.Description = &description + amepa.Description = &description } - case "parameters": + case "dependsOn": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) if err != nil { return err } - amdls.Parameters = parameters + amepa.DependsOn = &dependsOn } - case "annotations": + case "userProperties": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) if err != nil { return err } - amdls.Annotations = &annotations + amepa.UserProperties = &userProperties } case "type": if v != nil { - var typeVar TypeBasicLinkedService + var typeVar TypeBasicActivity err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - amdls.Type = typeVar + amepa.Type = typeVar } } } @@ -29897,549 +30045,584 @@ func (amdls *AzureMariaDBLinkedService) UnmarshalJSON(body []byte) error { return nil } -// AzureMariaDBLinkedServiceTypeProperties azure Database for MariaDB linked service properties. -type AzureMariaDBLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Pwd - The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +// AzureMLExecutePipelineActivityTypeProperties azure ML Execute Pipeline activity properties. +type AzureMLExecutePipelineActivityTypeProperties struct { + // MlPipelineID - ID of the published Azure ML pipeline. Type: string (or Expression with resultType string). + MlPipelineID interface{} `json:"mlPipelineId,omitempty"` + // MlPipelineEndpointID - ID of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). + MlPipelineEndpointID interface{} `json:"mlPipelineEndpointId,omitempty"` + // Version - Version of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). + Version interface{} `json:"version,omitempty"` + // ExperimentName - 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). + ExperimentName interface{} `json:"experimentName,omitempty"` + // MlPipelineParameters - 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). + MlPipelineParameters interface{} `json:"mlPipelineParameters,omitempty"` + // DataPathAssignments - Dictionary used for changing data path assignments without retraining. Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type: object with key value pairs (or Expression with resultType object). + DataPathAssignments interface{} `json:"dataPathAssignments,omitempty"` + // MlParentRunID - 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). + MlParentRunID interface{} `json:"mlParentRunId,omitempty"` + // ContinueOnStepFailure - 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). + ContinueOnStepFailure interface{} `json:"continueOnStepFailure,omitempty"` } -// AzureMariaDBSource a copy activity Azure MariaDB source. -type AzureMariaDBSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// AzureMLLinkedService azure ML Studio Web Service linked service. +type AzureMLLinkedService struct { + // AzureMLLinkedServiceTypeProperties - Azure ML Studio Web Service linked service properties. + *AzureMLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureMariaDBSource. -func (amds AzureMariaDBSource) MarshalJSON() ([]byte, error) { - amds.Type = TypeAzureMariaDBSource +// MarshalJSON is the custom marshaler for AzureMLLinkedService. +func (amls AzureMLLinkedService) MarshalJSON() ([]byte, error) { + amls.Type = TypeAzureML objectMap := make(map[string]interface{}) - if amds.Query != nil { - objectMap["query"] = amds.Query - } - if amds.QueryTimeout != nil { - objectMap["queryTimeout"] = amds.QueryTimeout + if amls.AzureMLLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = amls.AzureMLLinkedServiceTypeProperties } - if amds.AdditionalColumns != nil { - objectMap["additionalColumns"] = amds.AdditionalColumns + if amls.ConnectVia != nil { + objectMap["connectVia"] = amls.ConnectVia } - if amds.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = amds.SourceRetryCount + if amls.Description != nil { + objectMap["description"] = amls.Description } - if amds.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = amds.SourceRetryWait + if amls.Parameters != nil { + objectMap["parameters"] = amls.Parameters } - if amds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = amds.MaxConcurrentConnections + if amls.Annotations != nil { + objectMap["annotations"] = amls.Annotations } - if amds.Type != "" { - objectMap["type"] = amds.Type + if amls.Type != "" { + objectMap["type"] = amls.Type } - for k, v := range amds.AdditionalProperties { + for k, v := range amls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsHTTPSource() (*HTTPSource, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsOffice365Source() (*Office365Source, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsWebSource() (*WebSource, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsOracleSource() (*OracleSource, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsHdfsSource() (*HdfsSource, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsRestSource() (*RestSource, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsODataSource() (*ODataSource, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsRelationalSource() (*RelationalSource, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsBlobSource() (*BlobSource, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsVerticaSource() (*VerticaSource, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsZohoSource() (*ZohoSource, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsXeroSource() (*XeroSource, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSquareSource() (*SquareSource, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSparkSource() (*SparkSource, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsShopifySource() (*ShopifySource, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsPrestoSource() (*PrestoSource, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return &amds, true -} - -// AsMariaDBSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMagentoSource() (*MagentoSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsJiraSource() (*JiraSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsHubspotSource() (*HubspotSource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsHiveSource() (*HiveSource, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsHBaseSource() (*HBaseSource, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsEloquaSource() (*EloquaSource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDrillSource() (*DrillSource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsConcurSource() (*ConcurSource, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsTeradataSource() (*TeradataSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSQLMISource() (*SQLMISource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSQLSource() (*SQLSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapTableSource() (*SapTableSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapEccSource() (*SapEccSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return &amls, true +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSybaseSource() (*SybaseSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMySQLSource() (*MySQLSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDb2Source() (*Db2Source, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsInformixSource() (*InformixSource, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &amds, true +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsBinarySource() (*BinarySource, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsOrcSource() (*OrcSource, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsXMLSource() (*XMLSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsJSONSource() (*JSONSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAvroSource() (*AvroSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCopySource() (*CopySource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsBasicCopySource() (BasicCopySource, bool) { - return &amds, true +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureMariaDBSource struct. -func (amds *AzureMariaDBSource) UnmarshalJSON(body []byte) error { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &amls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLLinkedService struct. +func (amls *AzureMLLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -30447,80 +30630,165 @@ func (amds *AzureMariaDBSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var azureMLLinkedServiceTypeProperties AzureMLLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureMLLinkedServiceTypeProperties) if err != nil { return err } - amds.Query = query + amls.AzureMLLinkedServiceTypeProperties = &azureMLLinkedServiceTypeProperties } - case "queryTimeout": + default: if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - amds.QueryTimeout = queryTimeout + if amls.AdditionalProperties == nil { + amls.AdditionalProperties = make(map[string]interface{}) + } + amls.AdditionalProperties[k] = additionalProperties } - case "additionalColumns": + case "connectVia": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - amds.AdditionalColumns = &additionalColumns + amls.ConnectVia = &connectVia } - default: + case "description": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - if amds.AdditionalProperties == nil { - amds.AdditionalProperties = make(map[string]interface{}) + amls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err } - amds.AdditionalProperties[k] = additionalProperties + amls.Parameters = parameters } - case "sourceRetryCount": + case "annotations": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - amds.SourceRetryCount = sourceRetryCount + amls.Annotations = &annotations } - case "sourceRetryWait": + case "type": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - amds.SourceRetryWait = sourceRetryWait + amls.Type = typeVar } - case "maxConcurrentConnections": + } + } + + return nil +} + +// AzureMLLinkedServiceTypeProperties azure ML Studio Web Service linked service properties. +type AzureMLLinkedServiceTypeProperties struct { + // MlEndpoint - The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). + MlEndpoint interface{} `json:"mlEndpoint,omitempty"` + // APIKey - The API key for accessing the Azure ML model endpoint. + APIKey BasicSecretBase `json:"apiKey,omitempty"` + // UpdateResourceEndpoint - The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). + UpdateResourceEndpoint interface{} `json:"updateResourceEndpoint,omitempty"` + // ServicePrincipalID - 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). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + Tenant interface{} `json:"tenant,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLLinkedServiceTypeProperties struct. +func (amlstp *AzureMLLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "mlEndpoint": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var mlEndpoint interface{} + err = json.Unmarshal(*v, &mlEndpoint) if err != nil { return err } - amds.MaxConcurrentConnections = maxConcurrentConnections + amlstp.MlEndpoint = mlEndpoint } - case "type": + case "apiKey": if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) + APIKey, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - amds.Type = typeVar + amlstp.APIKey = APIKey + } + case "updateResourceEndpoint": + if v != nil { + var updateResourceEndpoint interface{} + err = json.Unmarshal(*v, &updateResourceEndpoint) + if err != nil { + return err + } + amlstp.UpdateResourceEndpoint = updateResourceEndpoint + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + amlstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + amlstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + amlstp.Tenant = tenant + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + amlstp.EncryptedCredential = encryptedCredential } } } @@ -30528,544 +30796,564 @@ func (amds *AzureMariaDBSource) UnmarshalJSON(body []byte) error { return nil } -// AzureMariaDBTableDataset azure Database for MariaDB dataset. -type AzureMariaDBTableDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` +// AzureMLServiceLinkedService azure ML Service linked service. +type AzureMLServiceLinkedService struct { + // AzureMLServiceLinkedServiceTypeProperties - Azure ML Service linked service properties. + *AzureMLServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. + // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) MarshalJSON() ([]byte, error) { - amdtd.Type = TypeAzureMariaDBTable +// MarshalJSON is the custom marshaler for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) MarshalJSON() ([]byte, error) { + amsls.Type = TypeAzureMLService objectMap := make(map[string]interface{}) - if amdtd.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = amdtd.GenericDatasetTypeProperties - } - if amdtd.Description != nil { - objectMap["description"] = amdtd.Description - } - if amdtd.Structure != nil { - objectMap["structure"] = amdtd.Structure - } - if amdtd.Schema != nil { - objectMap["schema"] = amdtd.Schema + if amsls.AzureMLServiceLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = amsls.AzureMLServiceLinkedServiceTypeProperties } - if amdtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amdtd.LinkedServiceName + if amsls.ConnectVia != nil { + objectMap["connectVia"] = amsls.ConnectVia } - if amdtd.Parameters != nil { - objectMap["parameters"] = amdtd.Parameters + if amsls.Description != nil { + objectMap["description"] = amsls.Description } - if amdtd.Annotations != nil { - objectMap["annotations"] = amdtd.Annotations + if amsls.Parameters != nil { + objectMap["parameters"] = amsls.Parameters } - if amdtd.Folder != nil { - objectMap["folder"] = amdtd.Folder + if amsls.Annotations != nil { + objectMap["annotations"] = amsls.Annotations } - if amdtd.Type != "" { - objectMap["type"] = amdtd.Type + if amsls.Type != "" { + objectMap["type"] = amsls.Type } - for k, v := range amdtd.AdditionalProperties { + for k, v := range amsls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return &amdtd, true +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return &amsls, true +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDataset() (*Dataset, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &amdtd, true +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureMariaDBTableDataset struct. -func (amdtd *AzureMariaDBTableDataset) UnmarshalJSON(body []byte) error { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &amsls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLServiceLinkedService struct. +func (amsls *AzureMLServiceLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -31075,12 +31363,12 @@ func (amdtd *AzureMariaDBTableDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) + var azureMLServiceLinkedServiceTypeProperties AzureMLServiceLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureMLServiceLinkedServiceTypeProperties) if err != nil { return err } - amdtd.GenericDatasetTypeProperties = &genericDatasetTypeProperties + amsls.AzureMLServiceLinkedServiceTypeProperties = &azureMLServiceLinkedServiceTypeProperties } default: if v != nil { @@ -31089,10 +31377,19 @@ func (amdtd *AzureMariaDBTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if amdtd.AdditionalProperties == nil { - amdtd.AdditionalProperties = make(map[string]interface{}) + if amsls.AdditionalProperties == nil { + amsls.AdditionalProperties = make(map[string]interface{}) } - amdtd.AdditionalProperties[k] = additionalProperties + amsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + amsls.ConnectVia = &connectVia } case "description": if v != nil { @@ -31101,70 +31398,129 @@ func (amdtd *AzureMariaDBTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - amdtd.Description = &description + amsls.Description = &description } - case "structure": + case "parameters": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - amdtd.Structure = structure + amsls.Parameters = parameters } - case "schema": + case "annotations": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - amdtd.Schema = schema + amsls.Annotations = &annotations } - case "linkedServiceName": + case "type": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - amdtd.LinkedServiceName = &linkedServiceName + amsls.Type = typeVar } - case "parameters": + } + } + + return nil +} + +// AzureMLServiceLinkedServiceTypeProperties azure ML Service linked service properties. +type AzureMLServiceLinkedServiceTypeProperties struct { + // SubscriptionID - Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string). + SubscriptionID interface{} `json:"subscriptionId,omitempty"` + // ResourceGroupName - Azure ML Service workspace resource group name. Type: string (or Expression with resultType string). + ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` + // MlWorkspaceName - Azure ML Service workspace name. Type: string (or Expression with resultType string). + MlWorkspaceName interface{} `json:"mlWorkspaceName,omitempty"` + // ServicePrincipalID - 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). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + Tenant interface{} `json:"tenant,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLServiceLinkedServiceTypeProperties struct. +func (amslstp *AzureMLServiceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "subscriptionId": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var subscriptionID interface{} + err = json.Unmarshal(*v, &subscriptionID) if err != nil { return err } - amdtd.Parameters = parameters + amslstp.SubscriptionID = subscriptionID } - case "annotations": + case "resourceGroupName": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var resourceGroupName interface{} + err = json.Unmarshal(*v, &resourceGroupName) if err != nil { return err } - amdtd.Annotations = &annotations + amslstp.ResourceGroupName = resourceGroupName } - case "folder": + case "mlWorkspaceName": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var mlWorkspaceName interface{} + err = json.Unmarshal(*v, &mlWorkspaceName) if err != nil { return err } - amdtd.Folder = &folder + amslstp.MlWorkspaceName = mlWorkspaceName } - case "type": + case "servicePrincipalId": if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) if err != nil { return err } - amdtd.Type = typeVar + amslstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + amslstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + amslstp.Tenant = tenant + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + amslstp.EncryptedCredential = encryptedCredential } } } @@ -31172,10 +31528,10 @@ func (amdtd *AzureMariaDBTableDataset) UnmarshalJSON(body []byte) error { return nil } -// AzureMLBatchExecutionActivity azure ML Batch Execution activity. -type AzureMLBatchExecutionActivity struct { - // AzureMLBatchExecutionActivityTypeProperties - Azure ML Batch Execution activity properties. - *AzureMLBatchExecutionActivityTypeProperties `json:"typeProperties,omitempty"` +// AzureMLUpdateResourceActivity azure ML Update Resource management activity. +type AzureMLUpdateResourceActivity struct { + // AzureMLUpdateResourceActivityTypeProperties - Azure ML Update Resource management activity properties. + *AzureMLUpdateResourceActivityTypeProperties `json:"typeProperties,omitempty"` // LinkedServiceName - Linked service reference. LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` // Policy - Activity policy. @@ -31194,242 +31550,242 @@ type AzureMLBatchExecutionActivity struct { Type TypeBasicActivity `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) MarshalJSON() ([]byte, error) { - ambea.Type = TypeAzureMLBatchExecution +// MarshalJSON is the custom marshaler for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) MarshalJSON() ([]byte, error) { + amura.Type = TypeAzureMLUpdateResource objectMap := make(map[string]interface{}) - if ambea.AzureMLBatchExecutionActivityTypeProperties != nil { - objectMap["typeProperties"] = ambea.AzureMLBatchExecutionActivityTypeProperties + if amura.AzureMLUpdateResourceActivityTypeProperties != nil { + objectMap["typeProperties"] = amura.AzureMLUpdateResourceActivityTypeProperties } - if ambea.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ambea.LinkedServiceName + if amura.LinkedServiceName != nil { + objectMap["linkedServiceName"] = amura.LinkedServiceName } - if ambea.Policy != nil { - objectMap["policy"] = ambea.Policy + if amura.Policy != nil { + objectMap["policy"] = amura.Policy } - if ambea.Name != nil { - objectMap["name"] = ambea.Name + if amura.Name != nil { + objectMap["name"] = amura.Name } - if ambea.Description != nil { - objectMap["description"] = ambea.Description + if amura.Description != nil { + objectMap["description"] = amura.Description } - if ambea.DependsOn != nil { - objectMap["dependsOn"] = ambea.DependsOn + if amura.DependsOn != nil { + objectMap["dependsOn"] = amura.DependsOn } - if ambea.UserProperties != nil { - objectMap["userProperties"] = ambea.UserProperties + if amura.UserProperties != nil { + objectMap["userProperties"] = amura.UserProperties } - if ambea.Type != "" { - objectMap["type"] = ambea.Type + if amura.Type != "" { + objectMap["type"] = amura.Type } - for k, v := range ambea.AdditionalProperties { + for k, v := range amura.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return &amura, true } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return &ambea, true +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsWebActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsWebActivity() (*WebActivity, bool) { +// AsWebActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsLookupActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsDeleteActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsCustomActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsCopyActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { +// AsExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ambea, true +// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &amura, true } -// AsWebHookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsWebHookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { +// AsSetVariableActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsFilterActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { +// AsFilterActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsValidationActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsValidationActivity() (*ValidationActivity, bool) { +// AsValidationActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsUntilActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsUntilActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsWaitActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsForEachActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsSwitchActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsIfConditionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsControlActivity() (*ControlActivity, bool) { +// AsControlActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { +// AsBasicControlActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsBasicControlActivity() (BasicControlActivity, bool) { return nil, false } -// AsActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsActivity() (*Activity, bool) { +// AsActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsBasicActivity() (BasicActivity, bool) { - return &ambea, true +// AsBasicActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsBasicActivity() (BasicActivity, bool) { + return &amura, true } -// UnmarshalJSON is the custom unmarshaler for AzureMLBatchExecutionActivity struct. -func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureMLUpdateResourceActivity struct. +func (amura *AzureMLUpdateResourceActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -31439,12 +31795,12 @@ func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureMLBatchExecutionActivityTypeProperties AzureMLBatchExecutionActivityTypeProperties - err = json.Unmarshal(*v, &azureMLBatchExecutionActivityTypeProperties) + var azureMLUpdateResourceActivityTypeProperties AzureMLUpdateResourceActivityTypeProperties + err = json.Unmarshal(*v, &azureMLUpdateResourceActivityTypeProperties) if err != nil { return err } - ambea.AzureMLBatchExecutionActivityTypeProperties = &azureMLBatchExecutionActivityTypeProperties + amura.AzureMLUpdateResourceActivityTypeProperties = &azureMLUpdateResourceActivityTypeProperties } case "linkedServiceName": if v != nil { @@ -31453,7 +31809,7 @@ func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - ambea.LinkedServiceName = &linkedServiceName + amura.LinkedServiceName = &linkedServiceName } case "policy": if v != nil { @@ -31462,7 +31818,7 @@ func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - ambea.Policy = &policy + amura.Policy = &policy } default: if v != nil { @@ -31471,10 +31827,10 @@ func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - if ambea.AdditionalProperties == nil { - ambea.AdditionalProperties = make(map[string]interface{}) + if amura.AdditionalProperties == nil { + amura.AdditionalProperties = make(map[string]interface{}) } - ambea.AdditionalProperties[k] = additionalProperties + amura.AdditionalProperties[k] = additionalProperties } case "name": if v != nil { @@ -31483,7 +31839,7 @@ func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - ambea.Name = &name + amura.Name = &name } case "description": if v != nil { @@ -31492,7 +31848,7 @@ func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - ambea.Description = &description + amura.Description = &description } case "dependsOn": if v != nil { @@ -31501,7 +31857,7 @@ func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - ambea.DependsOn = &dependsOn + amura.DependsOn = &dependsOn } case "userProperties": if v != nil { @@ -31510,7 +31866,7 @@ func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - ambea.UserProperties = &userProperties + amura.UserProperties = &userProperties } case "type": if v != nil { @@ -31519,7 +31875,7 @@ func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - ambea.Type = typeVar + amura.Type = typeVar } } } @@ -31527,2127 +31883,1830 @@ func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { return nil } -// AzureMLBatchExecutionActivityTypeProperties azure ML Batch Execution activity properties. -type AzureMLBatchExecutionActivityTypeProperties struct { - // GlobalParameters - 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. - GlobalParameters map[string]interface{} `json:"globalParameters"` - // WebServiceOutputs - 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. - WebServiceOutputs map[string]*AzureMLWebServiceFile `json:"webServiceOutputs"` - // WebServiceInputs - 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. - WebServiceInputs map[string]*AzureMLWebServiceFile `json:"webServiceInputs"` +// AzureMLUpdateResourceActivityTypeProperties azure ML Update Resource activity properties. +type AzureMLUpdateResourceActivityTypeProperties struct { + // TrainedModelName - Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with resultType string). + TrainedModelName interface{} `json:"trainedModelName,omitempty"` + // TrainedModelLinkedServiceName - Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. + TrainedModelLinkedServiceName *LinkedServiceReference `json:"trainedModelLinkedServiceName,omitempty"` + // TrainedModelFilePath - 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). + TrainedModelFilePath interface{} `json:"trainedModelFilePath,omitempty"` } -// MarshalJSON is the custom marshaler for AzureMLBatchExecutionActivityTypeProperties. -func (ambeatp AzureMLBatchExecutionActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ambeatp.GlobalParameters != nil { - objectMap["globalParameters"] = ambeatp.GlobalParameters - } - if ambeatp.WebServiceOutputs != nil { - objectMap["webServiceOutputs"] = ambeatp.WebServiceOutputs - } - if ambeatp.WebServiceInputs != nil { - objectMap["webServiceInputs"] = ambeatp.WebServiceInputs - } - return json.Marshal(objectMap) +// AzureMLWebServiceFile azure ML WebService Input/Output file +type AzureMLWebServiceFile struct { + // FilePath - The relative file path, including container name, in the Azure Blob Storage specified by the LinkedService. Type: string (or Expression with resultType string). + FilePath interface{} `json:"filePath,omitempty"` + // LinkedServiceName - Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` } -// AzureMLExecutePipelineActivity azure ML Execute Pipeline activity. -type AzureMLExecutePipelineActivity struct { - // AzureMLExecutePipelineActivityTypeProperties - Azure ML Execute Pipeline activity properties. - *AzureMLExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` +// AzureMariaDBLinkedService azure Database for MariaDB linked service. +type AzureMariaDBLinkedService struct { + // AzureMariaDBLinkedServiceTypeProperties - Azure Database for MariaDB linked service properties. + *AzureMariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) MarshalJSON() ([]byte, error) { - amepa.Type = TypeAzureMLExecutePipeline +// MarshalJSON is the custom marshaler for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) MarshalJSON() ([]byte, error) { + amdls.Type = TypeAzureMariaDB objectMap := make(map[string]interface{}) - if amepa.AzureMLExecutePipelineActivityTypeProperties != nil { - objectMap["typeProperties"] = amepa.AzureMLExecutePipelineActivityTypeProperties - } - if amepa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amepa.LinkedServiceName - } - if amepa.Policy != nil { - objectMap["policy"] = amepa.Policy + if amdls.AzureMariaDBLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = amdls.AzureMariaDBLinkedServiceTypeProperties } - if amepa.Name != nil { - objectMap["name"] = amepa.Name + if amdls.ConnectVia != nil { + objectMap["connectVia"] = amdls.ConnectVia } - if amepa.Description != nil { - objectMap["description"] = amepa.Description + if amdls.Description != nil { + objectMap["description"] = amdls.Description } - if amepa.DependsOn != nil { - objectMap["dependsOn"] = amepa.DependsOn + if amdls.Parameters != nil { + objectMap["parameters"] = amdls.Parameters } - if amepa.UserProperties != nil { - objectMap["userProperties"] = amepa.UserProperties + if amdls.Annotations != nil { + objectMap["annotations"] = amdls.Annotations } - if amepa.Type != "" { - objectMap["type"] = amepa.Type + if amdls.Type != "" { + objectMap["type"] = amdls.Type } - for k, v := range amepa.AdditionalProperties { + for k, v := range amdls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return &amepa, true -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsWebActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsWebActivity() (*WebActivity, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsExecutionActivity() (*ExecutionActivity, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &amepa, true -} - -// AsWebHookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsFilterActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsValidationActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return &amdls, true } -// AsUntilActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsControlActivity() (*ControlActivity, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsBasicControlActivity() (BasicControlActivity, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsActivity() (*Activity, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsBasicActivity() (BasicActivity, bool) { - return &amepa, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMLExecutePipelineActivity struct. -func (amepa *AzureMLExecutePipelineActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLExecutePipelineActivityTypeProperties AzureMLExecutePipelineActivityTypeProperties - err = json.Unmarshal(*v, &azureMLExecutePipelineActivityTypeProperties) - if err != nil { - return err - } - amepa.AzureMLExecutePipelineActivityTypeProperties = &azureMLExecutePipelineActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - amepa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - amepa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amepa.AdditionalProperties == nil { - amepa.AdditionalProperties = make(map[string]interface{}) - } - amepa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - amepa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amepa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - amepa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - amepa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amepa.Type = typeVar - } - } - } - - return nil -} - -// AzureMLExecutePipelineActivityTypeProperties azure ML Execute Pipeline activity properties. -type AzureMLExecutePipelineActivityTypeProperties struct { - // MlPipelineID - ID of the published Azure ML pipeline. Type: string (or Expression with resultType string). - MlPipelineID interface{} `json:"mlPipelineId,omitempty"` - // MlPipelineEndpointID - ID of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). - MlPipelineEndpointID interface{} `json:"mlPipelineEndpointId,omitempty"` - // Version - Version of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // ExperimentName - 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). - ExperimentName interface{} `json:"experimentName,omitempty"` - // MlPipelineParameters - 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). - MlPipelineParameters interface{} `json:"mlPipelineParameters,omitempty"` - // DataPathAssignments - Dictionary used for changing data path assignments without retraining. Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type: object with key value pairs (or Expression with resultType object). - DataPathAssignments interface{} `json:"dataPathAssignments,omitempty"` - // MlParentRunID - 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). - MlParentRunID interface{} `json:"mlParentRunId,omitempty"` - // ContinueOnStepFailure - 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). - ContinueOnStepFailure interface{} `json:"continueOnStepFailure,omitempty"` -} - -// AzureMLLinkedService azure ML Studio Web Service linked service. -type AzureMLLinkedService struct { - // AzureMLLinkedServiceTypeProperties - Azure ML Studio Web Service linked service properties. - *AzureMLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMLLinkedService. -func (amls AzureMLLinkedService) MarshalJSON() ([]byte, error) { - amls.Type = TypeAzureML - objectMap := make(map[string]interface{}) - if amls.AzureMLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amls.AzureMLLinkedServiceTypeProperties - } - if amls.ConnectVia != nil { - objectMap["connectVia"] = amls.ConnectVia - } - if amls.Description != nil { - objectMap["description"] = amls.Description - } - if amls.Parameters != nil { - objectMap["parameters"] = amls.Parameters - } - if amls.Annotations != nil { - objectMap["annotations"] = amls.Annotations - } - if amls.Type != "" { - objectMap["type"] = amls.Type - } - for k, v := range amls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false +// AsBasicLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &amdls, true } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for AzureMariaDBLinkedService struct. +func (amdls *AzureMariaDBLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureMariaDBLinkedServiceTypeProperties AzureMariaDBLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureMariaDBLinkedServiceTypeProperties) + if err != nil { + return err + } + amdls.AzureMariaDBLinkedServiceTypeProperties = &azureMariaDBLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amdls.AdditionalProperties == nil { + amdls.AdditionalProperties = make(map[string]interface{}) + } + amdls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + amdls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amdls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + amdls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + amdls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amdls.Type = typeVar + } + } + } -// AsWebLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false + return nil } -// AsODataLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false +// AzureMariaDBLinkedServiceTypeProperties azure Database for MariaDB linked service properties. +type AzureMariaDBLinkedServiceTypeProperties struct { + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Pwd - The Azure key vault secret reference of password in connection string. + Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AzureMariaDBSource a copy activity Azure MariaDB source. +type AzureMariaDBSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMariaDBSource. +func (amds AzureMariaDBSource) MarshalJSON() ([]byte, error) { + amds.Type = TypeAzureMariaDBSource + objectMap := make(map[string]interface{}) + if amds.Query != nil { + objectMap["query"] = amds.Query + } + if amds.QueryTimeout != nil { + objectMap["queryTimeout"] = amds.QueryTimeout + } + if amds.AdditionalColumns != nil { + objectMap["additionalColumns"] = amds.AdditionalColumns + } + if amds.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = amds.SourceRetryCount + } + if amds.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = amds.SourceRetryWait + } + if amds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = amds.MaxConcurrentConnections + } + if amds.Type != "" { + objectMap["type"] = amds.Type + } + for k, v := range amds.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return &amls, true +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsFileSystemSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsRestSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amls, true +// AsVerticaSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureMLLinkedService struct. -func (amls *AzureMLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLLinkedServiceTypeProperties AzureMLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureMLLinkedServiceTypeProperties) - if err != nil { - return err - } - amls.AzureMLLinkedServiceTypeProperties = &azureMLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amls.AdditionalProperties == nil { - amls.AdditionalProperties = make(map[string]interface{}) - } - amls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - amls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amls.Type = typeVar - } - } - } +// AsNetezzaSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} - return nil +// AsZohoSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false } -// AzureMLLinkedServiceTypeProperties azure ML Studio Web Service linked service properties. -type AzureMLLinkedServiceTypeProperties struct { - // MlEndpoint - The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). - MlEndpoint interface{} `json:"mlEndpoint,omitempty"` - // APIKey - The API key for accessing the Azure ML model endpoint. - APIKey BasicSecretBase `json:"apiKey,omitempty"` - // UpdateResourceEndpoint - The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). - UpdateResourceEndpoint interface{} `json:"updateResourceEndpoint,omitempty"` - // ServicePrincipalID - 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). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +// AsXeroSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsXeroSource() (*XeroSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureMLLinkedServiceTypeProperties struct. -func (amlstp *AzureMLLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "mlEndpoint": - if v != nil { - var mlEndpoint interface{} - err = json.Unmarshal(*v, &mlEndpoint) - if err != nil { - return err - } - amlstp.MlEndpoint = mlEndpoint - } - case "apiKey": - if v != nil { - APIKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amlstp.APIKey = APIKey - } - case "updateResourceEndpoint": - if v != nil { - var updateResourceEndpoint interface{} - err = json.Unmarshal(*v, &updateResourceEndpoint) - if err != nil { - return err - } - amlstp.UpdateResourceEndpoint = updateResourceEndpoint - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - amlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - amlstp.Tenant = tenant - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - amlstp.EncryptedCredential = encryptedCredential - } - } - } +// AsSquareSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} - return nil +// AsSparkSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSparkSource() (*SparkSource, bool) { + return nil, false } -// AzureMLServiceLinkedService azure ML Service linked service. -type AzureMLServiceLinkedService struct { - // AzureMLServiceLinkedServiceTypeProperties - Azure ML Service linked service properties. - *AzureMLServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` +// AsShopifySource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) MarshalJSON() ([]byte, error) { - amsls.Type = TypeAzureMLService - objectMap := make(map[string]interface{}) - if amsls.AzureMLServiceLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amsls.AzureMLServiceLinkedServiceTypeProperties - } - if amsls.ConnectVia != nil { - objectMap["connectVia"] = amsls.ConnectVia - } - if amsls.Description != nil { - objectMap["description"] = amsls.Description - } - if amsls.Parameters != nil { - objectMap["parameters"] = amsls.Parameters - } - if amsls.Annotations != nil { - objectMap["annotations"] = amsls.Annotations - } - if amsls.Type != "" { - objectMap["type"] = amsls.Type - } - for k, v := range amsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsServiceNowSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsPrestoSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsPhoenixSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsPaypalSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsMarketoSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return &amds, true +} + +// AsMariaDBSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsMagentoSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsJiraSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsImpalaSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsHubspotSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsHiveSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsHBaseSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsGreenplumSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsEloquaSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsDrillSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsConcurSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsCassandraSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsTeradataSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsSQLDWSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsSQLMISource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsSQLServerSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsSQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsSapTableSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsSapHanaSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsSapEccSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsSalesforceSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsSapBwSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsSybaseSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsMySQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsOdbcSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsDb2Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsInformixSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzureTableSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsTabularSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &amds, true +} + +// AsBinarySource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsOrcSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsXMLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsJSONSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsParquetSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsExcelSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAvroSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsCopySource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsBasicCopySource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsBasicCopySource() (BasicCopySource, bool) { + return &amds, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMariaDBSource struct. +func (amds *AzureMariaDBSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + amds.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + amds.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + amds.AdditionalColumns = &additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amds.AdditionalProperties == nil { + amds.AdditionalProperties = make(map[string]interface{}) + } + amds.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + amds.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + amds.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + amds.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amds.Type = typeVar + } + } + } + + return nil +} + +// AzureMariaDBTableDataset azure Database for MariaDB dataset. +type AzureMariaDBTableDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) MarshalJSON() ([]byte, error) { + amdtd.Type = TypeAzureMariaDBTable + objectMap := make(map[string]interface{}) + if amdtd.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = amdtd.GenericDatasetTypeProperties + } + if amdtd.Description != nil { + objectMap["description"] = amdtd.Description + } + if amdtd.Structure != nil { + objectMap["structure"] = amdtd.Structure + } + if amdtd.Schema != nil { + objectMap["schema"] = amdtd.Schema + } + if amdtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = amdtd.LinkedServiceName + } + if amdtd.Parameters != nil { + objectMap["parameters"] = amdtd.Parameters + } + if amdtd.Annotations != nil { + objectMap["annotations"] = amdtd.Annotations + } + if amdtd.Folder != nil { + objectMap["folder"] = amdtd.Folder + } + if amdtd.Type != "" { + objectMap["type"] = amdtd.Type + } + for k, v := range amdtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return &amsls, true +// AsPaypalObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return &amdtd, true +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsDrillTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsHTTPDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsWebTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsRestResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amsls, true +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureMLServiceLinkedService struct. -func (amsls *AzureMLServiceLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLServiceLinkedServiceTypeProperties AzureMLServiceLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureMLServiceLinkedServiceTypeProperties) - if err != nil { - return err - } - amsls.AzureMLServiceLinkedServiceTypeProperties = &azureMLServiceLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amsls.AdditionalProperties == nil { - amsls.AdditionalProperties = make(map[string]interface{}) - } - amsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - amsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amsls.Type = typeVar - } - } - } - - return nil -} - -// AzureMLServiceLinkedServiceTypeProperties azure ML Service linked service properties. -type AzureMLServiceLinkedServiceTypeProperties struct { - // SubscriptionID - Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` - // ResourceGroupName - Azure ML Service workspace resource group name. Type: string (or Expression with resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` - // MlWorkspaceName - Azure ML Service workspace name. Type: string (or Expression with resultType string). - MlWorkspaceName interface{} `json:"mlWorkspaceName,omitempty"` - // ServicePrincipalID - 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). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureMLServiceLinkedServiceTypeProperties struct. -func (amslstp *AzureMLServiceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "subscriptionId": - if v != nil { - var subscriptionID interface{} - err = json.Unmarshal(*v, &subscriptionID) - if err != nil { - return err - } - amslstp.SubscriptionID = subscriptionID - } - case "resourceGroupName": - if v != nil { - var resourceGroupName interface{} - err = json.Unmarshal(*v, &resourceGroupName) - if err != nil { - return err - } - amslstp.ResourceGroupName = resourceGroupName - } - case "mlWorkspaceName": - if v != nil { - var mlWorkspaceName interface{} - err = json.Unmarshal(*v, &mlWorkspaceName) - if err != nil { - return err - } - amslstp.MlWorkspaceName = mlWorkspaceName - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - amslstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amslstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - amslstp.Tenant = tenant - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - amslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false } -// AzureMLUpdateResourceActivity azure ML Update Resource management activity. -type AzureMLUpdateResourceActivity struct { - // AzureMLUpdateResourceActivityTypeProperties - Azure ML Update Resource management activity properties. - *AzureMLUpdateResourceActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) MarshalJSON() ([]byte, error) { - amura.Type = TypeAzureMLUpdateResource - objectMap := make(map[string]interface{}) - if amura.AzureMLUpdateResourceActivityTypeProperties != nil { - objectMap["typeProperties"] = amura.AzureMLUpdateResourceActivityTypeProperties - } - if amura.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amura.LinkedServiceName - } - if amura.Policy != nil { - objectMap["policy"] = amura.Policy - } - if amura.Name != nil { - objectMap["name"] = amura.Name - } - if amura.Description != nil { - objectMap["description"] = amura.Description - } - if amura.DependsOn != nil { - objectMap["dependsOn"] = amura.DependsOn - } - if amura.UserProperties != nil { - objectMap["userProperties"] = amura.UserProperties - } - if amura.Type != "" { - objectMap["type"] = amura.Type - } - for k, v := range amura.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsMySQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false } -// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsInformixTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsDb2TableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return &amura, true +// AsOracleTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { +// AsODataResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsWebActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsWebActivity() (*WebActivity, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsFileShareDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsOffice365Dataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsCustomDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecutionActivity() (*ExecutionActivity, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &amura, true +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false } -// AsWebHookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { +// AsAzureTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsFilterActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsFilterActivity() (*FilterActivity, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsValidationActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsValidationActivity() (*ValidationActivity, bool) { +// AsBinaryDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsUntilActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsOrcDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsXMLDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsJSONDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsParquetDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsExcelDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsControlActivity() (*ControlActivity, bool) { +// AsAvroDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsBasicControlActivity() (BasicControlActivity, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsActivity() (*Activity, bool) { +// AsDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsBasicActivity() (BasicActivity, bool) { - return &amura, true +// AsBasicDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &amdtd, true } -// UnmarshalJSON is the custom unmarshaler for AzureMLUpdateResourceActivity struct. -func (amura *AzureMLUpdateResourceActivity) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureMariaDBTableDataset struct. +func (amdtd *AzureMariaDBTableDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -33657,87 +33716,96 @@ func (amura *AzureMLUpdateResourceActivity) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureMLUpdateResourceActivityTypeProperties AzureMLUpdateResourceActivityTypeProperties - err = json.Unmarshal(*v, &azureMLUpdateResourceActivityTypeProperties) + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) if err != nil { return err } - amura.AzureMLUpdateResourceActivityTypeProperties = &azureMLUpdateResourceActivityTypeProperties + amdtd.GenericDatasetTypeProperties = &genericDatasetTypeProperties } - case "linkedServiceName": + default: if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - amura.LinkedServiceName = &linkedServiceName + if amdtd.AdditionalProperties == nil { + amdtd.AdditionalProperties = make(map[string]interface{}) + } + amdtd.AdditionalProperties[k] = additionalProperties } - case "policy": + case "description": if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - amura.Policy = &policy + amdtd.Description = &description } - default: + case "structure": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - if amura.AdditionalProperties == nil { - amura.AdditionalProperties = make(map[string]interface{}) + amdtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err } - amura.AdditionalProperties[k] = additionalProperties + amdtd.Schema = schema } - case "name": + case "linkedServiceName": if v != nil { - var name string - err = json.Unmarshal(*v, &name) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - amura.Name = &name + amdtd.LinkedServiceName = &linkedServiceName } - case "description": + case "parameters": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - amura.Description = &description + amdtd.Parameters = parameters } - case "dependsOn": + case "annotations": if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - amura.DependsOn = &dependsOn + amdtd.Annotations = &annotations } - case "userProperties": + case "folder": if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - amura.UserProperties = &userProperties + amdtd.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicActivity + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - amura.Type = typeVar + amdtd.Type = typeVar } } } @@ -33745,24 +33813,6 @@ func (amura *AzureMLUpdateResourceActivity) UnmarshalJSON(body []byte) error { return nil } -// AzureMLUpdateResourceActivityTypeProperties azure ML Update Resource activity properties. -type AzureMLUpdateResourceActivityTypeProperties struct { - // TrainedModelName - Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with resultType string). - TrainedModelName interface{} `json:"trainedModelName,omitempty"` - // TrainedModelLinkedServiceName - Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. - TrainedModelLinkedServiceName *LinkedServiceReference `json:"trainedModelLinkedServiceName,omitempty"` - // TrainedModelFilePath - 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). - TrainedModelFilePath interface{} `json:"trainedModelFilePath,omitempty"` -} - -// AzureMLWebServiceFile azure ML WebService Input/Output file -type AzureMLWebServiceFile struct { - // FilePath - The relative file path, including container name, in the Azure Blob Storage specified by the LinkedService. Type: string (or Expression with resultType string). - FilePath interface{} `json:"filePath,omitempty"` - // LinkedServiceName - Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` -} - // AzureMySQLLinkedService azure MySQL database linked service. type AzureMySQLLinkedService struct { // AzureMySQLLinkedServiceTypeProperties - Azure MySQL database linked service properties. @@ -34426,7 +34476,7 @@ type AzureMySQLSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -34466,6 +34516,16 @@ func (amss AzureMySQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureMySQLSink. func (amss AzureMySQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -36682,7 +36742,7 @@ type AzurePostgreSQLSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -36722,6 +36782,16 @@ func (apss AzurePostgreSQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPIS return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzurePostgreSQLSink. func (apss AzurePostgreSQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -38291,7 +38361,7 @@ type AzureQueueSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -38328,6 +38398,16 @@ func (aqs AzureQueueSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, b return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureQueueSink. func (aqs AzureQueueSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -38599,544 +38679,564 @@ func (aqs *AzureQueueSink) UnmarshalJSON(body []byte) error { return nil } -// AzureSearchIndexDataset the Azure Search Index. -type AzureSearchIndexDataset struct { - // AzureSearchIndexDatasetTypeProperties - Properties specific to this dataset type. - *AzureSearchIndexDatasetTypeProperties `json:"typeProperties,omitempty"` +// AzureSQLDWLinkedService azure SQL Data Warehouse linked service. +type AzureSQLDWLinkedService struct { + // AzureSQLDWLinkedServiceTypeProperties - Azure SQL Data Warehouse linked service properties. + *AzureSQLDWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. + // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) MarshalJSON() ([]byte, error) { - asid.Type = TypeAzureSearchIndex +// MarshalJSON is the custom marshaler for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) MarshalJSON() ([]byte, error) { + asdls.Type = TypeAzureSQLDW objectMap := make(map[string]interface{}) - if asid.AzureSearchIndexDatasetTypeProperties != nil { - objectMap["typeProperties"] = asid.AzureSearchIndexDatasetTypeProperties - } - if asid.Description != nil { - objectMap["description"] = asid.Description - } - if asid.Structure != nil { - objectMap["structure"] = asid.Structure - } - if asid.Schema != nil { - objectMap["schema"] = asid.Schema + if asdls.AzureSQLDWLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = asdls.AzureSQLDWLinkedServiceTypeProperties } - if asid.LinkedServiceName != nil { - objectMap["linkedServiceName"] = asid.LinkedServiceName + if asdls.ConnectVia != nil { + objectMap["connectVia"] = asdls.ConnectVia } - if asid.Parameters != nil { - objectMap["parameters"] = asid.Parameters + if asdls.Description != nil { + objectMap["description"] = asdls.Description } - if asid.Annotations != nil { - objectMap["annotations"] = asid.Annotations + if asdls.Parameters != nil { + objectMap["parameters"] = asdls.Parameters } - if asid.Folder != nil { - objectMap["folder"] = asid.Folder + if asdls.Annotations != nil { + objectMap["annotations"] = asdls.Annotations } - if asid.Type != "" { - objectMap["type"] = asid.Type + if asdls.Type != "" { + objectMap["type"] = asdls.Type } - for k, v := range asid.AdditionalProperties { + for k, v := range asdls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return &asid, true +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false } -// AsWebTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDataset() (*Dataset, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsBasicDataset() (BasicDataset, bool) { - return &asid, true +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureSearchIndexDataset struct. -func (asid *AzureSearchIndexDataset) UnmarshalJSON(body []byte) error { +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return &asdls, true +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &asdls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLDWLinkedService struct. +func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -39146,12 +39246,12 @@ func (asid *AzureSearchIndexDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureSearchIndexDatasetTypeProperties AzureSearchIndexDatasetTypeProperties - err = json.Unmarshal(*v, &azureSearchIndexDatasetTypeProperties) + var azureSQLDWLinkedServiceTypeProperties AzureSQLDWLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureSQLDWLinkedServiceTypeProperties) if err != nil { return err } - asid.AzureSearchIndexDatasetTypeProperties = &azureSearchIndexDatasetTypeProperties + asdls.AzureSQLDWLinkedServiceTypeProperties = &azureSQLDWLinkedServiceTypeProperties } default: if v != nil { @@ -39160,10 +39260,19 @@ func (asid *AzureSearchIndexDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if asid.AdditionalProperties == nil { - asid.AdditionalProperties = make(map[string]interface{}) + if asdls.AdditionalProperties == nil { + asdls.AdditionalProperties = make(map[string]interface{}) } - asid.AdditionalProperties[k] = additionalProperties + asdls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + asdls.ConnectVia = &connectVia } case "description": if v != nil { @@ -39172,70 +39281,129 @@ func (asid *AzureSearchIndexDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asid.Description = &description + asdls.Description = &description } - case "structure": + case "parameters": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - asid.Structure = structure + asdls.Parameters = parameters } - case "schema": + case "annotations": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - asid.Schema = schema + asdls.Annotations = &annotations } - case "linkedServiceName": + case "type": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - asid.LinkedServiceName = &linkedServiceName + asdls.Type = typeVar } - case "parameters": + } + } + + return nil +} + +// AzureSQLDWLinkedServiceTypeProperties azure SQL Data Warehouse linked service properties. +type AzureSQLDWLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // ServicePrincipalID - The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Data Warehouse. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). + Tenant interface{} `json:"tenant,omitempty"` + // AzureCloudType - Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). + AzureCloudType interface{} `json:"azureCloudType,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLDWLinkedServiceTypeProperties struct. +func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) if err != nil { return err } - asid.Parameters = parameters + asdlstp.ConnectionString = connectionString } - case "annotations": + case "password": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var password AzureKeyVaultSecretReference + err = json.Unmarshal(*v, &password) if err != nil { return err } - asid.Annotations = &annotations + asdlstp.Password = &password } - case "folder": + case "servicePrincipalId": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) if err != nil { return err } - asid.Folder = &folder + asdlstp.ServicePrincipalID = servicePrincipalID } - case "type": + case "servicePrincipalKey": if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - asid.Type = typeVar + asdlstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + asdlstp.Tenant = tenant + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + asdlstp.AzureCloudType = azureCloudType + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + asdlstp.EncryptedCredential = encryptedCredential } } } @@ -39243,906 +39411,544 @@ func (asid *AzureSearchIndexDataset) UnmarshalJSON(body []byte) error { return nil } -// AzureSearchIndexDatasetTypeProperties properties specific to this dataset type. -type AzureSearchIndexDatasetTypeProperties struct { - // IndexName - The name of the Azure Search Index. Type: string (or Expression with resultType string). - IndexName interface{} `json:"indexName,omitempty"` -} - -// AzureSearchIndexSink a copy activity Azure Search Index sink. -type AzureSearchIndexSink struct { - // WriteBehavior - Specify the write behavior when upserting documents into Azure Search Index. Possible values include: 'Merge', 'Upload' - WriteBehavior AzureSearchIndexWriteBehaviorType `json:"writeBehavior,omitempty"` +// AzureSQLDWTableDataset the Azure SQL Data Warehouse dataset. +type AzureSQLDWTableDataset struct { + // AzureSQLDWTableDatasetTypeProperties - Azure SQL Data Warehouse dataset properties. + *AzureSQLDWTableDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) MarshalJSON() ([]byte, error) { - asis.Type = TypeAzureSearchIndexSink +// MarshalJSON is the custom marshaler for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) MarshalJSON() ([]byte, error) { + asdtd.Type = TypeAzureSQLDWTable objectMap := make(map[string]interface{}) - if asis.WriteBehavior != "" { - objectMap["writeBehavior"] = asis.WriteBehavior + if asdtd.AzureSQLDWTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = asdtd.AzureSQLDWTableDatasetTypeProperties } - if asis.WriteBatchSize != nil { - objectMap["writeBatchSize"] = asis.WriteBatchSize + if asdtd.Description != nil { + objectMap["description"] = asdtd.Description } - if asis.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = asis.WriteBatchTimeout + if asdtd.Structure != nil { + objectMap["structure"] = asdtd.Structure } - if asis.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = asis.SinkRetryCount + if asdtd.Schema != nil { + objectMap["schema"] = asdtd.Schema } - if asis.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = asis.SinkRetryWait + if asdtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = asdtd.LinkedServiceName } - if asis.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = asis.MaxConcurrentConnections + if asdtd.Parameters != nil { + objectMap["parameters"] = asdtd.Parameters } - if asis.Type != "" { - objectMap["type"] = asis.Type + if asdtd.Annotations != nil { + objectMap["annotations"] = asdtd.Annotations } - for k, v := range asis.AdditionalProperties { + if asdtd.Folder != nil { + objectMap["folder"] = asdtd.Folder + } + if asdtd.Type != "" { + objectMap["type"] = asdtd.Type + } + for k, v := range asdtd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsInformixSink() (*InformixSink, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsOdbcSink() (*OdbcSink, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return &asis, true +// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsOracleSink() (*OracleSink, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSQLMISink() (*SQLMISink, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSQLSink() (*SQLSink, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsBlobSink() (*BlobSink, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsBinarySink() (*BinarySink, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsParquetSink() (*ParquetSink, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAvroSink() (*AvroSink, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsRestSink() (*RestSink, bool) { +// AsDrillTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsOrcSink() (*OrcSink, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsJSONSink() (*JSONSink, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsCopySink() (*CopySink, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsBasicCopySink() (BasicCopySink, bool) { - return &asis, true +// AsHTTPDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureSearchIndexSink struct. -func (asis *AzureSearchIndexSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior AzureSearchIndexWriteBehaviorType - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - asis.WriteBehavior = writeBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asis.AdditionalProperties == nil { - asis.AdditionalProperties = make(map[string]interface{}) - } - asis.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - asis.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - asis.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - asis.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - asis.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - asis.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asis.Type = typeVar - } - } - } +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} - return nil +// AsWebTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false } -// AzureSearchLinkedService linked service for Windows Azure Search Service. -type AzureSearchLinkedService struct { - // AzureSearchLinkedServiceTypeProperties - Windows Azure Search Service linked service properties. - *AzureSearchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` +// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) MarshalJSON() ([]byte, error) { - asls.Type = TypeAzureSearch - objectMap := make(map[string]interface{}) - if asls.AzureSearchLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asls.AzureSearchLinkedServiceTypeProperties - } - if asls.ConnectVia != nil { - objectMap["connectVia"] = asls.ConnectVia - } - if asls.Description != nil { - objectMap["description"] = asls.Description - } - if asls.Parameters != nil { - objectMap["parameters"] = asls.Parameters - } - if asls.Annotations != nil { - objectMap["annotations"] = asls.Annotations - } - if asls.Type != "" { - objectMap["type"] = asls.Type - } - for k, v := range asls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return &asls, true -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsRestResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsInformixTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsDb2TableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsOracleTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsODataResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsFileShareDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsOffice365Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCustomDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return &asdtd, true } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBinaryDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsOrcDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsXMLDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsJSONDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsParquetDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsExcelDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAvroDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asls, true +// AsBasicDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &asdtd, true } -// UnmarshalJSON is the custom unmarshaler for AzureSearchLinkedService struct. -func (asls *AzureSearchLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureSQLDWTableDataset struct. +func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -40152,12 +39958,12 @@ func (asls *AzureSearchLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureSearchLinkedServiceTypeProperties AzureSearchLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSearchLinkedServiceTypeProperties) + var azureSQLDWTableDatasetTypeProperties AzureSQLDWTableDatasetTypeProperties + err = json.Unmarshal(*v, &azureSQLDWTableDatasetTypeProperties) if err != nil { return err } - asls.AzureSearchLinkedServiceTypeProperties = &azureSearchLinkedServiceTypeProperties + asdtd.AzureSQLDWTableDatasetTypeProperties = &azureSQLDWTableDatasetTypeProperties } default: if v != nil { @@ -40166,106 +39972,82 @@ func (asls *AzureSearchLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if asls.AdditionalProperties == nil { - asls.AdditionalProperties = make(map[string]interface{}) + if asdtd.AdditionalProperties == nil { + asdtd.AdditionalProperties = make(map[string]interface{}) } - asls.AdditionalProperties[k] = additionalProperties + asdtd.AdditionalProperties[k] = additionalProperties } - case "connectVia": + case "description": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - asls.ConnectVia = &connectVia + asdtd.Description = &description } - case "description": + case "structure": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - asls.Description = &description + asdtd.Structure = structure } - case "parameters": + case "schema": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - asls.Parameters = parameters + asdtd.Schema = schema } - case "annotations": + case "linkedServiceName": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - asls.Annotations = &annotations + asdtd.LinkedServiceName = &linkedServiceName } - case "type": + case "parameters": if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - asls.Type = typeVar + asdtd.Parameters = parameters } - } - } - - return nil -} - -// AzureSearchLinkedServiceTypeProperties windows Azure Search Service linked service properties. -type AzureSearchLinkedServiceTypeProperties struct { - // URL - URL for Azure Search service. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // Key - Admin Key for Azure Search service - Key BasicSecretBase `json:"key,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureSearchLinkedServiceTypeProperties struct. -func (aslstp *AzureSearchLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": + case "annotations": if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - aslstp.URL = URL + asdtd.Annotations = &annotations } - case "key": + case "folder": if v != nil { - key, err := unmarshalBasicSecretBase(*v) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - aslstp.Key = key + asdtd.Folder = &folder } - case "encryptedCredential": + case "type": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - aslstp.EncryptedCredential = encryptedCredential + asdtd.Type = typeVar } } } @@ -40273,6 +40055,16 @@ func (aslstp *AzureSearchLinkedServiceTypeProperties) UnmarshalJSON(body []byte) return nil } +// AzureSQLDWTableDatasetTypeProperties azure SQL Data Warehouse dataset properties. +type AzureSQLDWTableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Schema - The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + // AzureSQLDatabaseLinkedService microsoft Azure SQL Database linked service. type AzureSQLDatabaseLinkedService struct { // AzureSQLDatabaseLinkedServiceTypeProperties - Azure SQL Database linked service properties. @@ -40926,6 +40718,8 @@ type AzureSQLDatabaseLinkedServiceTypeProperties struct { AzureCloudType interface{} `json:"azureCloudType,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // AlwaysEncryptedSettings - Sql always encrypted properties. + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` } // UnmarshalJSON is the custom unmarshaler for AzureSQLDatabaseLinkedServiceTypeProperties struct. @@ -40999,16 +40793,25 @@ func (asdlstp *AzureSQLDatabaseLinkedServiceTypeProperties) UnmarshalJSON(body [ } asdlstp.EncryptedCredential = encryptedCredential } + case "alwaysEncryptedSettings": + if v != nil { + var alwaysEncryptedSettings SQLAlwaysEncryptedProperties + err = json.Unmarshal(*v, &alwaysEncryptedSettings) + if err != nil { + return err + } + asdlstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings + } } } return nil } -// AzureSQLDWLinkedService azure SQL Data Warehouse linked service. -type AzureSQLDWLinkedService struct { - // AzureSQLDWLinkedServiceTypeProperties - Azure SQL Data Warehouse linked service properties. - *AzureSQLDWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// AzureSQLMILinkedService azure SQL Managed Instance linked service. +type AzureSQLMILinkedService struct { + // AzureSQLMILinkedServiceTypeProperties - Azure SQL Managed Instance linked service properties. + *AzureSQLMILinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -41023,546 +40826,546 @@ type AzureSQLDWLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) MarshalJSON() ([]byte, error) { - asdls.Type = TypeAzureSQLDW +// MarshalJSON is the custom marshaler for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) MarshalJSON() ([]byte, error) { + asmls.Type = TypeAzureSQLMI objectMap := make(map[string]interface{}) - if asdls.AzureSQLDWLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asdls.AzureSQLDWLinkedServiceTypeProperties + if asmls.AzureSQLMILinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = asmls.AzureSQLMILinkedServiceTypeProperties } - if asdls.ConnectVia != nil { - objectMap["connectVia"] = asdls.ConnectVia + if asmls.ConnectVia != nil { + objectMap["connectVia"] = asmls.ConnectVia } - if asdls.Description != nil { - objectMap["description"] = asdls.Description + if asmls.Description != nil { + objectMap["description"] = asmls.Description } - if asdls.Parameters != nil { - objectMap["parameters"] = asdls.Parameters + if asmls.Parameters != nil { + objectMap["parameters"] = asmls.Parameters } - if asdls.Annotations != nil { - objectMap["annotations"] = asdls.Annotations + if asmls.Annotations != nil { + objectMap["annotations"] = asmls.Annotations } - if asdls.Type != "" { - objectMap["type"] = asdls.Type + if asmls.Type != "" { + objectMap["type"] = asmls.Type } - for k, v := range asdls.AdditionalProperties { + for k, v := range asmls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return &asmls, true } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return &asdls, true +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asdls, true +// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &asmls, true } -// UnmarshalJSON is the custom unmarshaler for AzureSQLDWLinkedService struct. -func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureSQLMILinkedService struct. +func (asmls *AzureSQLMILinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -41572,12 +41375,12 @@ func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureSQLDWLinkedServiceTypeProperties AzureSQLDWLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSQLDWLinkedServiceTypeProperties) + var azureSQLMILinkedServiceTypeProperties AzureSQLMILinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureSQLMILinkedServiceTypeProperties) if err != nil { return err } - asdls.AzureSQLDWLinkedServiceTypeProperties = &azureSQLDWLinkedServiceTypeProperties + asmls.AzureSQLMILinkedServiceTypeProperties = &azureSQLMILinkedServiceTypeProperties } default: if v != nil { @@ -41586,10 +41389,10 @@ func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if asdls.AdditionalProperties == nil { - asdls.AdditionalProperties = make(map[string]interface{}) + if asmls.AdditionalProperties == nil { + asmls.AdditionalProperties = make(map[string]interface{}) } - asdls.AdditionalProperties[k] = additionalProperties + asmls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -41598,7 +41401,7 @@ func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdls.ConnectVia = &connectVia + asmls.ConnectVia = &connectVia } case "description": if v != nil { @@ -41607,7 +41410,7 @@ func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdls.Description = &description + asmls.Description = &description } case "parameters": if v != nil { @@ -41616,7 +41419,7 @@ func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdls.Parameters = parameters + asmls.Parameters = parameters } case "annotations": if v != nil { @@ -41625,7 +41428,7 @@ func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdls.Annotations = &annotations + asmls.Annotations = &annotations } case "type": if v != nil { @@ -41634,7 +41437,7 @@ func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdls.Type = typeVar + asmls.Type = typeVar } } } @@ -41642,15 +41445,15 @@ func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { return nil } -// AzureSQLDWLinkedServiceTypeProperties azure SQL Data Warehouse linked service properties. -type AzureSQLDWLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. +// AzureSQLMILinkedServiceTypeProperties azure SQL Managed Instance linked service properties. +type AzureSQLMILinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString interface{} `json:"connectionString,omitempty"` // Password - The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // ServicePrincipalID - The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + // ServicePrincipalID - The ID of the service principal used to authenticate against Azure SQL Managed Instance. Type: string (or Expression with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Data Warehouse. + // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Managed Instance. ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). Tenant interface{} `json:"tenant,omitempty"` @@ -41658,10 +41461,12 @@ type AzureSQLDWLinkedServiceTypeProperties struct { AzureCloudType interface{} `json:"azureCloudType,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // AlwaysEncryptedSettings - Sql always encrypted properties. + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for AzureSQLDWLinkedServiceTypeProperties struct. -func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureSQLMILinkedServiceTypeProperties struct. +func (asmlstp *AzureSQLMILinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -41676,7 +41481,7 @@ func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) if err != nil { return err } - asdlstp.ConnectionString = connectionString + asmlstp.ConnectionString = connectionString } case "password": if v != nil { @@ -41685,7 +41490,7 @@ func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) if err != nil { return err } - asdlstp.Password = &password + asmlstp.Password = &password } case "servicePrincipalId": if v != nil { @@ -41694,7 +41499,7 @@ func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) if err != nil { return err } - asdlstp.ServicePrincipalID = servicePrincipalID + asmlstp.ServicePrincipalID = servicePrincipalID } case "servicePrincipalKey": if v != nil { @@ -41702,7 +41507,7 @@ func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) if err != nil { return err } - asdlstp.ServicePrincipalKey = servicePrincipalKey + asmlstp.ServicePrincipalKey = servicePrincipalKey } case "tenant": if v != nil { @@ -41711,7 +41516,7 @@ func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) if err != nil { return err } - asdlstp.Tenant = tenant + asmlstp.Tenant = tenant } case "azureCloudType": if v != nil { @@ -41720,7 +41525,7 @@ func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) if err != nil { return err } - asdlstp.AzureCloudType = azureCloudType + asmlstp.AzureCloudType = azureCloudType } case "encryptedCredential": if v != nil { @@ -41729,7 +41534,16 @@ func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) if err != nil { return err } - asdlstp.EncryptedCredential = encryptedCredential + asmlstp.EncryptedCredential = encryptedCredential + } + case "alwaysEncryptedSettings": + if v != nil { + var alwaysEncryptedSettings SQLAlwaysEncryptedProperties + err = json.Unmarshal(*v, &alwaysEncryptedSettings) + if err != nil { + return err + } + asmlstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings } } } @@ -41737,10 +41551,10 @@ func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) return nil } -// AzureSQLDWTableDataset the Azure SQL Data Warehouse dataset. -type AzureSQLDWTableDataset struct { - // AzureSQLDWTableDatasetTypeProperties - Azure SQL Data Warehouse dataset properties. - *AzureSQLDWTableDatasetTypeProperties `json:"typeProperties,omitempty"` +// AzureSQLMITableDataset the Azure SQL Managed Instance dataset. +type AzureSQLMITableDataset struct { + // AzureSQLMITableDatasetTypeProperties - Azure SQL Managed Instance dataset properties. + *AzureSQLMITableDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -41761,520 +41575,520 @@ type AzureSQLDWTableDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) MarshalJSON() ([]byte, error) { - asdtd.Type = TypeAzureSQLDWTable +// MarshalJSON is the custom marshaler for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) MarshalJSON() ([]byte, error) { + asmtd.Type = TypeAzureSQLMITable objectMap := make(map[string]interface{}) - if asdtd.AzureSQLDWTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = asdtd.AzureSQLDWTableDatasetTypeProperties + if asmtd.AzureSQLMITableDatasetTypeProperties != nil { + objectMap["typeProperties"] = asmtd.AzureSQLMITableDatasetTypeProperties } - if asdtd.Description != nil { - objectMap["description"] = asdtd.Description + if asmtd.Description != nil { + objectMap["description"] = asmtd.Description } - if asdtd.Structure != nil { - objectMap["structure"] = asdtd.Structure + if asmtd.Structure != nil { + objectMap["structure"] = asmtd.Structure } - if asdtd.Schema != nil { - objectMap["schema"] = asdtd.Schema + if asmtd.Schema != nil { + objectMap["schema"] = asmtd.Schema } - if asdtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = asdtd.LinkedServiceName + if asmtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = asmtd.LinkedServiceName } - if asdtd.Parameters != nil { - objectMap["parameters"] = asdtd.Parameters + if asmtd.Parameters != nil { + objectMap["parameters"] = asmtd.Parameters } - if asdtd.Annotations != nil { - objectMap["annotations"] = asdtd.Annotations + if asmtd.Annotations != nil { + objectMap["annotations"] = asmtd.Annotations } - if asdtd.Folder != nil { - objectMap["folder"] = asdtd.Folder + if asmtd.Folder != nil { + objectMap["folder"] = asmtd.Folder } - if asdtd.Type != "" { - objectMap["type"] = asdtd.Type + if asmtd.Type != "" { + objectMap["type"] = asmtd.Type } - for k, v := range asdtd.AdditionalProperties { + for k, v := range asmtd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return &asdtd, true +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return &asmtd, true } -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &asdtd, true +// AsBasicDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsBasicDataset() (BasicDataset, bool) { + return &asmtd, true } -// UnmarshalJSON is the custom unmarshaler for AzureSQLDWTableDataset struct. -func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureSQLMITableDataset struct. +func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -42284,12 +42098,12 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureSQLDWTableDatasetTypeProperties AzureSQLDWTableDatasetTypeProperties - err = json.Unmarshal(*v, &azureSQLDWTableDatasetTypeProperties) + var azureSQLMITableDatasetTypeProperties AzureSQLMITableDatasetTypeProperties + err = json.Unmarshal(*v, &azureSQLMITableDatasetTypeProperties) if err != nil { return err } - asdtd.AzureSQLDWTableDatasetTypeProperties = &azureSQLDWTableDatasetTypeProperties + asmtd.AzureSQLMITableDatasetTypeProperties = &azureSQLMITableDatasetTypeProperties } default: if v != nil { @@ -42298,10 +42112,10 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if asdtd.AdditionalProperties == nil { - asdtd.AdditionalProperties = make(map[string]interface{}) + if asmtd.AdditionalProperties == nil { + asmtd.AdditionalProperties = make(map[string]interface{}) } - asdtd.AdditionalProperties[k] = additionalProperties + asmtd.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -42310,7 +42124,7 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdtd.Description = &description + asmtd.Description = &description } case "structure": if v != nil { @@ -42319,7 +42133,7 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdtd.Structure = structure + asmtd.Structure = structure } case "schema": if v != nil { @@ -42328,7 +42142,7 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdtd.Schema = schema + asmtd.Schema = schema } case "linkedServiceName": if v != nil { @@ -42337,7 +42151,7 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdtd.LinkedServiceName = &linkedServiceName + asmtd.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -42346,7 +42160,7 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdtd.Parameters = parameters + asmtd.Parameters = parameters } case "annotations": if v != nil { @@ -42355,7 +42169,7 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdtd.Annotations = &annotations + asmtd.Annotations = &annotations } case "folder": if v != nil { @@ -42364,7 +42178,7 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdtd.Folder = &folder + asmtd.Folder = &folder } case "type": if v != nil { @@ -42373,7 +42187,7 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asdtd.Type = typeVar + asmtd.Type = typeVar } } } @@ -42381,574 +42195,990 @@ func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { return nil } -// AzureSQLDWTableDatasetTypeProperties azure SQL Data Warehouse dataset properties. -type AzureSQLDWTableDatasetTypeProperties struct { +// AzureSQLMITableDatasetTypeProperties azure SQL Managed Instance dataset properties. +type AzureSQLMITableDatasetTypeProperties struct { // TableName - This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` - // Schema - The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + // Schema - The schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + // Table - The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` } -// AzureSQLMILinkedService azure SQL Managed Instance linked service. -type AzureSQLMILinkedService struct { - // AzureSQLMILinkedServiceTypeProperties - Azure SQL Managed Instance linked service properties. - *AzureSQLMILinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// AzureSQLSink a copy activity Azure SQL sink. +type AzureSQLSink struct { + // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). + SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). + SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // StoredProcedureParameters - SQL stored procedure parameters. + StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` + // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + // TableOption - The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). + TableOption interface{} `json:"tableOption,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) MarshalJSON() ([]byte, error) { - asmls.Type = TypeAzureSQLMI +// MarshalJSON is the custom marshaler for AzureSQLSink. +func (ass AzureSQLSink) MarshalJSON() ([]byte, error) { + ass.Type = TypeAzureSQLSink objectMap := make(map[string]interface{}) - if asmls.AzureSQLMILinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asmls.AzureSQLMILinkedServiceTypeProperties + if ass.SQLWriterStoredProcedureName != nil { + objectMap["sqlWriterStoredProcedureName"] = ass.SQLWriterStoredProcedureName } - if asmls.ConnectVia != nil { - objectMap["connectVia"] = asmls.ConnectVia + if ass.SQLWriterTableType != nil { + objectMap["sqlWriterTableType"] = ass.SQLWriterTableType } - if asmls.Description != nil { - objectMap["description"] = asmls.Description + if ass.PreCopyScript != nil { + objectMap["preCopyScript"] = ass.PreCopyScript } - if asmls.Parameters != nil { - objectMap["parameters"] = asmls.Parameters + if ass.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = ass.StoredProcedureParameters } - if asmls.Annotations != nil { - objectMap["annotations"] = asmls.Annotations + if ass.StoredProcedureTableTypeParameterName != nil { + objectMap["storedProcedureTableTypeParameterName"] = ass.StoredProcedureTableTypeParameterName } - if asmls.Type != "" { - objectMap["type"] = asmls.Type + if ass.TableOption != nil { + objectMap["tableOption"] = ass.TableOption } - for k, v := range asmls.AdditionalProperties { + if ass.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ass.WriteBatchSize + } + if ass.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ass.WriteBatchTimeout + } + if ass.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ass.SinkRetryCount + } + if ass.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ass.SinkRetryWait + } + if ass.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections + } + if ass.Type != "" { + objectMap["type"] = ass.Type + } + for k, v := range ass.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSalesforceSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsDynamicsSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsInformixSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsOdbcSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsOracleSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsSQLDWSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSQLMISink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false +// AsAzureSQLSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return &ass, true } -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsSQLServerSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsSQLSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsFileSystemSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsBlobSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsBinarySink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsParquetSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsAvroSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsAzureTableSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsRestSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsOrcSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsJSONSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCopySink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false +// AsBasicCopySink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ass, true } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for AzureSQLSink struct. +func (ass *AzureSQLSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlWriterStoredProcedureName": + if v != nil { + var SQLWriterStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) + if err != nil { + return err + } + ass.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName + } + case "sqlWriterTableType": + if v != nil { + var SQLWriterTableType interface{} + err = json.Unmarshal(*v, &SQLWriterTableType) + if err != nil { + return err + } + ass.SQLWriterTableType = SQLWriterTableType + } + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + ass.PreCopyScript = preCopyScript + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters map[string]*StoredProcedureParameter + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + ass.StoredProcedureParameters = storedProcedureParameters + } + case "storedProcedureTableTypeParameterName": + if v != nil { + var storedProcedureTableTypeParameterName interface{} + err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) + if err != nil { + return err + } + ass.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + ass.TableOption = tableOption + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ass.AdditionalProperties == nil { + ass.AdditionalProperties = make(map[string]interface{}) + } + ass.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ass.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ass.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ass.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ass.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ass.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ass.Type = typeVar + } + } + } + + return nil } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false +// AzureSQLSource a copy activity Azure SQL source. +type AzureSQLSource struct { + // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). + SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` + // ProduceAdditionalTypes - Which additional types to produce. + ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for AzureSQLSource. +func (ass AzureSQLSource) MarshalJSON() ([]byte, error) { + ass.Type = TypeAzureSQLSource + objectMap := make(map[string]interface{}) + if ass.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = ass.SQLReaderQuery + } + if ass.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = ass.SQLReaderStoredProcedureName + } + if ass.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = ass.StoredProcedureParameters + } + if ass.ProduceAdditionalTypes != nil { + objectMap["produceAdditionalTypes"] = ass.ProduceAdditionalTypes + } + if ass.PartitionOption != nil { + objectMap["partitionOption"] = ass.PartitionOption + } + if ass.PartitionSettings != nil { + objectMap["partitionSettings"] = ass.PartitionSettings + } + if ass.QueryTimeout != nil { + objectMap["queryTimeout"] = ass.QueryTimeout + } + if ass.AdditionalColumns != nil { + objectMap["additionalColumns"] = ass.AdditionalColumns + } + if ass.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ass.SourceRetryCount + } + if ass.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ass.SourceRetryWait + } + if ass.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections + } + if ass.Type != "" { + objectMap["type"] = ass.Type + } + for k, v := range ass.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsFileSystemSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsRestSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsVerticaSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsNetezzaSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsZohoSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsXeroSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsSquareSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSparkSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsShopifySource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsServiceNowSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsPrestoSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsPhoenixSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsPaypalSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsMarketoSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsMariaDBSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsMagentoSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return &asmls, true +// AsJiraSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsJiraSource() (*JiraSource, bool) { + return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsImpalaSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsHubspotSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsHiveSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsHBaseSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsGreenplumSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsLinkedService() (*LinkedService, bool) { +// AsEloquaSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asmls, true +// AsDrillSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDrillSource() (*DrillSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureSQLMILinkedService struct. -func (asmls *AzureSQLMILinkedService) UnmarshalJSON(body []byte) error { +// AsCouchbaseSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return &ass, true +} + +// AsSQLServerSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ass, true +} + +// AsBinarySource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ass, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLSource struct. +func (ass *AzureSQLSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -42956,166 +43186,125 @@ func (asmls *AzureSQLMILinkedService) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "sqlReaderQuery": if v != nil { - var azureSQLMILinkedServiceTypeProperties AzureSQLMILinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSQLMILinkedServiceTypeProperties) + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) if err != nil { return err } - asmls.AzureSQLMILinkedServiceTypeProperties = &azureSQLMILinkedServiceTypeProperties + ass.SQLReaderQuery = SQLReaderQuery } - default: + case "sqlReaderStoredProcedureName": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) if err != nil { return err } - if asmls.AdditionalProperties == nil { - asmls.AdditionalProperties = make(map[string]interface{}) - } - asmls.AdditionalProperties[k] = additionalProperties + ass.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName } - case "connectVia": + case "storedProcedureParameters": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var storedProcedureParameters map[string]*StoredProcedureParameter + err = json.Unmarshal(*v, &storedProcedureParameters) if err != nil { return err } - asmls.ConnectVia = &connectVia + ass.StoredProcedureParameters = storedProcedureParameters } - case "description": + case "produceAdditionalTypes": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var produceAdditionalTypes interface{} + err = json.Unmarshal(*v, &produceAdditionalTypes) if err != nil { return err } - asmls.Description = &description + ass.ProduceAdditionalTypes = produceAdditionalTypes } - case "parameters": + case "partitionOption": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) if err != nil { return err } - asmls.Parameters = parameters + ass.PartitionOption = partitionOption } - case "annotations": + case "partitionSettings": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) if err != nil { return err } - asmls.Annotations = &annotations + ass.PartitionSettings = &partitionSettings } - case "type": + case "queryTimeout": if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - asmls.Type = typeVar + ass.QueryTimeout = queryTimeout } - } - } - - return nil -} - -// AzureSQLMILinkedServiceTypeProperties azure SQL Managed Instance linked service properties. -type AzureSQLMILinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // ServicePrincipalID - The ID of the service principal used to authenticate against Azure SQL Managed Instance. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Managed Instance. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // AzureCloudType - Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLMILinkedServiceTypeProperties struct. -func (asmlstp *AzureSQLMILinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": + case "additionalColumns": if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - asmlstp.ConnectionString = connectionString + ass.AdditionalColumns = &additionalColumns } - case "password": + default: if v != nil { - var password AzureKeyVaultSecretReference - err = json.Unmarshal(*v, &password) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - asmlstp.Password = &password - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err + if ass.AdditionalProperties == nil { + ass.AdditionalProperties = make(map[string]interface{}) } - asmlstp.ServicePrincipalID = servicePrincipalID + ass.AdditionalProperties[k] = additionalProperties } - case "servicePrincipalKey": + case "sourceRetryCount": if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - asmlstp.ServicePrincipalKey = servicePrincipalKey + ass.SourceRetryCount = sourceRetryCount } - case "tenant": + case "sourceRetryWait": if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - asmlstp.Tenant = tenant + ass.SourceRetryWait = sourceRetryWait } - case "azureCloudType": + case "maxConcurrentConnections": if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - asmlstp.AzureCloudType = azureCloudType + ass.MaxConcurrentConnections = maxConcurrentConnections } - case "encryptedCredential": + case "type": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - asmlstp.EncryptedCredential = encryptedCredential + ass.Type = typeVar } } } @@ -43123,10 +43312,10 @@ func (asmlstp *AzureSQLMILinkedServiceTypeProperties) UnmarshalJSON(body []byte) return nil } -// AzureSQLMITableDataset the Azure SQL Managed Instance dataset. -type AzureSQLMITableDataset struct { - // AzureSQLMITableDatasetTypeProperties - Azure SQL Managed Instance dataset properties. - *AzureSQLMITableDatasetTypeProperties `json:"typeProperties,omitempty"` +// AzureSQLTableDataset the Azure SQL Server database dataset. +type AzureSQLTableDataset struct { + // AzureSQLTableDatasetTypeProperties - Azure SQL dataset properties. + *AzureSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -43147,520 +43336,520 @@ type AzureSQLMITableDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) MarshalJSON() ([]byte, error) { - asmtd.Type = TypeAzureSQLMITable +// MarshalJSON is the custom marshaler for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) MarshalJSON() ([]byte, error) { + astd.Type = TypeAzureSQLTable objectMap := make(map[string]interface{}) - if asmtd.AzureSQLMITableDatasetTypeProperties != nil { - objectMap["typeProperties"] = asmtd.AzureSQLMITableDatasetTypeProperties + if astd.AzureSQLTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = astd.AzureSQLTableDatasetTypeProperties } - if asmtd.Description != nil { - objectMap["description"] = asmtd.Description + if astd.Description != nil { + objectMap["description"] = astd.Description } - if asmtd.Structure != nil { - objectMap["structure"] = asmtd.Structure + if astd.Structure != nil { + objectMap["structure"] = astd.Structure } - if asmtd.Schema != nil { - objectMap["schema"] = asmtd.Schema + if astd.Schema != nil { + objectMap["schema"] = astd.Schema } - if asmtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = asmtd.LinkedServiceName + if astd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = astd.LinkedServiceName } - if asmtd.Parameters != nil { - objectMap["parameters"] = asmtd.Parameters + if astd.Parameters != nil { + objectMap["parameters"] = astd.Parameters } - if asmtd.Annotations != nil { - objectMap["annotations"] = asmtd.Annotations + if astd.Annotations != nil { + objectMap["annotations"] = astd.Annotations } - if asmtd.Folder != nil { - objectMap["folder"] = asmtd.Folder + if astd.Folder != nil { + objectMap["folder"] = astd.Folder } - if asmtd.Type != "" { - objectMap["type"] = asmtd.Type + if astd.Type != "" { + objectMap["type"] = astd.Type } - for k, v := range asmtd.AdditionalProperties { + for k, v := range astd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return &asmtd, true +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return &astd, true } -// AsAzureTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsBasicDataset() (BasicDataset, bool) { - return &asmtd, true +// AsBasicDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &astd, true } -// UnmarshalJSON is the custom unmarshaler for AzureSQLMITableDataset struct. -func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for AzureSQLTableDataset struct. +func (astd *AzureSQLTableDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -43670,12 +43859,12 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureSQLMITableDatasetTypeProperties AzureSQLMITableDatasetTypeProperties - err = json.Unmarshal(*v, &azureSQLMITableDatasetTypeProperties) + var azureSQLTableDatasetTypeProperties AzureSQLTableDatasetTypeProperties + err = json.Unmarshal(*v, &azureSQLTableDatasetTypeProperties) if err != nil { return err } - asmtd.AzureSQLMITableDatasetTypeProperties = &azureSQLMITableDatasetTypeProperties + astd.AzureSQLTableDatasetTypeProperties = &azureSQLTableDatasetTypeProperties } default: if v != nil { @@ -43684,10 +43873,10 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if asmtd.AdditionalProperties == nil { - asmtd.AdditionalProperties = make(map[string]interface{}) + if astd.AdditionalProperties == nil { + astd.AdditionalProperties = make(map[string]interface{}) } - asmtd.AdditionalProperties[k] = additionalProperties + astd.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -43696,7 +43885,7 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asmtd.Description = &description + astd.Description = &description } case "structure": if v != nil { @@ -43705,7 +43894,7 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asmtd.Structure = structure + astd.Structure = structure } case "schema": if v != nil { @@ -43714,7 +43903,7 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asmtd.Schema = schema + astd.Schema = schema } case "linkedServiceName": if v != nil { @@ -43723,7 +43912,7 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asmtd.LinkedServiceName = &linkedServiceName + astd.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -43732,7 +43921,7 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asmtd.Parameters = parameters + astd.Parameters = parameters } case "annotations": if v != nil { @@ -43741,7 +43930,7 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asmtd.Annotations = &annotations + astd.Annotations = &annotations } case "folder": if v != nil { @@ -43750,7 +43939,7 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asmtd.Folder = &folder + astd.Folder = &folder } case "type": if v != nil { @@ -43759,7 +43948,7 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - asmtd.Type = typeVar + astd.Type = typeVar } } } @@ -43767,980 +43956,924 @@ func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { return nil } -// AzureSQLMITableDatasetTypeProperties azure SQL Managed Instance dataset properties. -type AzureSQLMITableDatasetTypeProperties struct { +// AzureSQLTableDatasetTypeProperties azure SQL dataset properties. +type AzureSQLTableDatasetTypeProperties struct { // TableName - This property will be retired. Please consider using schema + table properties instead. TableName interface{} `json:"tableName,omitempty"` - // Schema - The schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). + // Schema - The schema name of the Azure SQL database. Type: string (or Expression with resultType string). Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string). + // Table - The table name of the Azure SQL database. Type: string (or Expression with resultType string). Table interface{} `json:"table,omitempty"` } -// AzureSQLSink a copy activity Azure SQL sink. -type AzureSQLSink struct { - // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` - // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // StoredProcedureParameters - SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` - // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` - // TableOption - The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` +// AzureSearchIndexDataset the Azure Search Index. +type AzureSearchIndexDataset struct { + // AzureSearchIndexDatasetTypeProperties - Properties specific to this dataset type. + *AzureSearchIndexDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureSQLSink. -func (ass AzureSQLSink) MarshalJSON() ([]byte, error) { - ass.Type = TypeAzureSQLSink +// MarshalJSON is the custom marshaler for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) MarshalJSON() ([]byte, error) { + asid.Type = TypeAzureSearchIndex objectMap := make(map[string]interface{}) - if ass.SQLWriterStoredProcedureName != nil { - objectMap["sqlWriterStoredProcedureName"] = ass.SQLWriterStoredProcedureName - } - if ass.SQLWriterTableType != nil { - objectMap["sqlWriterTableType"] = ass.SQLWriterTableType - } - if ass.PreCopyScript != nil { - objectMap["preCopyScript"] = ass.PreCopyScript - } - if ass.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ass.StoredProcedureParameters + if asid.AzureSearchIndexDatasetTypeProperties != nil { + objectMap["typeProperties"] = asid.AzureSearchIndexDatasetTypeProperties } - if ass.StoredProcedureTableTypeParameterName != nil { - objectMap["storedProcedureTableTypeParameterName"] = ass.StoredProcedureTableTypeParameterName + if asid.Description != nil { + objectMap["description"] = asid.Description } - if ass.TableOption != nil { - objectMap["tableOption"] = ass.TableOption + if asid.Structure != nil { + objectMap["structure"] = asid.Structure } - if ass.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ass.WriteBatchSize + if asid.Schema != nil { + objectMap["schema"] = asid.Schema } - if ass.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ass.WriteBatchTimeout + if asid.LinkedServiceName != nil { + objectMap["linkedServiceName"] = asid.LinkedServiceName } - if ass.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ass.SinkRetryCount + if asid.Parameters != nil { + objectMap["parameters"] = asid.Parameters } - if ass.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ass.SinkRetryWait + if asid.Annotations != nil { + objectMap["annotations"] = asid.Annotations } - if ass.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections + if asid.Folder != nil { + objectMap["folder"] = asid.Folder } - if ass.Type != "" { - objectMap["type"] = ass.Type + if asid.Type != "" { + objectMap["type"] = asid.Type } - for k, v := range ass.AdditionalProperties { + for k, v := range asid.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsInformixSink() (*InformixSink, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsOdbcSink() (*OdbcSink, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsOracleSink() (*OracleSink, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSQLMISink() (*SQLMISink, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return &ass, true +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSQLSink() (*SQLSink, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsBlobSink() (*BlobSink, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsBinarySink() (*BinarySink, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsParquetSink() (*ParquetSink, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAvroSink() (*AvroSink, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsRestSink() (*RestSink, bool) { +// AsDrillTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsOrcSink() (*OrcSink, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsJSONSink() (*JSONSink, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsCopySink() (*CopySink, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ass, true +// AsHTTPDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureSQLSink struct. -func (ass *AzureSQLSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlWriterStoredProcedureName": - if v != nil { - var SQLWriterStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) - if err != nil { - return err - } - ass.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName - } - case "sqlWriterTableType": - if v != nil { - var SQLWriterTableType interface{} - err = json.Unmarshal(*v, &SQLWriterTableType) - if err != nil { - return err - } - ass.SQLWriterTableType = SQLWriterTableType - } - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - ass.PreCopyScript = preCopyScript - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters map[string]*StoredProcedureParameter - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - ass.StoredProcedureParameters = storedProcedureParameters - } - case "storedProcedureTableTypeParameterName": - if v != nil { - var storedProcedureTableTypeParameterName interface{} - err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) - if err != nil { - return err - } - ass.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName - } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ass.TableOption = tableOption - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ass.AdditionalProperties == nil { - ass.AdditionalProperties = make(map[string]interface{}) - } - ass.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ass.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ass.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ass.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ass.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ass.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ass.Type = typeVar - } - } - } - - return nil +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return &asid, true } -// AzureSQLSource a copy activity Azure SQL source. -type AzureSQLSource struct { - // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` - // ProduceAdditionalTypes - Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` +// AsWebTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for AzureSQLSource. -func (ass AzureSQLSource) MarshalJSON() ([]byte, error) { - ass.Type = TypeAzureSQLSource - objectMap := make(map[string]interface{}) - if ass.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = ass.SQLReaderQuery - } - if ass.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = ass.SQLReaderStoredProcedureName - } - if ass.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ass.StoredProcedureParameters - } - if ass.ProduceAdditionalTypes != nil { - objectMap["produceAdditionalTypes"] = ass.ProduceAdditionalTypes - } - if ass.PartitionOption != nil { - objectMap["partitionOption"] = ass.PartitionOption - } - if ass.PartitionSettings != nil { - objectMap["partitionSettings"] = ass.PartitionSettings - } - if ass.QueryTimeout != nil { - objectMap["queryTimeout"] = ass.QueryTimeout - } - if ass.AdditionalColumns != nil { - objectMap["additionalColumns"] = ass.AdditionalColumns - } - if ass.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ass.SourceRetryCount - } - if ass.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ass.SourceRetryWait - } - if ass.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections - } - if ass.Type != "" { - objectMap["type"] = ass.Type - } - for k, v := range ass.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsSapTableResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false } -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsRestResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsHTTPSource() (*HTTPSource, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsOffice365Source() (*Office365Source, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsWebSource() (*WebSource, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsOracleSource() (*OracleSource, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsHdfsSource() (*HdfsSource, bool) { +// AsInformixTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsRestSource() (*RestSource, bool) { +// AsDb2TableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsODataSource() (*ODataSource, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsRelationalSource() (*RelationalSource, bool) { +// AsOracleTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsODataResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsBlobSource() (*BlobSource, bool) { +// AsFileShareDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsOffice365Dataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsVerticaSource() (*VerticaSource, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsZohoSource() (*ZohoSource, bool) { +// AsCustomDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsXeroSource() (*XeroSource, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSquareSource() (*SquareSource, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSparkSource() (*SparkSource, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsShopifySource() (*ShopifySource, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzureTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsPrestoSource() (*PrestoSource, bool) { +// AsBinaryDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsOrcDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsPaypalSource() (*PaypalSource, bool) { +// AsXMLDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMarketoSource() (*MarketoSource, bool) { +// AsJSONDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsParquetDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMagentoSource() (*MagentoSource, bool) { +// AsExcelDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsJiraSource() (*JiraSource, bool) { +// AsAvroDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsHubspotSource() (*HubspotSource, bool) { +// AsDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false +// AsBasicDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsBasicDataset() (BasicDataset, bool) { + return &asid, true } -// AsHBaseSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for AzureSearchIndexDataset struct. +func (asid *AzureSearchIndexDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureSearchIndexDatasetTypeProperties AzureSearchIndexDatasetTypeProperties + err = json.Unmarshal(*v, &azureSearchIndexDatasetTypeProperties) + if err != nil { + return err + } + asid.AzureSearchIndexDatasetTypeProperties = &azureSearchIndexDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asid.AdditionalProperties == nil { + asid.AdditionalProperties = make(map[string]interface{}) + } + asid.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asid.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + asid.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + asid.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + asid.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asid.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asid.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + asid.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asid.Type = typeVar + } + } + } + + return nil } -// AsGreenplumSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false +// AzureSearchIndexDatasetTypeProperties properties specific to this dataset type. +type AzureSearchIndexDatasetTypeProperties struct { + // IndexName - The name of the Azure Search Index. Type: string (or Expression with resultType string). + IndexName interface{} `json:"indexName,omitempty"` } -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false +// AzureSearchIndexSink a copy activity Azure Search Index sink. +type AzureSearchIndexSink struct { + // WriteBehavior - Specify the write behavior when upserting documents into Azure Search Index. Possible values include: 'Merge', 'Upload' + WriteBehavior AzureSearchIndexWriteBehaviorType `json:"writeBehavior,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// AsEloquaSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) MarshalJSON() ([]byte, error) { + asis.Type = TypeAzureSearchIndexSink + objectMap := make(map[string]interface{}) + if asis.WriteBehavior != "" { + objectMap["writeBehavior"] = asis.WriteBehavior + } + if asis.WriteBatchSize != nil { + objectMap["writeBatchSize"] = asis.WriteBatchSize + } + if asis.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = asis.WriteBatchTimeout + } + if asis.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = asis.SinkRetryCount + } + if asis.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = asis.SinkRetryWait + } + if asis.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = asis.MaxConcurrentConnections + } + if asis.Type != "" { + objectMap["type"] = asis.Type + } + for k, v := range asis.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsDrillSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDrillSource() (*DrillSource, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsConcurSource() (*ConcurSource, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsSalesforceSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCassandraSource() (*CassandraSource, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsTeradataSource() (*TeradataSource, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsDynamicsSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSQLMISource() (*SQLMISource, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return &ass, true +// AsInformixSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsInformixSink() (*InformixSink, bool) { + return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsOdbcSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSQLSource() (*SQLSource, bool) { - return nil, false +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return &asis, true } -// AsSapTableSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapTableSource() (*SapTableSource, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsOracleSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSQLDWSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSQLMISink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapBwSource() (*SapBwSource, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSQLServerSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMySQLSource() (*MySQLSource, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsOdbcSource() (*OdbcSource, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDb2Source() (*Db2Source, bool) { +// AsFileSystemSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsInformixSource() (*InformixSource, bool) { +// AsBlobSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsBinarySink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsTabularSource() (*TabularSource, bool) { +// AsParquetSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ass, true +// AsAvroSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAvroSink() (*AvroSink, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsBinarySource() (*BinarySource, bool) { +// AsAzureTableSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsOrcSource() (*OrcSource, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsXMLSource() (*XMLSource, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsJSONSource() (*JSONSource, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsExcelSource() (*ExcelSource, bool) { +// AsRestSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAvroSource() (*AvroSource, bool) { +// AsOrcSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCopySource() (*CopySource, bool) { +// AsJSONSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ass, true +// AsDelimitedTextSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureSQLSource struct. -func (ass *AzureSQLSource) UnmarshalJSON(body []byte) error { +// AsCopySink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsBasicCopySink() (BasicCopySink, bool) { + return &asis, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSearchIndexSink struct. +func (asis *AzureSearchIndexSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -44748,107 +44881,62 @@ func (ass *AzureSQLSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - ass.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - ass.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters map[string]*StoredProcedureParameter - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - ass.StoredProcedureParameters = storedProcedureParameters - } - case "produceAdditionalTypes": - if v != nil { - var produceAdditionalTypes interface{} - err = json.Unmarshal(*v, &produceAdditionalTypes) - if err != nil { - return err - } - ass.ProduceAdditionalTypes = produceAdditionalTypes - } - case "partitionOption": + case "writeBehavior": if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) + var writeBehavior AzureSearchIndexWriteBehaviorType + err = json.Unmarshal(*v, &writeBehavior) if err != nil { return err } - ass.PartitionOption = partitionOption + asis.WriteBehavior = writeBehavior } - case "partitionSettings": + default: if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - ass.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err + if asis.AdditionalProperties == nil { + asis.AdditionalProperties = make(map[string]interface{}) } - ass.QueryTimeout = queryTimeout + asis.AdditionalProperties[k] = additionalProperties } - case "additionalColumns": + case "writeBatchSize": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - ass.AdditionalColumns = &additionalColumns + asis.WriteBatchSize = writeBatchSize } - default: + case "writeBatchTimeout": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - if ass.AdditionalProperties == nil { - ass.AdditionalProperties = make(map[string]interface{}) - } - ass.AdditionalProperties[k] = additionalProperties + asis.WriteBatchTimeout = writeBatchTimeout } - case "sourceRetryCount": + case "sinkRetryCount": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) if err != nil { return err } - ass.SourceRetryCount = sourceRetryCount + asis.SinkRetryCount = sinkRetryCount } - case "sourceRetryWait": + case "sinkRetryWait": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) if err != nil { return err } - ass.SourceRetryWait = sourceRetryWait + asis.SinkRetryWait = sinkRetryWait } case "maxConcurrentConnections": if v != nil { @@ -44857,16 +44945,16 @@ func (ass *AzureSQLSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ass.MaxConcurrentConnections = maxConcurrentConnections + asis.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - ass.Type = typeVar + asis.Type = typeVar } } } @@ -44874,544 +44962,564 @@ func (ass *AzureSQLSource) UnmarshalJSON(body []byte) error { return nil } -// AzureSQLTableDataset the Azure SQL Server database dataset. -type AzureSQLTableDataset struct { - // AzureSQLTableDatasetTypeProperties - Azure SQL dataset properties. - *AzureSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` +// AzureSearchLinkedService linked service for Windows Azure Search Service. +type AzureSearchLinkedService struct { + // AzureSearchLinkedServiceTypeProperties - Windows Azure Search Service linked service properties. + *AzureSearchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. + // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) MarshalJSON() ([]byte, error) { - astd.Type = TypeAzureSQLTable +// MarshalJSON is the custom marshaler for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) MarshalJSON() ([]byte, error) { + asls.Type = TypeAzureSearch objectMap := make(map[string]interface{}) - if astd.AzureSQLTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = astd.AzureSQLTableDatasetTypeProperties - } - if astd.Description != nil { - objectMap["description"] = astd.Description - } - if astd.Structure != nil { - objectMap["structure"] = astd.Structure - } - if astd.Schema != nil { - objectMap["schema"] = astd.Schema + if asls.AzureSearchLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = asls.AzureSearchLinkedServiceTypeProperties } - if astd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = astd.LinkedServiceName + if asls.ConnectVia != nil { + objectMap["connectVia"] = asls.ConnectVia } - if astd.Parameters != nil { - objectMap["parameters"] = astd.Parameters + if asls.Description != nil { + objectMap["description"] = asls.Description } - if astd.Annotations != nil { - objectMap["annotations"] = astd.Annotations + if asls.Parameters != nil { + objectMap["parameters"] = asls.Parameters } - if astd.Folder != nil { - objectMap["folder"] = astd.Folder + if asls.Annotations != nil { + objectMap["annotations"] = asls.Annotations } - if astd.Type != "" { - objectMap["type"] = astd.Type + if asls.Type != "" { + objectMap["type"] = asls.Type } - for k, v := range astd.AdditionalProperties { + for k, v := range asls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return &asls, true +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return &astd, true +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDataset() (*Dataset, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &astd, true +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for AzureSQLTableDataset struct. -func (astd *AzureSQLTableDataset) UnmarshalJSON(body []byte) error { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &asls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSearchLinkedService struct. +func (asls *AzureSearchLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -45421,12 +45529,12 @@ func (astd *AzureSQLTableDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var azureSQLTableDatasetTypeProperties AzureSQLTableDatasetTypeProperties - err = json.Unmarshal(*v, &azureSQLTableDatasetTypeProperties) + var azureSearchLinkedServiceTypeProperties AzureSearchLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureSearchLinkedServiceTypeProperties) if err != nil { return err } - astd.AzureSQLTableDatasetTypeProperties = &azureSQLTableDatasetTypeProperties + asls.AzureSearchLinkedServiceTypeProperties = &azureSearchLinkedServiceTypeProperties } default: if v != nil { @@ -45435,82 +45543,106 @@ func (astd *AzureSQLTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if astd.AdditionalProperties == nil { - astd.AdditionalProperties = make(map[string]interface{}) + if asls.AdditionalProperties == nil { + asls.AdditionalProperties = make(map[string]interface{}) } - astd.AdditionalProperties[k] = additionalProperties + asls.AdditionalProperties[k] = additionalProperties } - case "description": + case "connectVia": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - astd.Description = &description + asls.ConnectVia = &connectVia } - case "structure": + case "description": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - astd.Structure = structure + asls.Description = &description } - case "schema": + case "parameters": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - astd.Schema = schema + asls.Parameters = parameters } - case "linkedServiceName": + case "annotations": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - astd.LinkedServiceName = &linkedServiceName + asls.Annotations = &annotations } - case "parameters": + case "type": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - astd.Parameters = parameters + asls.Type = typeVar } - case "annotations": + } + } + + return nil +} + +// AzureSearchLinkedServiceTypeProperties windows Azure Search Service linked service properties. +type AzureSearchLinkedServiceTypeProperties struct { + // URL - URL for Azure Search service. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // Key - Admin Key for Azure Search service + Key BasicSecretBase `json:"key,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureSearchLinkedServiceTypeProperties struct. +func (aslstp *AzureSearchLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var URL interface{} + err = json.Unmarshal(*v, &URL) if err != nil { return err } - astd.Annotations = &annotations + aslstp.URL = URL } - case "folder": + case "key": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + key, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - astd.Folder = &folder + aslstp.Key = key } - case "type": + case "encryptedCredential": if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) if err != nil { return err } - astd.Type = typeVar + aslstp.EncryptedCredential = encryptedCredential } } } @@ -45518,16 +45650,6 @@ func (astd *AzureSQLTableDataset) UnmarshalJSON(body []byte) error { return nil } -// AzureSQLTableDatasetTypeProperties azure SQL dataset properties. -type AzureSQLTableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Schema - The schema name of the Azure SQL database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the Azure SQL database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - // AzureStorageLinkedService the storage account linked service. type AzureStorageLinkedService struct { // AzureStorageLinkedServiceTypeProperties - Azure Storage linked service properties. @@ -46851,7 +46973,7 @@ type AzureTableSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -46900,6 +47022,16 @@ func (ats AzureTableSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, b return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureTableSink. func (ats AzureTableSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -49276,7 +49408,7 @@ type BinarySink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -49314,6 +49446,16 @@ func (bs BinarySink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for BinarySink. func (bs BinarySink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -50412,7 +50554,7 @@ type BlobSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -50461,6 +50603,16 @@ func (bs BlobSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for BlobSink. func (bs BlobSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -51578,6 +51730,12 @@ type BlobTriggerTypeProperties struct { LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` } +// CMKIdentityDefinition managed Identity used for CMK. +type CMKIdentityDefinition struct { + // UserAssignedIdentity - The resource id of the user assigned identity to authenticate to customer's key vault. + UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` +} + // CassandraLinkedService linked service for Cassandra data source. type CassandraLinkedService struct { // CassandraLinkedServiceTypeProperties - Cassandra linked service properties. @@ -53962,12 +54120,6 @@ func (cstp *CmdkeySetupTypeProperties) UnmarshalJSON(body []byte) error { return nil } -// CMKIdentityDefinition managed Identity used for CMK. -type CMKIdentityDefinition struct { - // UserAssignedIdentity - The resource id of the user assigned identity to authenticate to customer's key vault. - UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` -} - // CommonDataServiceForAppsEntityDataset the Common Data Service for Apps entity dataset. type CommonDataServiceForAppsEntityDataset struct { // CommonDataServiceForAppsEntityDatasetTypeProperties - Common Data Service for Apps entity dataset properties. @@ -55426,7 +55578,7 @@ type CommonDataServiceForAppsSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -55472,6 +55624,16 @@ func (cdsfas CommonDataServiceForAppsSink) AsCosmosDbMongoDbAPISink() (*CosmosDb return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. func (cdsfas CommonDataServiceForAppsSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -59596,6 +59758,8 @@ func (catp *CopyActivityTypeProperties) UnmarshalJSON(body []byte) error { // BasicCopySink a copy activity sink. type BasicCopySink interface { AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) + AsMongoDbV2Sink() (*MongoDbV2Sink, bool) + AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) AsSalesforceSink() (*SalesforceSink, bool) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) @@ -59649,7 +59813,7 @@ type CopySink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -59665,6 +59829,14 @@ func unmarshalBasicCopySink(body []byte) (BasicCopySink, error) { var cdmdas CosmosDbMongoDbAPISink err := json.Unmarshal(body, &cdmdas) return cdmdas, err + case string(TypeMongoDbV2Sink): + var mdvs MongoDbV2Sink + err := json.Unmarshal(body, &mdvs) + return mdvs, err + case string(TypeMongoDbAtlasSink): + var mdas MongoDbAtlasSink + err := json.Unmarshal(body, &mdas) + return mdas, err case string(TypeSalesforceServiceCloudSink): var sscs SalesforceServiceCloudSink err := json.Unmarshal(body, &sscs) @@ -59867,6 +60039,16 @@ func (cs CopySink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for CopySink. func (cs CopySink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -63422,7 +63604,7 @@ type CosmosDbMongoDbAPISink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -63462,6 +63644,16 @@ func (cdmdas CosmosDbMongoDbAPISink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoD return &cdmdas, true } +// AsMongoDbV2Sink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. func (cdmdas CosmosDbMongoDbAPISink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -65057,7 +65249,7 @@ type CosmosDbSQLAPISink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -65097,6 +65289,16 @@ func (cdsas CosmosDbSQLAPISink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPIS return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for CosmosDbSQLAPISink. func (cdsas CosmosDbSQLAPISink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -68386,6 +68588,643 @@ func (catp CustomActivityTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// CustomDataSourceLinkedService custom linked service. +type CustomDataSourceLinkedService struct { + // TypeProperties - Custom linked service properties. + TypeProperties interface{} `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) MarshalJSON() ([]byte, error) { + cdsls.Type = TypeCustomDataSource + objectMap := make(map[string]interface{}) + if cdsls.TypeProperties != nil { + objectMap["typeProperties"] = cdsls.TypeProperties + } + if cdsls.ConnectVia != nil { + objectMap["connectVia"] = cdsls.ConnectVia + } + if cdsls.Description != nil { + objectMap["description"] = cdsls.Description + } + if cdsls.Parameters != nil { + objectMap["parameters"] = cdsls.Parameters + } + if cdsls.Annotations != nil { + objectMap["annotations"] = cdsls.Annotations + } + if cdsls.Type != "" { + objectMap["type"] = cdsls.Type + } + for k, v := range cdsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return &cdsls, true +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &cdsls, true +} + +// UnmarshalJSON is the custom unmarshaler for CustomDataSourceLinkedService struct. +func (cdsls *CustomDataSourceLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var typeProperties interface{} + err = json.Unmarshal(*v, &typeProperties) + if err != nil { + return err + } + cdsls.TypeProperties = typeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdsls.AdditionalProperties == nil { + cdsls.AdditionalProperties = make(map[string]interface{}) + } + cdsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + cdsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cdsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cdsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cdsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdsls.Type = typeVar + } + } + } + + return nil +} + // CustomDataset the custom dataset. type CustomDataset struct { // TypeProperties - Custom dataset properties. @@ -69030,643 +69869,6 @@ func (cd *CustomDataset) UnmarshalJSON(body []byte) error { return nil } -// CustomDataSourceLinkedService custom linked service. -type CustomDataSourceLinkedService struct { - // TypeProperties - Custom linked service properties. - TypeProperties interface{} `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) MarshalJSON() ([]byte, error) { - cdsls.Type = TypeCustomDataSource - objectMap := make(map[string]interface{}) - if cdsls.TypeProperties != nil { - objectMap["typeProperties"] = cdsls.TypeProperties - } - if cdsls.ConnectVia != nil { - objectMap["connectVia"] = cdsls.ConnectVia - } - if cdsls.Description != nil { - objectMap["description"] = cdsls.Description - } - if cdsls.Parameters != nil { - objectMap["parameters"] = cdsls.Parameters - } - if cdsls.Annotations != nil { - objectMap["annotations"] = cdsls.Annotations - } - if cdsls.Type != "" { - objectMap["type"] = cdsls.Type - } - for k, v := range cdsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return &cdsls, true -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cdsls, true -} - -// UnmarshalJSON is the custom unmarshaler for CustomDataSourceLinkedService struct. -func (cdsls *CustomDataSourceLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var typeProperties interface{} - err = json.Unmarshal(*v, &typeProperties) - if err != nil { - return err - } - cdsls.TypeProperties = typeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdsls.AdditionalProperties == nil { - cdsls.AdditionalProperties = make(map[string]interface{}) - } - cdsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cdsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cdsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cdsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cdsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdsls.Type = typeVar - } - } - } - - return nil -} - // CustomEventsTrigger trigger that runs every time a custom event is received. type CustomEventsTrigger struct { // CustomEventsTriggerTypeProperties - Custom Events Trigger properties. @@ -69962,264 +70164,202 @@ func (csb CustomSetupBase) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) return &csb, true } -// DatabricksNotebookActivity databricksNotebook activity. -type DatabricksNotebookActivity struct { - // DatabricksNotebookActivityTypeProperties - Databricks Notebook activity properties. - *DatabricksNotebookActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` +// DWCopyCommandDefaultValue default value. +type DWCopyCommandDefaultValue struct { + // ColumnName - Column name. Type: object (or Expression with resultType string). + ColumnName interface{} `json:"columnName,omitempty"` + // DefaultValue - The default value of the column. Type: object (or Expression with resultType string). + DefaultValue interface{} `json:"defaultValue,omitempty"` } -// MarshalJSON is the custom marshaler for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) MarshalJSON() ([]byte, error) { - dna.Type = TypeDatabricksNotebook +// DWCopyCommandSettings DW Copy Command settings. +type DWCopyCommandSettings struct { + // DefaultValues - Specifies the default values for each target column in SQL DW. The default values in the property overwrite the DEFAULT constraint set in the DB, and identity column cannot have a default value. Type: array of objects (or Expression with resultType array of objects). + DefaultValues *[]DWCopyCommandDefaultValue `json:"defaultValues,omitempty"` + // AdditionalOptions - Additional options directly passed to SQL DW in Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalOptions": { "MAXERRORS": "1000", "DATEFORMAT": "'ymd'" } + AdditionalOptions map[string]*string `json:"additionalOptions"` +} + +// MarshalJSON is the custom marshaler for DWCopyCommandSettings. +func (dccs DWCopyCommandSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dna.DatabricksNotebookActivityTypeProperties != nil { - objectMap["typeProperties"] = dna.DatabricksNotebookActivityTypeProperties - } - if dna.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dna.LinkedServiceName - } - if dna.Policy != nil { - objectMap["policy"] = dna.Policy - } - if dna.Name != nil { - objectMap["name"] = dna.Name - } - if dna.Description != nil { - objectMap["description"] = dna.Description - } - if dna.DependsOn != nil { - objectMap["dependsOn"] = dna.DependsOn - } - if dna.UserProperties != nil { - objectMap["userProperties"] = dna.UserProperties - } - if dna.Type != "" { - objectMap["type"] = dna.Type + if dccs.DefaultValues != nil { + objectMap["defaultValues"] = dccs.DefaultValues } - for k, v := range dna.AdditionalProperties { - objectMap[k] = v + if dccs.AdditionalOptions != nil { + objectMap["additionalOptions"] = dccs.AdditionalOptions } return json.Marshal(objectMap) } -// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return &dna, true -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &dna, true -} - -// AsWebHookActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false +// BasicDataFlow azure Data Factory nested object which contains a flow with data movements and transformations. +type BasicDataFlow interface { + AsMappingDataFlow() (*MappingDataFlow, bool) + AsDataFlow() (*DataFlow, bool) } -// AsAppendVariableActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false +// DataFlow azure Data Factory nested object which contains a flow with data movements and transformations. +type DataFlow struct { + // Description - The description of the data flow. + Description *string `json:"description,omitempty"` + // Annotations - List of tags that can be used for describing the data flow. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. + Folder *DataFlowFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataFlow', 'TypeMappingDataFlow' + Type TypeBasicDataFlow `json:"type,omitempty"` } -// AsSetVariableActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} +func unmarshalBasicDataFlow(body []byte) (BasicDataFlow, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } -// AsFilterActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false + switch m["type"] { + case string(TypeMappingDataFlow): + var mdf MappingDataFlow + err := json.Unmarshal(body, &mdf) + return mdf, err + default: + var df DataFlow + err := json.Unmarshal(body, &df) + return df, err + } } +func unmarshalBasicDataFlowArray(body []byte) ([]BasicDataFlow, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } -// AsValidationActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} + dfArray := make([]BasicDataFlow, len(rawMessages)) -// AsUntilActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false + for index, rawMessage := range rawMessages { + df, err := unmarshalBasicDataFlow(*rawMessage) + if err != nil { + return nil, err + } + dfArray[index] = df + } + return dfArray, nil } -// AsWaitActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false +// MarshalJSON is the custom marshaler for DataFlow. +func (df DataFlow) MarshalJSON() ([]byte, error) { + df.Type = TypeDataFlow + objectMap := make(map[string]interface{}) + if df.Description != nil { + objectMap["description"] = df.Description + } + if df.Annotations != nil { + objectMap["annotations"] = df.Annotations + } + if df.Folder != nil { + objectMap["folder"] = df.Folder + } + if df.Type != "" { + objectMap["type"] = df.Type + } + return json.Marshal(objectMap) } -// AsForEachActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsMappingDataFlow is the BasicDataFlow implementation for DataFlow. +func (df DataFlow) AsMappingDataFlow() (*MappingDataFlow, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false +// AsDataFlow is the BasicDataFlow implementation for DataFlow. +func (df DataFlow) AsDataFlow() (*DataFlow, bool) { + return &df, true } -// AsIfConditionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false +// AsBasicDataFlow is the BasicDataFlow implementation for DataFlow. +func (df DataFlow) AsBasicDataFlow() (BasicDataFlow, bool) { + return &df, true } -// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false +// DataFlowDebugCommandPayload structure of command payload. +type DataFlowDebugCommandPayload struct { + // StreamName - The stream name which is used for preview. + StreamName *string `json:"streamName,omitempty"` + // RowLimits - Row limits for preview response. + RowLimits *int32 `json:"rowLimits,omitempty"` + // Columns - Array of column names. + Columns *[]string `json:"columns,omitempty"` + // Expression - The expression which is used for preview. + Expression *string `json:"expression,omitempty"` } -// AsControlActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false +// DataFlowDebugCommandRequest request body structure for data flow debug command. +type DataFlowDebugCommandRequest struct { + // SessionID - The ID of data flow debug session. + SessionID *string `json:"sessionId,omitempty"` + // Command - The command type. Possible values include: 'ExecutePreviewQuery', 'ExecuteStatisticsQuery', 'ExecuteExpressionQuery' + Command DataFlowDebugCommandType `json:"command,omitempty"` + // CommandPayload - The command payload object. + CommandPayload *DataFlowDebugCommandPayload `json:"commandPayload,omitempty"` } -// AsBasicControlActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false +// DataFlowDebugCommandResponse response body structure of data flow result for data preview, statistics or +// expression preview. +type DataFlowDebugCommandResponse struct { + autorest.Response `json:"-"` + // Status - The run status of data preview, statistics or expression preview. + Status *string `json:"status,omitempty"` + // Data - The result data of data preview, statistics or expression preview. + Data *string `json:"data,omitempty"` } -// AsActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsActivity() (*Activity, bool) { - return nil, false +// DataFlowDebugPackage request body structure for starting data flow debug session. +type DataFlowDebugPackage struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SessionID - The ID of data flow debug session. + SessionID *string `json:"sessionId,omitempty"` + // DataFlow - Data flow instance. + DataFlow *DataFlowDebugResource `json:"dataFlow,omitempty"` + // Datasets - List of datasets. + Datasets *[]DatasetDebugResource `json:"datasets,omitempty"` + // LinkedServices - List of linked services. + LinkedServices *[]LinkedServiceDebugResource `json:"linkedServices,omitempty"` + // Staging - Staging info for debug session. + Staging *DataFlowStagingInfo `json:"staging,omitempty"` + // DebugSettings - Data flow debug settings. + DebugSettings *DataFlowDebugPackageDebugSettings `json:"debugSettings,omitempty"` } -// AsBasicActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsBasicActivity() (BasicActivity, bool) { - return &dna, true +// MarshalJSON is the custom marshaler for DataFlowDebugPackage. +func (dfdp DataFlowDebugPackage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dfdp.SessionID != nil { + objectMap["sessionId"] = dfdp.SessionID + } + if dfdp.DataFlow != nil { + objectMap["dataFlow"] = dfdp.DataFlow + } + if dfdp.Datasets != nil { + objectMap["datasets"] = dfdp.Datasets + } + if dfdp.LinkedServices != nil { + objectMap["linkedServices"] = dfdp.LinkedServices + } + if dfdp.Staging != nil { + objectMap["staging"] = dfdp.Staging + } + if dfdp.DebugSettings != nil { + objectMap["debugSettings"] = dfdp.DebugSettings + } + for k, v := range dfdp.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for DatabricksNotebookActivity struct. -func (dna *DatabricksNotebookActivity) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DataFlowDebugPackage struct. +func (dfdp *DataFlowDebugPackage) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -70227,1030 +70367,10 @@ func (dna *DatabricksNotebookActivity) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + default: if v != nil { - var databricksNotebookActivityTypeProperties DatabricksNotebookActivityTypeProperties - err = json.Unmarshal(*v, &databricksNotebookActivityTypeProperties) - if err != nil { - return err - } - dna.DatabricksNotebookActivityTypeProperties = &databricksNotebookActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dna.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - dna.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dna.AdditionalProperties == nil { - dna.AdditionalProperties = make(map[string]interface{}) - } - dna.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dna.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dna.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - dna.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - dna.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dna.Type = typeVar - } - } - } - - return nil -} - -// DatabricksNotebookActivityTypeProperties databricks Notebook activity properties. -type DatabricksNotebookActivityTypeProperties struct { - // NotebookPath - 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). - NotebookPath interface{} `json:"notebookPath,omitempty"` - // BaseParameters - 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. - BaseParameters map[string]interface{} `json:"baseParameters"` - // Libraries - A list of libraries to be installed on the cluster that will execute the job. - Libraries *[]map[string]interface{} `json:"libraries,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatabricksNotebookActivityTypeProperties. -func (dnatp DatabricksNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dnatp.NotebookPath != nil { - objectMap["notebookPath"] = dnatp.NotebookPath - } - if dnatp.BaseParameters != nil { - objectMap["baseParameters"] = dnatp.BaseParameters - } - if dnatp.Libraries != nil { - objectMap["libraries"] = dnatp.Libraries - } - return json.Marshal(objectMap) -} - -// DatabricksSparkJarActivity databricksSparkJar activity. -type DatabricksSparkJarActivity struct { - // DatabricksSparkJarActivityTypeProperties - Databricks SparkJar activity properties. - *DatabricksSparkJarActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) MarshalJSON() ([]byte, error) { - dsja.Type = TypeDatabricksSparkJar - objectMap := make(map[string]interface{}) - if dsja.DatabricksSparkJarActivityTypeProperties != nil { - objectMap["typeProperties"] = dsja.DatabricksSparkJarActivityTypeProperties - } - if dsja.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dsja.LinkedServiceName - } - if dsja.Policy != nil { - objectMap["policy"] = dsja.Policy - } - if dsja.Name != nil { - objectMap["name"] = dsja.Name - } - if dsja.Description != nil { - objectMap["description"] = dsja.Description - } - if dsja.DependsOn != nil { - objectMap["dependsOn"] = dsja.DependsOn - } - if dsja.UserProperties != nil { - objectMap["userProperties"] = dsja.UserProperties - } - if dsja.Type != "" { - objectMap["type"] = dsja.Type - } - for k, v := range dsja.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return &dsja, true -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &dsja, true -} - -// AsWebHookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsBasicActivity() (BasicActivity, bool) { - return &dsja, true -} - -// UnmarshalJSON is the custom unmarshaler for DatabricksSparkJarActivity struct. -func (dsja *DatabricksSparkJarActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var databricksSparkJarActivityTypeProperties DatabricksSparkJarActivityTypeProperties - err = json.Unmarshal(*v, &databricksSparkJarActivityTypeProperties) - if err != nil { - return err - } - dsja.DatabricksSparkJarActivityTypeProperties = &databricksSparkJarActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dsja.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - dsja.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dsja.AdditionalProperties == nil { - dsja.AdditionalProperties = make(map[string]interface{}) - } - dsja.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dsja.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dsja.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - dsja.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - dsja.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dsja.Type = typeVar - } - } - } - - return nil -} - -// DatabricksSparkJarActivityTypeProperties databricks SparkJar activity properties. -type DatabricksSparkJarActivityTypeProperties struct { - // MainClassName - 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). - MainClassName interface{} `json:"mainClassName,omitempty"` - // Parameters - Parameters that will be passed to the main method. - Parameters *[]interface{} `json:"parameters,omitempty"` - // Libraries - A list of libraries to be installed on the cluster that will execute the job. - Libraries *[]map[string]interface{} `json:"libraries,omitempty"` -} - -// DatabricksSparkPythonActivity databricksSparkPython activity. -type DatabricksSparkPythonActivity struct { - // DatabricksSparkPythonActivityTypeProperties - Databricks SparkPython activity properties. - *DatabricksSparkPythonActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) MarshalJSON() ([]byte, error) { - dspa.Type = TypeDatabricksSparkPython - objectMap := make(map[string]interface{}) - if dspa.DatabricksSparkPythonActivityTypeProperties != nil { - objectMap["typeProperties"] = dspa.DatabricksSparkPythonActivityTypeProperties - } - if dspa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dspa.LinkedServiceName - } - if dspa.Policy != nil { - objectMap["policy"] = dspa.Policy - } - if dspa.Name != nil { - objectMap["name"] = dspa.Name - } - if dspa.Description != nil { - objectMap["description"] = dspa.Description - } - if dspa.DependsOn != nil { - objectMap["dependsOn"] = dspa.DependsOn - } - if dspa.UserProperties != nil { - objectMap["userProperties"] = dspa.UserProperties - } - if dspa.Type != "" { - objectMap["type"] = dspa.Type - } - for k, v := range dspa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return &dspa, true -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &dspa, true -} - -// AsWebHookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsBasicActivity() (BasicActivity, bool) { - return &dspa, true -} - -// UnmarshalJSON is the custom unmarshaler for DatabricksSparkPythonActivity struct. -func (dspa *DatabricksSparkPythonActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var databricksSparkPythonActivityTypeProperties DatabricksSparkPythonActivityTypeProperties - err = json.Unmarshal(*v, &databricksSparkPythonActivityTypeProperties) - if err != nil { - return err - } - dspa.DatabricksSparkPythonActivityTypeProperties = &databricksSparkPythonActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dspa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - dspa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dspa.AdditionalProperties == nil { - dspa.AdditionalProperties = make(map[string]interface{}) - } - dspa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dspa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dspa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - dspa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - dspa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dspa.Type = typeVar - } - } - } - - return nil -} - -// DatabricksSparkPythonActivityTypeProperties databricks SparkPython activity properties. -type DatabricksSparkPythonActivityTypeProperties struct { - // PythonFile - The URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType string). - PythonFile interface{} `json:"pythonFile,omitempty"` - // Parameters - Command line parameters that will be passed to the Python file. - Parameters *[]interface{} `json:"parameters,omitempty"` - // Libraries - A list of libraries to be installed on the cluster that will execute the job. - Libraries *[]map[string]interface{} `json:"libraries,omitempty"` -} - -// BasicDataFlow azure Data Factory nested object which contains a flow with data movements and transformations. -type BasicDataFlow interface { - AsMappingDataFlow() (*MappingDataFlow, bool) - AsDataFlow() (*DataFlow, bool) -} - -// DataFlow azure Data Factory nested object which contains a flow with data movements and transformations. -type DataFlow struct { - // Description - The description of the data flow. - Description *string `json:"description,omitempty"` - // Annotations - List of tags that can be used for describing the data flow. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. - Folder *DataFlowFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataFlow', 'TypeMappingDataFlow' - Type TypeBasicDataFlow `json:"type,omitempty"` -} - -func unmarshalBasicDataFlow(body []byte) (BasicDataFlow, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeMappingDataFlow): - var mdf MappingDataFlow - err := json.Unmarshal(body, &mdf) - return mdf, err - default: - var df DataFlow - err := json.Unmarshal(body, &df) - return df, err - } -} -func unmarshalBasicDataFlowArray(body []byte) ([]BasicDataFlow, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dfArray := make([]BasicDataFlow, len(rawMessages)) - - for index, rawMessage := range rawMessages { - df, err := unmarshalBasicDataFlow(*rawMessage) - if err != nil { - return nil, err - } - dfArray[index] = df - } - return dfArray, nil -} - -// MarshalJSON is the custom marshaler for DataFlow. -func (df DataFlow) MarshalJSON() ([]byte, error) { - df.Type = TypeDataFlow - objectMap := make(map[string]interface{}) - if df.Description != nil { - objectMap["description"] = df.Description - } - if df.Annotations != nil { - objectMap["annotations"] = df.Annotations - } - if df.Folder != nil { - objectMap["folder"] = df.Folder - } - if df.Type != "" { - objectMap["type"] = df.Type - } - return json.Marshal(objectMap) -} - -// AsMappingDataFlow is the BasicDataFlow implementation for DataFlow. -func (df DataFlow) AsMappingDataFlow() (*MappingDataFlow, bool) { - return nil, false -} - -// AsDataFlow is the BasicDataFlow implementation for DataFlow. -func (df DataFlow) AsDataFlow() (*DataFlow, bool) { - return &df, true -} - -// AsBasicDataFlow is the BasicDataFlow implementation for DataFlow. -func (df DataFlow) AsBasicDataFlow() (BasicDataFlow, bool) { - return &df, true -} - -// DataFlowDebugCommandPayload structure of command payload. -type DataFlowDebugCommandPayload struct { - // StreamName - The stream name which is used for preview. - StreamName *string `json:"streamName,omitempty"` - // RowLimits - Row limits for preview response. - RowLimits *int32 `json:"rowLimits,omitempty"` - // Columns - Array of column names. - Columns *[]string `json:"columns,omitempty"` - // Expression - The expression which is used for preview. - Expression *string `json:"expression,omitempty"` -} - -// DataFlowDebugCommandRequest request body structure for data flow debug command. -type DataFlowDebugCommandRequest struct { - // SessionID - The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` - // Command - The command type. Possible values include: 'ExecutePreviewQuery', 'ExecuteStatisticsQuery', 'ExecuteExpressionQuery' - Command DataFlowDebugCommandType `json:"command,omitempty"` - // CommandPayload - The command payload object. - CommandPayload *DataFlowDebugCommandPayload `json:"commandPayload,omitempty"` -} - -// DataFlowDebugCommandResponse response body structure of data flow result for data preview, statistics or -// expression preview. -type DataFlowDebugCommandResponse struct { - autorest.Response `json:"-"` - // Status - The run status of data preview, statistics or expression preview. - Status *string `json:"status,omitempty"` - // Data - The result data of data preview, statistics or expression preview. - Data *string `json:"data,omitempty"` -} - -// DataFlowDebugPackage request body structure for starting data flow debug session. -type DataFlowDebugPackage struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SessionID - The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` - // DataFlow - Data flow instance. - DataFlow *DataFlowDebugResource `json:"dataFlow,omitempty"` - // Datasets - List of datasets. - Datasets *[]DatasetDebugResource `json:"datasets,omitempty"` - // LinkedServices - List of linked services. - LinkedServices *[]LinkedServiceDebugResource `json:"linkedServices,omitempty"` - // Staging - Staging info for debug session. - Staging *DataFlowStagingInfo `json:"staging,omitempty"` - // DebugSettings - Data flow debug settings. - DebugSettings *DataFlowDebugPackageDebugSettings `json:"debugSettings,omitempty"` -} - -// MarshalJSON is the custom marshaler for DataFlowDebugPackage. -func (dfdp DataFlowDebugPackage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dfdp.SessionID != nil { - objectMap["sessionId"] = dfdp.SessionID - } - if dfdp.DataFlow != nil { - objectMap["dataFlow"] = dfdp.DataFlow - } - if dfdp.Datasets != nil { - objectMap["datasets"] = dfdp.Datasets - } - if dfdp.LinkedServices != nil { - objectMap["linkedServices"] = dfdp.LinkedServices - } - if dfdp.Staging != nil { - objectMap["staging"] = dfdp.Staging - } - if dfdp.DebugSettings != nil { - objectMap["debugSettings"] = dfdp.DebugSettings - } - for k, v := range dfdp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for DataFlowDebugPackage struct. -func (dfdp *DataFlowDebugPackage) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } @@ -72399,3338 +71519,264 @@ func (dlauatp DataLakeAnalyticsUSQLActivityTypeProperties) MarshalJSON() ([]byte return json.Marshal(objectMap) } -// BasicDataset the Azure Data Factory nested object which identifies data within different data stores, such as -// tables, files, folders, and documents. -type BasicDataset interface { - AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) - AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) - AsSnowflakeDataset() (*SnowflakeDataset, bool) - AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) - AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) - AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) - AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) - AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) - AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) - AsVerticaTableDataset() (*VerticaTableDataset, bool) - AsNetezzaTableDataset() (*NetezzaTableDataset, bool) - AsZohoObjectDataset() (*ZohoObjectDataset, bool) - AsXeroObjectDataset() (*XeroObjectDataset, bool) - AsSquareObjectDataset() (*SquareObjectDataset, bool) - AsSparkObjectDataset() (*SparkObjectDataset, bool) - AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) - AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) - AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) - AsPrestoObjectDataset() (*PrestoObjectDataset, bool) - AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) - AsPaypalObjectDataset() (*PaypalObjectDataset, bool) - AsMarketoObjectDataset() (*MarketoObjectDataset, bool) - AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) - AsMariaDBTableDataset() (*MariaDBTableDataset, bool) - AsMagentoObjectDataset() (*MagentoObjectDataset, bool) - AsJiraObjectDataset() (*JiraObjectDataset, bool) - AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) - AsHubspotObjectDataset() (*HubspotObjectDataset, bool) - AsHiveObjectDataset() (*HiveObjectDataset, bool) - AsHBaseObjectDataset() (*HBaseObjectDataset, bool) - AsGreenplumTableDataset() (*GreenplumTableDataset, bool) - AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) - AsEloquaObjectDataset() (*EloquaObjectDataset, bool) - AsDrillTableDataset() (*DrillTableDataset, bool) - AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) - AsConcurObjectDataset() (*ConcurObjectDataset, bool) - AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) - AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) - AsHTTPDataset() (*HTTPDataset, bool) - AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) - AsWebTableDataset() (*WebTableDataset, bool) - AsSapTableResourceDataset() (*SapTableResourceDataset, bool) - AsRestResourceDataset() (*RestResourceDataset, bool) - AsSQLServerTableDataset() (*SQLServerTableDataset, bool) - AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) - AsSapHanaTableDataset() (*SapHanaTableDataset, bool) - AsSapEccResourceDataset() (*SapEccResourceDataset, bool) - AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) - AsSapBwCubeDataset() (*SapBwCubeDataset, bool) - AsSybaseTableDataset() (*SybaseTableDataset, bool) - AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) - AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) - AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) - AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) - AsMySQLTableDataset() (*MySQLTableDataset, bool) - AsOdbcTableDataset() (*OdbcTableDataset, bool) - AsInformixTableDataset() (*InformixTableDataset, bool) - AsRelationalTableDataset() (*RelationalTableDataset, bool) - AsDb2TableDataset() (*Db2TableDataset, bool) - AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) - AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) - AsTeradataTableDataset() (*TeradataTableDataset, bool) - AsOracleTableDataset() (*OracleTableDataset, bool) - AsODataResourceDataset() (*ODataResourceDataset, bool) - AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) - AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) - AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) - AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) - AsFileShareDataset() (*FileShareDataset, bool) - AsOffice365Dataset() (*Office365Dataset, bool) - AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) - AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) - AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) - AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) - AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) - AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) - AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) - AsCustomDataset() (*CustomDataset, bool) - AsCassandraTableDataset() (*CassandraTableDataset, bool) - AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) - AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) - AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) - AsAzureTableDataset() (*AzureTableDataset, bool) - AsAzureBlobDataset() (*AzureBlobDataset, bool) - AsBinaryDataset() (*BinaryDataset, bool) - AsOrcDataset() (*OrcDataset, bool) - AsXMLDataset() (*XMLDataset, bool) - AsJSONDataset() (*JSONDataset, bool) - AsDelimitedTextDataset() (*DelimitedTextDataset, bool) - AsParquetDataset() (*ParquetDataset, bool) - AsExcelDataset() (*ExcelDataset, bool) - AsAvroDataset() (*AvroDataset, bool) - AsAmazonS3Dataset() (*AmazonS3Dataset, bool) - AsDataset() (*Dataset, bool) -} - -// Dataset the Azure Data Factory nested object which identifies data within different data stores, such as -// tables, files, folders, and documents. -type Dataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -func unmarshalBasicDataset(body []byte) (BasicDataset, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeAzureDatabricksDeltaLakeDataset): - var addld AzureDatabricksDeltaLakeDataset - err := json.Unmarshal(body, &addld) - return addld, err - case string(TypeSharePointOnlineListResource): - var spolrd SharePointOnlineListResourceDataset - err := json.Unmarshal(body, &spolrd) - return spolrd, err - case string(TypeSnowflakeTable): - var sd SnowflakeDataset - err := json.Unmarshal(body, &sd) - return sd, err - case string(TypeGoogleAdWordsObject): - var gawod GoogleAdWordsObjectDataset - err := json.Unmarshal(body, &gawod) - return gawod, err - case string(TypeAzureDataExplorerTable): - var adetd AzureDataExplorerTableDataset - err := json.Unmarshal(body, &adetd) - return adetd, err - case string(TypeOracleServiceCloudObject): - var oscod OracleServiceCloudObjectDataset - err := json.Unmarshal(body, &oscod) - return oscod, err - case string(TypeDynamicsAXResource): - var dard DynamicsAXResourceDataset - err := json.Unmarshal(body, &dard) - return dard, err - case string(TypeResponsysObject): - var rod ResponsysObjectDataset - err := json.Unmarshal(body, &rod) - return rod, err - case string(TypeSalesforceMarketingCloudObject): - var smcod SalesforceMarketingCloudObjectDataset - err := json.Unmarshal(body, &smcod) - return smcod, err - case string(TypeVerticaTable): - var vtd VerticaTableDataset - err := json.Unmarshal(body, &vtd) - return vtd, err - case string(TypeNetezzaTable): - var ntd NetezzaTableDataset - err := json.Unmarshal(body, &ntd) - return ntd, err - case string(TypeZohoObject): - var zod ZohoObjectDataset - err := json.Unmarshal(body, &zod) - return zod, err - case string(TypeXeroObject): - var xod XeroObjectDataset - err := json.Unmarshal(body, &xod) - return xod, err - case string(TypeSquareObject): - var sod SquareObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeSparkObject): - var sod SparkObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeShopifyObject): - var sod ShopifyObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeServiceNowObject): - var snod ServiceNowObjectDataset - err := json.Unmarshal(body, &snod) - return snod, err - case string(TypeQuickBooksObject): - var qbod QuickBooksObjectDataset - err := json.Unmarshal(body, &qbod) - return qbod, err - case string(TypePrestoObject): - var pod PrestoObjectDataset - err := json.Unmarshal(body, &pod) - return pod, err - case string(TypePhoenixObject): - var pod PhoenixObjectDataset - err := json.Unmarshal(body, &pod) - return pod, err - case string(TypePaypalObject): - var pod PaypalObjectDataset - err := json.Unmarshal(body, &pod) - return pod, err - case string(TypeMarketoObject): - var mod MarketoObjectDataset - err := json.Unmarshal(body, &mod) - return mod, err - case string(TypeAzureMariaDBTable): - var amdtd AzureMariaDBTableDataset - err := json.Unmarshal(body, &amdtd) - return amdtd, err - case string(TypeMariaDBTable): - var mdtd MariaDBTableDataset - err := json.Unmarshal(body, &mdtd) - return mdtd, err - case string(TypeMagentoObject): - var mod MagentoObjectDataset - err := json.Unmarshal(body, &mod) - return mod, err - case string(TypeJiraObject): - var jod JiraObjectDataset - err := json.Unmarshal(body, &jod) - return jod, err - case string(TypeImpalaObject): - var iod ImpalaObjectDataset - err := json.Unmarshal(body, &iod) - return iod, err - case string(TypeHubspotObject): - var hod HubspotObjectDataset - err := json.Unmarshal(body, &hod) - return hod, err - case string(TypeHiveObject): - var hod HiveObjectDataset - err := json.Unmarshal(body, &hod) - return hod, err - case string(TypeHBaseObject): - var hbod HBaseObjectDataset - err := json.Unmarshal(body, &hbod) - return hbod, err - case string(TypeGreenplumTable): - var gtd GreenplumTableDataset - err := json.Unmarshal(body, >d) - return gtd, err - case string(TypeGoogleBigQueryObject): - var gbqod GoogleBigQueryObjectDataset - err := json.Unmarshal(body, &gbqod) - return gbqod, err - case string(TypeEloquaObject): - var eod EloquaObjectDataset - err := json.Unmarshal(body, &eod) - return eod, err - case string(TypeDrillTable): - var dtd DrillTableDataset - err := json.Unmarshal(body, &dtd) - return dtd, err - case string(TypeCouchbaseTable): - var ctd CouchbaseTableDataset - err := json.Unmarshal(body, &ctd) - return ctd, err - case string(TypeConcurObject): - var cod ConcurObjectDataset - err := json.Unmarshal(body, &cod) - return cod, err - case string(TypeAzurePostgreSQLTable): - var apstd AzurePostgreSQLTableDataset - err := json.Unmarshal(body, &apstd) - return apstd, err - case string(TypeAmazonMWSObject): - var amod AmazonMWSObjectDataset - err := json.Unmarshal(body, &amod) - return amod, err - case string(TypeHTTPFile): - var hd HTTPDataset - err := json.Unmarshal(body, &hd) - return hd, err - case string(TypeAzureSearchIndex): - var asid AzureSearchIndexDataset - err := json.Unmarshal(body, &asid) - return asid, err - case string(TypeWebTable): - var wtd WebTableDataset - err := json.Unmarshal(body, &wtd) - return wtd, err - case string(TypeSapTableResource): - var strd SapTableResourceDataset - err := json.Unmarshal(body, &strd) - return strd, err - case string(TypeRestResource): - var rrd RestResourceDataset - err := json.Unmarshal(body, &rrd) - return rrd, err - case string(TypeSQLServerTable): - var sstd SQLServerTableDataset - err := json.Unmarshal(body, &sstd) - return sstd, err - case string(TypeSapOpenHubTable): - var sohtd SapOpenHubTableDataset - err := json.Unmarshal(body, &sohtd) - return sohtd, err - case string(TypeSapHanaTable): - var shtd SapHanaTableDataset - err := json.Unmarshal(body, &shtd) - return shtd, err - case string(TypeSapEccResource): - var serd SapEccResourceDataset - err := json.Unmarshal(body, &serd) - return serd, err - case string(TypeSapCloudForCustomerResource): - var scfcrd SapCloudForCustomerResourceDataset - err := json.Unmarshal(body, &scfcrd) - return scfcrd, err - case string(TypeSapBwCube): - var sbcd SapBwCubeDataset - err := json.Unmarshal(body, &sbcd) - return sbcd, err - case string(TypeSybaseTable): - var std SybaseTableDataset - err := json.Unmarshal(body, &std) - return std, err - case string(TypeSalesforceServiceCloudObject): - var sscod SalesforceServiceCloudObjectDataset - err := json.Unmarshal(body, &sscod) - return sscod, err - case string(TypeSalesforceObject): - var sod SalesforceObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeMicrosoftAccessTable): - var matd MicrosoftAccessTableDataset - err := json.Unmarshal(body, &matd) - return matd, err - case string(TypePostgreSQLTable): - var pstd PostgreSQLTableDataset - err := json.Unmarshal(body, &pstd) - return pstd, err - case string(TypeMySQLTable): - var mstd MySQLTableDataset - err := json.Unmarshal(body, &mstd) - return mstd, err - case string(TypeOdbcTable): - var otd OdbcTableDataset - err := json.Unmarshal(body, &otd) - return otd, err - case string(TypeInformixTable): - var itd InformixTableDataset - err := json.Unmarshal(body, &itd) - return itd, err - case string(TypeRelationalTable): - var rtd RelationalTableDataset - err := json.Unmarshal(body, &rtd) - return rtd, err - case string(TypeDb2Table): - var d2td Db2TableDataset - err := json.Unmarshal(body, &d2td) - return d2td, err - case string(TypeAmazonRedshiftTable): - var artd AmazonRedshiftTableDataset - err := json.Unmarshal(body, &artd) - return artd, err - case string(TypeAzureMySQLTable): - var amstd AzureMySQLTableDataset - err := json.Unmarshal(body, &amstd) - return amstd, err - case string(TypeTeradataTable): - var ttd TeradataTableDataset - err := json.Unmarshal(body, &ttd) - return ttd, err - case string(TypeOracleTable): - var otd OracleTableDataset - err := json.Unmarshal(body, &otd) - return otd, err - case string(TypeODataResource): - var odrd ODataResourceDataset - err := json.Unmarshal(body, &odrd) - return odrd, err - case string(TypeCosmosDbMongoDbAPICollection): - var cdmdacd CosmosDbMongoDbAPICollectionDataset - err := json.Unmarshal(body, &cdmdacd) - return cdmdacd, err - case string(TypeMongoDbV2Collection): - var mdvcd MongoDbV2CollectionDataset - err := json.Unmarshal(body, &mdvcd) - return mdvcd, err - case string(TypeMongoDbAtlasCollection): - var mdacd MongoDbAtlasCollectionDataset - err := json.Unmarshal(body, &mdacd) - return mdacd, err - case string(TypeMongoDbCollection): - var mdcd MongoDbCollectionDataset - err := json.Unmarshal(body, &mdcd) - return mdcd, err - case string(TypeFileShare): - var fsd FileShareDataset - err := json.Unmarshal(body, &fsd) - return fsd, err - case string(TypeOffice365Table): - var o3d Office365Dataset - err := json.Unmarshal(body, &o3d) - return o3d, err - case string(TypeAzureBlobFSFile): - var abfd AzureBlobFSDataset - err := json.Unmarshal(body, &abfd) - return abfd, err - case string(TypeAzureDataLakeStoreFile): - var adlsd AzureDataLakeStoreDataset - err := json.Unmarshal(body, &adlsd) - return adlsd, err - case string(TypeCommonDataServiceForAppsEntity): - var cdsfaed CommonDataServiceForAppsEntityDataset - err := json.Unmarshal(body, &cdsfaed) - return cdsfaed, err - case string(TypeDynamicsCrmEntity): - var dced DynamicsCrmEntityDataset - err := json.Unmarshal(body, &dced) - return dced, err - case string(TypeDynamicsEntity): - var ded DynamicsEntityDataset - err := json.Unmarshal(body, &ded) - return ded, err - case string(TypeDocumentDbCollection): - var ddcd DocumentDbCollectionDataset - err := json.Unmarshal(body, &ddcd) - return ddcd, err - case string(TypeCosmosDbSQLAPICollection): - var cdsacd CosmosDbSQLAPICollectionDataset - err := json.Unmarshal(body, &cdsacd) - return cdsacd, err - case string(TypeCustomDataset): - var cd CustomDataset - err := json.Unmarshal(body, &cd) - return cd, err - case string(TypeCassandraTable): - var ctd CassandraTableDataset - err := json.Unmarshal(body, &ctd) - return ctd, err - case string(TypeAzureSQLDWTable): - var asdtd AzureSQLDWTableDataset - err := json.Unmarshal(body, &asdtd) - return asdtd, err - case string(TypeAzureSQLMITable): - var asmtd AzureSQLMITableDataset - err := json.Unmarshal(body, &asmtd) - return asmtd, err - case string(TypeAzureSQLTable): - var astd AzureSQLTableDataset - err := json.Unmarshal(body, &astd) - return astd, err - case string(TypeAzureTable): - var atd AzureTableDataset - err := json.Unmarshal(body, &atd) - return atd, err - case string(TypeAzureBlob): - var abd AzureBlobDataset - err := json.Unmarshal(body, &abd) - return abd, err - case string(TypeBinary): - var bd BinaryDataset - err := json.Unmarshal(body, &bd) - return bd, err - case string(TypeOrc): - var od OrcDataset - err := json.Unmarshal(body, &od) - return od, err - case string(TypeXML): - var xd XMLDataset - err := json.Unmarshal(body, &xd) - return xd, err - case string(TypeJSON): - var jd JSONDataset - err := json.Unmarshal(body, &jd) - return jd, err - case string(TypeDelimitedText): - var dtd DelimitedTextDataset - err := json.Unmarshal(body, &dtd) - return dtd, err - case string(TypeParquet): - var pd ParquetDataset - err := json.Unmarshal(body, &pd) - return pd, err - case string(TypeExcel): - var ed ExcelDataset - err := json.Unmarshal(body, &ed) - return ed, err - case string(TypeAvro): - var ad AvroDataset - err := json.Unmarshal(body, &ad) - return ad, err - case string(TypeAmazonS3Object): - var asd AmazonS3Dataset - err := json.Unmarshal(body, &asd) - return asd, err - default: - var d Dataset - err := json.Unmarshal(body, &d) - return d, err - } -} -func unmarshalBasicDatasetArray(body []byte) ([]BasicDataset, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dArray := make([]BasicDataset, len(rawMessages)) - - for index, rawMessage := range rawMessages { - d, err := unmarshalBasicDataset(*rawMessage) - if err != nil { - return nil, err - } - dArray[index] = d - } - return dArray, nil -} - -// MarshalJSON is the custom marshaler for Dataset. -func (d Dataset) MarshalJSON() ([]byte, error) { - d.Type = TypeDataset - objectMap := make(map[string]interface{}) - if d.Description != nil { - objectMap["description"] = d.Description - } - if d.Structure != nil { - objectMap["structure"] = d.Structure - } - if d.Schema != nil { - objectMap["schema"] = d.Schema - } - if d.LinkedServiceName != nil { - objectMap["linkedServiceName"] = d.LinkedServiceName - } - if d.Parameters != nil { - objectMap["parameters"] = d.Parameters - } - if d.Annotations != nil { - objectMap["annotations"] = d.Annotations - } - if d.Folder != nil { - objectMap["folder"] = d.Folder - } - if d.Type != "" { - objectMap["type"] = d.Type - } - for k, v := range d.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDataset() (*Dataset, bool) { - return &d, true -} - -// AsBasicDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsBasicDataset() (BasicDataset, bool) { - return &d, true -} - -// UnmarshalJSON is the custom unmarshaler for Dataset struct. -func (d *Dataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if d.AdditionalProperties == nil { - d.AdditionalProperties = make(map[string]interface{}) - } - d.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - d.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - d.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - d.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - d.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - d.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - d.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - d.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - d.Type = typeVar - } - } - } - - return nil -} - -// DatasetBZip2Compression the BZip2 compression method used on a dataset. -type DatasetBZip2Compression struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) MarshalJSON() ([]byte, error) { - dbz2c.Type = TypeBZip2 - objectMap := make(map[string]interface{}) - if dbz2c.Type != "" { - objectMap["type"] = dbz2c.Type - } - for k, v := range dbz2c.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { - return nil, false -} - -// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { - return nil, false -} - -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return nil, false -} - -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return nil, false -} - -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return nil, false -} - -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return &dbz2c, true -} - -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetCompression() (*DatasetCompression, bool) { - return nil, false -} - -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &dbz2c, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetBZip2Compression struct. -func (dbz2c *DatasetBZip2Compression) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dbz2c.AdditionalProperties == nil { - dbz2c.AdditionalProperties = make(map[string]interface{}) - } - dbz2c.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetCompression - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dbz2c.Type = typeVar - } - } - } - - return nil -} - -// BasicDatasetCompression the compression method used on a dataset. -type BasicDatasetCompression interface { - AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) - AsDatasetTarCompression() (*DatasetTarCompression, bool) - AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) - AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) - AsDatasetGZipCompression() (*DatasetGZipCompression, bool) - AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) - AsDatasetCompression() (*DatasetCompression, bool) -} - -// DatasetCompression the compression method used on a dataset. -type DatasetCompression struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -func unmarshalBasicDatasetCompression(body []byte) (BasicDatasetCompression, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeTarGZip): - var dtgzc DatasetTarGZipCompression - err := json.Unmarshal(body, &dtgzc) - return dtgzc, err - case string(TypeTar): - var dtc DatasetTarCompression - err := json.Unmarshal(body, &dtc) - return dtc, err - case string(TypeZipDeflate): - var dzdc DatasetZipDeflateCompression - err := json.Unmarshal(body, &dzdc) - return dzdc, err - case string(TypeDeflate): - var ddc DatasetDeflateCompression - err := json.Unmarshal(body, &ddc) - return ddc, err - case string(TypeGZip): - var dgzc DatasetGZipCompression - err := json.Unmarshal(body, &dgzc) - return dgzc, err - case string(TypeBZip2): - var dbz2c DatasetBZip2Compression - err := json.Unmarshal(body, &dbz2c) - return dbz2c, err - default: - var dc DatasetCompression - err := json.Unmarshal(body, &dc) - return dc, err - } -} -func unmarshalBasicDatasetCompressionArray(body []byte) ([]BasicDatasetCompression, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dcArray := make([]BasicDatasetCompression, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dc, err := unmarshalBasicDatasetCompression(*rawMessage) - if err != nil { - return nil, err - } - dcArray[index] = dc - } - return dcArray, nil -} - -// MarshalJSON is the custom marshaler for DatasetCompression. -func (dc DatasetCompression) MarshalJSON() ([]byte, error) { - dc.Type = TypeDatasetCompression - objectMap := make(map[string]interface{}) - if dc.Type != "" { - objectMap["type"] = dc.Type - } - for k, v := range dc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { - return nil, false -} - -// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { - return nil, false -} - -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return nil, false -} - -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return nil, false -} - -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return nil, false -} - -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return nil, false -} - -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetCompression() (*DatasetCompression, bool) { - return &dc, true -} - -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &dc, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetCompression struct. -func (dc *DatasetCompression) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dc.AdditionalProperties == nil { - dc.AdditionalProperties = make(map[string]interface{}) - } - dc.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetCompression - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dc.Type = typeVar - } - } - } - - return nil -} - -// DatasetDataElement columns that define the structure of the dataset. -type DatasetDataElement struct { - // Name - Name of the column. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - // Type - Type of the column. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` -} - -// DatasetDebugResource dataset debug resource. -type DatasetDebugResource struct { - // Properties - Dataset properties. - Properties BasicDataset `json:"properties,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for DatasetDebugResource struct. -func (ddr *DatasetDebugResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicDataset(*v) - if err != nil { - return err - } - ddr.Properties = properties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ddr.Name = &name - } - } - } - - return nil -} - -// DatasetDeflateCompression the Deflate compression method used on a dataset. -type DatasetDeflateCompression struct { - // Level - The Deflate compression level. - Level interface{} `json:"level,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) MarshalJSON() ([]byte, error) { - ddc.Type = TypeDeflate - objectMap := make(map[string]interface{}) - if ddc.Level != nil { - objectMap["level"] = ddc.Level - } - if ddc.Type != "" { - objectMap["type"] = ddc.Type - } - for k, v := range ddc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { - return nil, false -} - -// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { - return nil, false -} - -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return nil, false -} - -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return &ddc, true -} - -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return nil, false -} - -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return nil, false -} - -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetCompression() (*DatasetCompression, bool) { - return nil, false -} - -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &ddc, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetDeflateCompression struct. -func (ddc *DatasetDeflateCompression) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "level": - if v != nil { - var level interface{} - err = json.Unmarshal(*v, &level) - if err != nil { - return err - } - ddc.Level = level - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ddc.AdditionalProperties == nil { - ddc.AdditionalProperties = make(map[string]interface{}) - } - ddc.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetCompression - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ddc.Type = typeVar - } - } - } - - return nil -} - -// DatasetFolder the folder that this Dataset is in. If not specified, Dataset will appear at the root -// level. -type DatasetFolder struct { - // Name - The name of the folder that this Dataset is in. - Name *string `json:"name,omitempty"` -} - -// DatasetGZipCompression the GZip compression method used on a dataset. -type DatasetGZipCompression struct { - // Level - The GZip compression level. - Level interface{} `json:"level,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) MarshalJSON() ([]byte, error) { - dgzc.Type = TypeGZip - objectMap := make(map[string]interface{}) - if dgzc.Level != nil { - objectMap["level"] = dgzc.Level - } - if dgzc.Type != "" { - objectMap["type"] = dgzc.Type - } - for k, v := range dgzc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { - return nil, false -} - -// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { - return nil, false -} - -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return nil, false -} - -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return nil, false -} - -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return &dgzc, true -} - -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return nil, false -} - -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetCompression() (*DatasetCompression, bool) { - return nil, false -} - -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &dgzc, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetGZipCompression struct. -func (dgzc *DatasetGZipCompression) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "level": - if v != nil { - var level interface{} - err = json.Unmarshal(*v, &level) - if err != nil { - return err - } - dgzc.Level = level - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dgzc.AdditionalProperties == nil { - dgzc.AdditionalProperties = make(map[string]interface{}) - } - dgzc.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetCompression - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dgzc.Type = typeVar - } - } - } - - return nil -} - -// DatasetListResponse a list of dataset resources. -type DatasetListResponse struct { - autorest.Response `json:"-"` - // Value - List of datasets. - Value *[]DatasetResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// DatasetListResponseIterator provides access to a complete listing of DatasetResource values. -type DatasetListResponseIterator struct { - i int - page DatasetListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *DatasetListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatasetListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *DatasetListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter DatasetListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter DatasetListResponseIterator) Response() DatasetListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter DatasetListResponseIterator) Value() DatasetResource { - if !iter.page.NotDone() { - return DatasetResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the DatasetListResponseIterator type. -func NewDatasetListResponseIterator(page DatasetListResponsePage) DatasetListResponseIterator { - return DatasetListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (dlr DatasetListResponse) IsEmpty() bool { - return dlr.Value == nil || len(*dlr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (dlr DatasetListResponse) hasNextLink() bool { - return dlr.NextLink != nil && len(*dlr.NextLink) != 0 -} - -// datasetListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (dlr DatasetListResponse) datasetListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !dlr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(dlr.NextLink))) -} - -// DatasetListResponsePage contains a page of DatasetResource values. -type DatasetListResponsePage struct { - fn func(context.Context, DatasetListResponse) (DatasetListResponse, error) - dlr DatasetListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *DatasetListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatasetListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.dlr) - if err != nil { - return err - } - page.dlr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *DatasetListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page DatasetListResponsePage) NotDone() bool { - return !page.dlr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page DatasetListResponsePage) Response() DatasetListResponse { - return page.dlr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page DatasetListResponsePage) Values() []DatasetResource { - if page.dlr.IsEmpty() { - return nil - } - return *page.dlr.Value -} - -// Creates a new instance of the DatasetListResponsePage type. -func NewDatasetListResponsePage(cur DatasetListResponse, getNextPage func(context.Context, DatasetListResponse) (DatasetListResponse, error)) DatasetListResponsePage { - return DatasetListResponsePage{ - fn: getNextPage, - dlr: cur, - } -} - -// BasicDatasetLocation dataset location. -type BasicDatasetLocation interface { - AsHdfsLocation() (*HdfsLocation, bool) - AsHTTPServerLocation() (*HTTPServerLocation, bool) - AsSftpLocation() (*SftpLocation, bool) - AsFtpServerLocation() (*FtpServerLocation, bool) - AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) - AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) - AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) - AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) - AsFileServerLocation() (*FileServerLocation, bool) - AsAmazonS3Location() (*AmazonS3Location, bool) - AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) - AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) - AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) - AsDatasetLocation() (*DatasetLocation, bool) -} - -// DatasetLocation dataset location. -type DatasetLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -func unmarshalBasicDatasetLocation(body []byte) (BasicDatasetLocation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeHdfsLocation): - var hl HdfsLocation - err := json.Unmarshal(body, &hl) - return hl, err - case string(TypeHTTPServerLocation): - var hsl HTTPServerLocation - err := json.Unmarshal(body, &hsl) - return hsl, err - case string(TypeSftpLocation): - var sl SftpLocation - err := json.Unmarshal(body, &sl) - return sl, err - case string(TypeFtpServerLocation): - var fsl FtpServerLocation - err := json.Unmarshal(body, &fsl) - return fsl, err - case string(TypeGoogleCloudStorageLocation): - var gcsl GoogleCloudStorageLocation - err := json.Unmarshal(body, &gcsl) - return gcsl, err - case string(TypeOracleCloudStorageLocation): - var ocsl OracleCloudStorageLocation - err := json.Unmarshal(body, &ocsl) - return ocsl, err - case string(TypeAmazonS3CompatibleLocation): - var ascl AmazonS3CompatibleLocation - err := json.Unmarshal(body, &ascl) - return ascl, err - case string(TypeAzureFileStorageLocation): - var afsl AzureFileStorageLocation - err := json.Unmarshal(body, &afsl) - return afsl, err - case string(TypeFileServerLocation): - var fsl FileServerLocation - err := json.Unmarshal(body, &fsl) - return fsl, err - case string(TypeAmazonS3Location): - var asl AmazonS3Location - err := json.Unmarshal(body, &asl) - return asl, err - case string(TypeAzureDataLakeStoreLocation): - var adlsl AzureDataLakeStoreLocation - err := json.Unmarshal(body, &adlsl) - return adlsl, err - case string(TypeAzureBlobFSLocation): - var abfl AzureBlobFSLocation - err := json.Unmarshal(body, &abfl) - return abfl, err - case string(TypeAzureBlobStorageLocation): - var absl AzureBlobStorageLocation - err := json.Unmarshal(body, &absl) - return absl, err - default: - var dl DatasetLocation - err := json.Unmarshal(body, &dl) - return dl, err - } -} -func unmarshalBasicDatasetLocationArray(body []byte) ([]BasicDatasetLocation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dlArray := make([]BasicDatasetLocation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dl, err := unmarshalBasicDatasetLocation(*rawMessage) - if err != nil { - return nil, err - } - dlArray[index] = dl - } - return dlArray, nil -} - -// MarshalJSON is the custom marshaler for DatasetLocation. -func (dl DatasetLocation) MarshalJSON() ([]byte, error) { - dl.Type = TypeDatasetLocation - objectMap := make(map[string]interface{}) - if dl.FolderPath != nil { - objectMap["folderPath"] = dl.FolderPath - } - if dl.FileName != nil { - objectMap["fileName"] = dl.FileName - } - if dl.Type != "" { - objectMap["type"] = dl.Type - } - for k, v := range dl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return &dl, true -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &dl, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetLocation struct. -func (dl *DatasetLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dl.AdditionalProperties == nil { - dl.AdditionalProperties = make(map[string]interface{}) - } - dl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - dl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - dl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dl.Type = typeVar - } - } - } - - return nil -} - -// DatasetReference dataset reference type. -type DatasetReference struct { - // Type - Dataset reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference dataset name. - ReferenceName *string `json:"referenceName,omitempty"` - // Parameters - Arguments for dataset. - Parameters map[string]interface{} `json:"parameters"` -} - -// MarshalJSON is the custom marshaler for DatasetReference. -func (dr DatasetReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dr.Type != nil { - objectMap["type"] = dr.Type - } - if dr.ReferenceName != nil { - objectMap["referenceName"] = dr.ReferenceName - } - if dr.Parameters != nil { - objectMap["parameters"] = dr.Parameters - } - return json.Marshal(objectMap) -} - -// DatasetResource dataset resource type. -type DatasetResource struct { - autorest.Response `json:"-"` - // Properties - Dataset properties. - Properties BasicDataset `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetResource. -func (dr DatasetResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["properties"] = dr.Properties - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for DatasetResource struct. -func (dr *DatasetResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicDataset(*v) - if err != nil { - return err - } - dr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - dr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - dr.Etag = &etag - } - } - } - - return nil -} - -// DatasetSchemaDataElement columns that define the physical type schema of the dataset. -type DatasetSchemaDataElement struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Name of the schema column. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - // Type - Type of the schema column. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetSchemaDataElement. -func (dsde DatasetSchemaDataElement) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dsde.Name != nil { - objectMap["name"] = dsde.Name - } - if dsde.Type != nil { - objectMap["type"] = dsde.Type - } - for k, v := range dsde.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for DatasetSchemaDataElement struct. -func (dsde *DatasetSchemaDataElement) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dsde.AdditionalProperties == nil { - dsde.AdditionalProperties = make(map[string]interface{}) - } - dsde.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name interface{} - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dsde.Name = name - } - case "type": - if v != nil { - var typeVar interface{} - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dsde.Type = typeVar - } - } - } - - return nil -} - -// BasicDatasetStorageFormat the format definition of a storage. -type BasicDatasetStorageFormat interface { - AsParquetFormat() (*ParquetFormat, bool) - AsOrcFormat() (*OrcFormat, bool) - AsAvroFormat() (*AvroFormat, bool) - AsJSONFormat() (*JSONFormat, bool) - AsTextFormat() (*TextFormat, bool) - AsDatasetStorageFormat() (*DatasetStorageFormat, bool) -} - -// DatasetStorageFormat the format definition of a storage. -type DatasetStorageFormat struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeDatasetStorageFormat', 'TypeParquetFormat', 'TypeOrcFormat', 'TypeAvroFormat', 'TypeJSONFormat', 'TypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -func unmarshalBasicDatasetStorageFormat(body []byte) (BasicDatasetStorageFormat, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeParquetFormat): - var pf ParquetFormat - err := json.Unmarshal(body, &pf) - return pf, err - case string(TypeOrcFormat): - var of OrcFormat - err := json.Unmarshal(body, &of) - return of, err - case string(TypeAvroFormat): - var af AvroFormat - err := json.Unmarshal(body, &af) - return af, err - case string(TypeJSONFormat): - var jf JSONFormat - err := json.Unmarshal(body, &jf) - return jf, err - case string(TypeTextFormat): - var tf TextFormat - err := json.Unmarshal(body, &tf) - return tf, err - default: - var dsf DatasetStorageFormat - err := json.Unmarshal(body, &dsf) - return dsf, err - } -} -func unmarshalBasicDatasetStorageFormatArray(body []byte) ([]BasicDatasetStorageFormat, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dsfArray := make([]BasicDatasetStorageFormat, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dsf, err := unmarshalBasicDatasetStorageFormat(*rawMessage) - if err != nil { - return nil, err - } - dsfArray[index] = dsf - } - return dsfArray, nil -} - -// MarshalJSON is the custom marshaler for DatasetStorageFormat. -func (dsf DatasetStorageFormat) MarshalJSON() ([]byte, error) { - dsf.Type = TypeDatasetStorageFormat - objectMap := make(map[string]interface{}) - if dsf.Serializer != nil { - objectMap["serializer"] = dsf.Serializer - } - if dsf.Deserializer != nil { - objectMap["deserializer"] = dsf.Deserializer - } - if dsf.Type != "" { - objectMap["type"] = dsf.Type - } - for k, v := range dsf.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsParquetFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// AsOrcFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// AsAvroFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// AsJSONFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// AsTextFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return &dsf, true -} - -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &dsf, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetStorageFormat struct. -func (dsf *DatasetStorageFormat) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dsf.AdditionalProperties == nil { - dsf.AdditionalProperties = make(map[string]interface{}) - } - dsf.AdditionalProperties[k] = additionalProperties - } - case "serializer": - if v != nil { - var serializer interface{} - err = json.Unmarshal(*v, &serializer) - if err != nil { - return err - } - dsf.Serializer = serializer - } - case "deserializer": - if v != nil { - var deserializer interface{} - err = json.Unmarshal(*v, &deserializer) - if err != nil { - return err - } - dsf.Deserializer = deserializer - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetStorageFormat - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dsf.Type = typeVar - } - } - } - - return nil -} - -// DatasetTarCompression the Tar archive method used on a dataset. -type DatasetTarCompression struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetTarCompression. -func (dtc DatasetTarCompression) MarshalJSON() ([]byte, error) { - dtc.Type = TypeTar - objectMap := make(map[string]interface{}) - if dtc.Type != "" { - objectMap["type"] = dtc.Type - } - for k, v := range dtc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetTarCompression. -func (dtc DatasetTarCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { - return nil, false -} - -// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetTarCompression. -func (dtc DatasetTarCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { - return &dtc, true -} - -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetTarCompression. -func (dtc DatasetTarCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return nil, false -} - -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetTarCompression. -func (dtc DatasetTarCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return nil, false -} - -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetTarCompression. -func (dtc DatasetTarCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return nil, false -} - -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetTarCompression. -func (dtc DatasetTarCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return nil, false -} - -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetTarCompression. -func (dtc DatasetTarCompression) AsDatasetCompression() (*DatasetCompression, bool) { - return nil, false -} - -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetTarCompression. -func (dtc DatasetTarCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &dtc, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetTarCompression struct. -func (dtc *DatasetTarCompression) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dtc.AdditionalProperties == nil { - dtc.AdditionalProperties = make(map[string]interface{}) - } - dtc.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetCompression - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dtc.Type = typeVar - } - } - } - - return nil -} - -// DatasetTarGZipCompression the TarGZip compression method used on a dataset. -type DatasetTarGZipCompression struct { - // Level - The TarGZip compression level. - Level interface{} `json:"level,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetTarGZipCompression. -func (dtgzc DatasetTarGZipCompression) MarshalJSON() ([]byte, error) { - dtgzc.Type = TypeTarGZip - objectMap := make(map[string]interface{}) - if dtgzc.Level != nil { - objectMap["level"] = dtgzc.Level - } - if dtgzc.Type != "" { - objectMap["type"] = dtgzc.Type - } - for k, v := range dtgzc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. -func (dtgzc DatasetTarGZipCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { - return &dtgzc, true -} - -// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. -func (dtgzc DatasetTarGZipCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { - return nil, false -} - -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. -func (dtgzc DatasetTarGZipCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return nil, false -} - -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. -func (dtgzc DatasetTarGZipCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return nil, false -} - -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. -func (dtgzc DatasetTarGZipCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return nil, false -} - -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. -func (dtgzc DatasetTarGZipCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return nil, false -} - -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. -func (dtgzc DatasetTarGZipCompression) AsDatasetCompression() (*DatasetCompression, bool) { - return nil, false -} - -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. -func (dtgzc DatasetTarGZipCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &dtgzc, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetTarGZipCompression struct. -func (dtgzc *DatasetTarGZipCompression) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "level": - if v != nil { - var level interface{} - err = json.Unmarshal(*v, &level) - if err != nil { - return err - } - dtgzc.Level = level - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dtgzc.AdditionalProperties == nil { - dtgzc.AdditionalProperties = make(map[string]interface{}) - } - dtgzc.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetCompression - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dtgzc.Type = typeVar - } - } - } - - return nil -} - -// DatasetZipDeflateCompression the ZipDeflate compression method used on a dataset. -type DatasetZipDeflateCompression struct { - // Level - The ZipDeflate compression level. - Level interface{} `json:"level,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) MarshalJSON() ([]byte, error) { - dzdc.Type = TypeZipDeflate - objectMap := make(map[string]interface{}) - if dzdc.Level != nil { - objectMap["level"] = dzdc.Level - } - if dzdc.Type != "" { - objectMap["type"] = dzdc.Type - } - for k, v := range dzdc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { - return nil, false -} - -// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { - return nil, false -} - -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return &dzdc, true -} - -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return nil, false -} - -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return nil, false -} - -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return nil, false -} - -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetCompression() (*DatasetCompression, bool) { - return nil, false -} - -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &dzdc, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetZipDeflateCompression struct. -func (dzdc *DatasetZipDeflateCompression) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "level": - if v != nil { - var level interface{} - err = json.Unmarshal(*v, &level) - if err != nil { - return err - } - dzdc.Level = level - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dzdc.AdditionalProperties == nil { - dzdc.AdditionalProperties = make(map[string]interface{}) - } - dzdc.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetCompression - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dzdc.Type = typeVar - } - } - } - - return nil -} - -// Db2LinkedService linked service for DB2 data source. -type Db2LinkedService struct { - // Db2LinkedServiceTypeProperties - DB2 linked service properties. - *Db2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for Db2LinkedService. -func (d2ls Db2LinkedService) MarshalJSON() ([]byte, error) { - d2ls.Type = TypeDb2 - objectMap := make(map[string]interface{}) - if d2ls.Db2LinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = d2ls.Db2LinkedServiceTypeProperties - } - if d2ls.ConnectVia != nil { - objectMap["connectVia"] = d2ls.ConnectVia - } - if d2ls.Description != nil { - objectMap["description"] = d2ls.Description - } - if d2ls.Parameters != nil { - objectMap["parameters"] = d2ls.Parameters - } - if d2ls.Annotations != nil { - objectMap["annotations"] = d2ls.Annotations - } - if d2ls.Type != "" { - objectMap["type"] = d2ls.Type - } - for k, v := range d2ls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false +// DatabricksNotebookActivity databricksNotebook activity. +type DatabricksNotebookActivity struct { + // DatabricksNotebookActivityTypeProperties - Databricks Notebook activity properties. + *DatabricksNotebookActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) MarshalJSON() ([]byte, error) { + dna.Type = TypeDatabricksNotebook + objectMap := make(map[string]interface{}) + if dna.DatabricksNotebookActivityTypeProperties != nil { + objectMap["typeProperties"] = dna.DatabricksNotebookActivityTypeProperties + } + if dna.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dna.LinkedServiceName + } + if dna.Policy != nil { + objectMap["policy"] = dna.Policy + } + if dna.Name != nil { + objectMap["name"] = dna.Name + } + if dna.Description != nil { + objectMap["description"] = dna.Description + } + if dna.DependsOn != nil { + objectMap["dependsOn"] = dna.DependsOn + } + if dna.UserProperties != nil { + objectMap["userProperties"] = dna.UserProperties + } + if dna.Type != "" { + objectMap["type"] = dna.Type + } + for k, v := range dna.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false +// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return &dna, true } -// AsWebLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsWebActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsLookupActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsDeleteActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return &d2ls, true -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsCustomActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCopyActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false +// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &dna, true } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsWebHookActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsSetVariableActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsFilterActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsValidationActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsUntilActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsWaitActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsForEachActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSwitchActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsIfConditionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsControlActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsBasicControlActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsBasicControlActivity() (BasicControlActivity, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsLinkedService() (*LinkedService, bool) { +// AsActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &d2ls, true +// AsBasicActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsBasicActivity() (BasicActivity, bool) { + return &dna, true } -// UnmarshalJSON is the custom unmarshaler for Db2LinkedService struct. -func (d2ls *Db2LinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DatabricksNotebookActivity struct. +func (dna *DatabricksNotebookActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -75740,12 +71786,30 @@ func (d2ls *Db2LinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var db2LinkedServiceTypeProperties Db2LinkedServiceTypeProperties - err = json.Unmarshal(*v, &db2LinkedServiceTypeProperties) + var databricksNotebookActivityTypeProperties DatabricksNotebookActivityTypeProperties + err = json.Unmarshal(*v, &databricksNotebookActivityTypeProperties) if err != nil { return err } - d2ls.Db2LinkedServiceTypeProperties = &db2LinkedServiceTypeProperties + dna.DatabricksNotebookActivityTypeProperties = &databricksNotebookActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dna.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + dna.Policy = &policy } default: if v != nil { @@ -75754,19 +71818,19 @@ func (d2ls *Db2LinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if d2ls.AdditionalProperties == nil { - d2ls.AdditionalProperties = make(map[string]interface{}) + if dna.AdditionalProperties == nil { + dna.AdditionalProperties = make(map[string]interface{}) } - d2ls.AdditionalProperties[k] = additionalProperties + dna.AdditionalProperties[k] = additionalProperties } - case "connectVia": + case "name": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - d2ls.ConnectVia = &connectVia + dna.Name = &name } case "description": if v != nil { @@ -75775,34 +71839,34 @@ func (d2ls *Db2LinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - d2ls.Description = &description + dna.Description = &description } - case "parameters": + case "dependsOn": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) if err != nil { return err } - d2ls.Parameters = parameters + dna.DependsOn = &dependsOn } - case "annotations": + case "userProperties": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) if err != nil { return err } - d2ls.Annotations = &annotations + dna.UserProperties = &userProperties } case "type": if v != nil { - var typeVar TypeBasicLinkedService + var typeVar TypeBasicActivity err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - d2ls.Type = typeVar + dna.Type = typeVar } } } @@ -75810,656 +71874,654 @@ func (d2ls *Db2LinkedService) UnmarshalJSON(body []byte) error { return nil } -// Db2LinkedServiceTypeProperties dB2 linked service properties. -type Db2LinkedServiceTypeProperties struct { - // ConnectionString - The connection string. It is mutually exclusive with server, database, authenticationType, userName, packageCollection and certificateCommonName property. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Server - Server name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // Database - Database name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // AuthenticationType - AuthenticationType to be used for connection. It is mutually exclusive with connectionString property. Possible values include: 'Basic' - AuthenticationType Db2AuthenticationType `json:"authenticationType,omitempty"` - // Username - Username for authentication. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // PackageCollection - Under where packages are created when querying database. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). - PackageCollection interface{} `json:"packageCollection,omitempty"` - // CertificateCommonName - Certificate Common Name when TLS is enabled. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). - CertificateCommonName interface{} `json:"certificateCommonName,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +// DatabricksNotebookActivityTypeProperties databricks Notebook activity properties. +type DatabricksNotebookActivityTypeProperties struct { + // NotebookPath - 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). + NotebookPath interface{} `json:"notebookPath,omitempty"` + // BaseParameters - 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. + BaseParameters map[string]interface{} `json:"baseParameters"` + // Libraries - A list of libraries to be installed on the cluster that will execute the job. + Libraries *[]map[string]interface{} `json:"libraries,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for Db2LinkedServiceTypeProperties struct. -func (d2lstp *Db2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err +// MarshalJSON is the custom marshaler for DatabricksNotebookActivityTypeProperties. +func (dnatp DatabricksNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dnatp.NotebookPath != nil { + objectMap["notebookPath"] = dnatp.NotebookPath } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - d2lstp.ConnectionString = connectionString - } - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - d2lstp.Server = server - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - d2lstp.Database = databaseVar - } - case "authenticationType": - if v != nil { - var authenticationType Db2AuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - d2lstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - d2lstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - d2lstp.Password = password - } - case "packageCollection": - if v != nil { - var packageCollection interface{} - err = json.Unmarshal(*v, &packageCollection) - if err != nil { - return err - } - d2lstp.PackageCollection = packageCollection - } - case "certificateCommonName": - if v != nil { - var certificateCommonName interface{} - err = json.Unmarshal(*v, &certificateCommonName) - if err != nil { - return err - } - d2lstp.CertificateCommonName = certificateCommonName - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - d2lstp.EncryptedCredential = encryptedCredential - } - } + if dnatp.BaseParameters != nil { + objectMap["baseParameters"] = dnatp.BaseParameters } - - return nil + if dnatp.Libraries != nil { + objectMap["libraries"] = dnatp.Libraries + } + return json.Marshal(objectMap) } -// Db2Source a copy activity source for Db2 databases. -type Db2Source struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// DatabricksSparkJarActivity databricksSparkJar activity. +type DatabricksSparkJarActivity struct { + // DatabricksSparkJarActivityTypeProperties - Databricks SparkJar activity properties. + *DatabricksSparkJarActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for Db2Source. -func (d2s Db2Source) MarshalJSON() ([]byte, error) { - d2s.Type = TypeDb2Source +// MarshalJSON is the custom marshaler for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) MarshalJSON() ([]byte, error) { + dsja.Type = TypeDatabricksSparkJar objectMap := make(map[string]interface{}) - if d2s.Query != nil { - objectMap["query"] = d2s.Query + if dsja.DatabricksSparkJarActivityTypeProperties != nil { + objectMap["typeProperties"] = dsja.DatabricksSparkJarActivityTypeProperties } - if d2s.QueryTimeout != nil { - objectMap["queryTimeout"] = d2s.QueryTimeout + if dsja.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dsja.LinkedServiceName } - if d2s.AdditionalColumns != nil { - objectMap["additionalColumns"] = d2s.AdditionalColumns + if dsja.Policy != nil { + objectMap["policy"] = dsja.Policy } - if d2s.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = d2s.SourceRetryCount + if dsja.Name != nil { + objectMap["name"] = dsja.Name } - if d2s.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = d2s.SourceRetryWait + if dsja.Description != nil { + objectMap["description"] = dsja.Description } - if d2s.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = d2s.MaxConcurrentConnections + if dsja.DependsOn != nil { + objectMap["dependsOn"] = dsja.DependsOn } - if d2s.Type != "" { - objectMap["type"] = d2s.Type + if dsja.UserProperties != nil { + objectMap["userProperties"] = dsja.UserProperties } - for k, v := range d2s.AdditionalProperties { + if dsja.Type != "" { + objectMap["type"] = dsja.Type + } + for k, v := range dsja.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsWebSource() (*WebSource, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsOracleSource() (*OracleSource, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsHdfsSource() (*HdfsSource, bool) { - return nil, false +// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return &dsja, true } -// AsFileSystemSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsFileSystemSource() (*FileSystemSource, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsRestSource() (*RestSource, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsODataSource() (*ODataSource, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsRelationalSource() (*RelationalSource, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsWebActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsLookupActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDynamicsSource() (*DynamicsSource, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsDeleteActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsBlobSource() (*BlobSource, bool) { +// AsCustomActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsResponsysSource() (*ResponsysSource, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsVerticaSource() (*VerticaSource, bool) { +// AsCopyActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsNetezzaSource() (*NetezzaSource, bool) { +// AsExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsZohoSource() (*ZohoSource, bool) { - return nil, false +// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &dsja, true } -// AsXeroSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsXeroSource() (*XeroSource, bool) { +// AsWebHookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSquareSource() (*SquareSource, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSparkSource() (*SparkSource, bool) { +// AsSetVariableActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsShopifySource() (*ShopifySource, bool) { +// AsFilterActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsValidationActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsUntilActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsPrestoSource() (*PrestoSource, bool) { +// AsWaitActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsPhoenixSource() (*PhoenixSource, bool) { +// AsForEachActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsPaypalSource() (*PaypalSource, bool) { +// AsSwitchActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMarketoSource() (*MarketoSource, bool) { +// AsIfConditionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMariaDBSource() (*MariaDBSource, bool) { +// AsControlActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMagentoSource() (*MagentoSource, bool) { +// AsBasicControlActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsBasicControlActivity() (BasicControlActivity, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsJiraSource() (*JiraSource, bool) { +// AsActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false +// AsBasicActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsBasicActivity() (BasicActivity, bool) { + return &dsja, true } -// AsHubspotSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for DatabricksSparkJarActivity struct. +func (dsja *DatabricksSparkJarActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var databricksSparkJarActivityTypeProperties DatabricksSparkJarActivityTypeProperties + err = json.Unmarshal(*v, &databricksSparkJarActivityTypeProperties) + if err != nil { + return err + } + dsja.DatabricksSparkJarActivityTypeProperties = &databricksSparkJarActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dsja.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + dsja.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dsja.AdditionalProperties == nil { + dsja.AdditionalProperties = make(map[string]interface{}) + } + dsja.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dsja.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dsja.Description = &description + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + dsja.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + dsja.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dsja.Type = typeVar + } + } + } -// AsHiveSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsHiveSource() (*HiveSource, bool) { - return nil, false + return nil } -// AsHBaseSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsHBaseSource() (*HBaseSource, bool) { - return nil, false +// DatabricksSparkJarActivityTypeProperties databricks SparkJar activity properties. +type DatabricksSparkJarActivityTypeProperties struct { + // MainClassName - 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). + MainClassName interface{} `json:"mainClassName,omitempty"` + // Parameters - Parameters that will be passed to the main method. + Parameters *[]interface{} `json:"parameters,omitempty"` + // Libraries - A list of libraries to be installed on the cluster that will execute the job. + Libraries *[]map[string]interface{} `json:"libraries,omitempty"` } -// AsGreenplumSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false +// DatabricksSparkPythonActivity databricksSparkPython activity. +type DatabricksSparkPythonActivity struct { + // DatabricksSparkPythonActivityTypeProperties - Databricks SparkPython activity properties. + *DatabricksSparkPythonActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// AsGoogleBigQuerySource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) MarshalJSON() ([]byte, error) { + dspa.Type = TypeDatabricksSparkPython + objectMap := make(map[string]interface{}) + if dspa.DatabricksSparkPythonActivityTypeProperties != nil { + objectMap["typeProperties"] = dspa.DatabricksSparkPythonActivityTypeProperties + } + if dspa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dspa.LinkedServiceName + } + if dspa.Policy != nil { + objectMap["policy"] = dspa.Policy + } + if dspa.Name != nil { + objectMap["name"] = dspa.Name + } + if dspa.Description != nil { + objectMap["description"] = dspa.Description + } + if dspa.DependsOn != nil { + objectMap["dependsOn"] = dspa.DependsOn + } + if dspa.UserProperties != nil { + objectMap["userProperties"] = dspa.UserProperties + } + if dspa.Type != "" { + objectMap["type"] = dspa.Type + } + for k, v := range dspa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsEloquaSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsEloquaSource() (*EloquaSource, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDrillSource() (*DrillSource, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return &dspa, true } -// AsConcurSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsConcurSource() (*ConcurSource, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCassandraSource() (*CassandraSource, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsTeradataSource() (*TeradataSource, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSQLDWSource() (*SQLDWSource, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSQLMISource() (*SQLMISource, bool) { +// AsWebActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsLookupActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSQLServerSource() (*SQLServerSource, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSQLSource() (*SQLSource, bool) { +// AsDeleteActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapTableSource() (*SapTableSource, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsCustomActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapHanaSource() (*SapHanaSource, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapEccSource() (*SapEccSource, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSalesforceSource() (*SalesforceSource, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapBwSource() (*SapBwSource, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSybaseSource() (*SybaseSource, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsCopyActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMySQLSource() (*MySQLSource, bool) { +// AsExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsOdbcSource() (*OdbcSource, bool) { - return nil, false +// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &dspa, true } -// AsDb2Source is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDb2Source() (*Db2Source, bool) { - return &d2s, true +// AsWebHookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false } -// AsInformixSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsInformixSource() (*InformixSource, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureTableSource() (*AzureTableSource, bool) { +// AsSetVariableActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsTabularSource() (*TabularSource, bool) { +// AsFilterActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsBasicTabularSource() (BasicTabularSource, bool) { - return &d2s, true +// AsValidationActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsBinarySource() (*BinarySource, bool) { +// AsUntilActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsOrcSource() (*OrcSource, bool) { +// AsWaitActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsXMLSource() (*XMLSource, bool) { +// AsForEachActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsJSONSource() (*JSONSource, bool) { +// AsSwitchActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsIfConditionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsParquetSource() (*ParquetSource, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsExcelSource() (*ExcelSource, bool) { +// AsControlActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAvroSource() (*AvroSource, bool) { +// AsBasicControlActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsBasicControlActivity() (BasicControlActivity, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCopySource() (*CopySource, bool) { +// AsActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsBasicCopySource() (BasicCopySource, bool) { - return &d2s, true +// AsBasicActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsBasicActivity() (BasicActivity, bool) { + return &dspa, true } -// UnmarshalJSON is the custom unmarshaler for Db2Source struct. -func (d2s *Db2Source) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DatabricksSparkPythonActivity struct. +func (dspa *DatabricksSparkPythonActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -76467,32 +72529,32 @@ func (d2s *Db2Source) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var databricksSparkPythonActivityTypeProperties DatabricksSparkPythonActivityTypeProperties + err = json.Unmarshal(*v, &databricksSparkPythonActivityTypeProperties) if err != nil { return err } - d2s.Query = query + dspa.DatabricksSparkPythonActivityTypeProperties = &databricksSparkPythonActivityTypeProperties } - case "queryTimeout": + case "linkedServiceName": if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - d2s.QueryTimeout = queryTimeout + dspa.LinkedServiceName = &linkedServiceName } - case "additionalColumns": + case "policy": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) if err != nil { return err } - d2s.AdditionalColumns = &additionalColumns + dspa.Policy = &policy } default: if v != nil { @@ -76501,46 +72563,55 @@ func (d2s *Db2Source) UnmarshalJSON(body []byte) error { if err != nil { return err } - if d2s.AdditionalProperties == nil { - d2s.AdditionalProperties = make(map[string]interface{}) + if dspa.AdditionalProperties == nil { + dspa.AdditionalProperties = make(map[string]interface{}) } - d2s.AdditionalProperties[k] = additionalProperties + dspa.AdditionalProperties[k] = additionalProperties } - case "sourceRetryCount": + case "name": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - d2s.SourceRetryCount = sourceRetryCount + dspa.Name = &name } - case "sourceRetryWait": + case "description": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - d2s.SourceRetryWait = sourceRetryWait + dspa.Description = &description } - case "maxConcurrentConnections": + case "dependsOn": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) if err != nil { return err } - d2s.MaxConcurrentConnections = maxConcurrentConnections + dspa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + dspa.UserProperties = &userProperties } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicActivity err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - d2s.Type = typeVar + dspa.Type = typeVar } } } @@ -76548,10 +72619,118 @@ func (d2s *Db2Source) UnmarshalJSON(body []byte) error { return nil } -// Db2TableDataset the Db2 table dataset. -type Db2TableDataset struct { - // Db2TableDatasetTypeProperties - Db2 table dataset properties. - *Db2TableDatasetTypeProperties `json:"typeProperties,omitempty"` +// DatabricksSparkPythonActivityTypeProperties databricks SparkPython activity properties. +type DatabricksSparkPythonActivityTypeProperties struct { + // PythonFile - The URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType string). + PythonFile interface{} `json:"pythonFile,omitempty"` + // Parameters - Command line parameters that will be passed to the Python file. + Parameters *[]interface{} `json:"parameters,omitempty"` + // Libraries - A list of libraries to be installed on the cluster that will execute the job. + Libraries *[]map[string]interface{} `json:"libraries,omitempty"` +} + +// BasicDataset the Azure Data Factory nested object which identifies data within different data stores, such as +// tables, files, folders, and documents. +type BasicDataset interface { + AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) + AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) + AsSnowflakeDataset() (*SnowflakeDataset, bool) + AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) + AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) + AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) + AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) + AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) + AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) + AsVerticaTableDataset() (*VerticaTableDataset, bool) + AsNetezzaTableDataset() (*NetezzaTableDataset, bool) + AsZohoObjectDataset() (*ZohoObjectDataset, bool) + AsXeroObjectDataset() (*XeroObjectDataset, bool) + AsSquareObjectDataset() (*SquareObjectDataset, bool) + AsSparkObjectDataset() (*SparkObjectDataset, bool) + AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) + AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) + AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) + AsPrestoObjectDataset() (*PrestoObjectDataset, bool) + AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) + AsPaypalObjectDataset() (*PaypalObjectDataset, bool) + AsMarketoObjectDataset() (*MarketoObjectDataset, bool) + AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) + AsMariaDBTableDataset() (*MariaDBTableDataset, bool) + AsMagentoObjectDataset() (*MagentoObjectDataset, bool) + AsJiraObjectDataset() (*JiraObjectDataset, bool) + AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) + AsHubspotObjectDataset() (*HubspotObjectDataset, bool) + AsHiveObjectDataset() (*HiveObjectDataset, bool) + AsHBaseObjectDataset() (*HBaseObjectDataset, bool) + AsGreenplumTableDataset() (*GreenplumTableDataset, bool) + AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) + AsEloquaObjectDataset() (*EloquaObjectDataset, bool) + AsDrillTableDataset() (*DrillTableDataset, bool) + AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) + AsConcurObjectDataset() (*ConcurObjectDataset, bool) + AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) + AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) + AsHTTPDataset() (*HTTPDataset, bool) + AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) + AsWebTableDataset() (*WebTableDataset, bool) + AsSapTableResourceDataset() (*SapTableResourceDataset, bool) + AsRestResourceDataset() (*RestResourceDataset, bool) + AsSQLServerTableDataset() (*SQLServerTableDataset, bool) + AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) + AsSapHanaTableDataset() (*SapHanaTableDataset, bool) + AsSapEccResourceDataset() (*SapEccResourceDataset, bool) + AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) + AsSapBwCubeDataset() (*SapBwCubeDataset, bool) + AsSybaseTableDataset() (*SybaseTableDataset, bool) + AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) + AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) + AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) + AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) + AsMySQLTableDataset() (*MySQLTableDataset, bool) + AsOdbcTableDataset() (*OdbcTableDataset, bool) + AsInformixTableDataset() (*InformixTableDataset, bool) + AsRelationalTableDataset() (*RelationalTableDataset, bool) + AsDb2TableDataset() (*Db2TableDataset, bool) + AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) + AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) + AsTeradataTableDataset() (*TeradataTableDataset, bool) + AsOracleTableDataset() (*OracleTableDataset, bool) + AsODataResourceDataset() (*ODataResourceDataset, bool) + AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) + AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) + AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) + AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) + AsFileShareDataset() (*FileShareDataset, bool) + AsOffice365Dataset() (*Office365Dataset, bool) + AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) + AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) + AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) + AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) + AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) + AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) + AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) + AsCustomDataset() (*CustomDataset, bool) + AsCassandraTableDataset() (*CassandraTableDataset, bool) + AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) + AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) + AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) + AsAzureTableDataset() (*AzureTableDataset, bool) + AsAzureBlobDataset() (*AzureBlobDataset, bool) + AsBinaryDataset() (*BinaryDataset, bool) + AsOrcDataset() (*OrcDataset, bool) + AsXMLDataset() (*XMLDataset, bool) + AsJSONDataset() (*JSONDataset, bool) + AsDelimitedTextDataset() (*DelimitedTextDataset, bool) + AsParquetDataset() (*ParquetDataset, bool) + AsExcelDataset() (*ExcelDataset, bool) + AsAvroDataset() (*AvroDataset, bool) + AsAmazonS3Dataset() (*AmazonS3Dataset, bool) + AsDataset() (*Dataset, bool) +} + +// Dataset the Azure Data Factory nested object which identifies data within different data stores, such as +// tables, files, folders, and documents. +type Dataset struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -76572,520 +72751,922 @@ type Db2TableDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for Db2TableDataset. -func (d2td Db2TableDataset) MarshalJSON() ([]byte, error) { - d2td.Type = TypeDb2Table - objectMap := make(map[string]interface{}) - if d2td.Db2TableDatasetTypeProperties != nil { - objectMap["typeProperties"] = d2td.Db2TableDatasetTypeProperties +func unmarshalBasicDataset(body []byte) (BasicDataset, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err } - if d2td.Description != nil { - objectMap["description"] = d2td.Description + + switch m["type"] { + case string(TypeAzureDatabricksDeltaLakeDataset): + var addld AzureDatabricksDeltaLakeDataset + err := json.Unmarshal(body, &addld) + return addld, err + case string(TypeSharePointOnlineListResource): + var spolrd SharePointOnlineListResourceDataset + err := json.Unmarshal(body, &spolrd) + return spolrd, err + case string(TypeSnowflakeTable): + var sd SnowflakeDataset + err := json.Unmarshal(body, &sd) + return sd, err + case string(TypeGoogleAdWordsObject): + var gawod GoogleAdWordsObjectDataset + err := json.Unmarshal(body, &gawod) + return gawod, err + case string(TypeAzureDataExplorerTable): + var adetd AzureDataExplorerTableDataset + err := json.Unmarshal(body, &adetd) + return adetd, err + case string(TypeOracleServiceCloudObject): + var oscod OracleServiceCloudObjectDataset + err := json.Unmarshal(body, &oscod) + return oscod, err + case string(TypeDynamicsAXResource): + var dard DynamicsAXResourceDataset + err := json.Unmarshal(body, &dard) + return dard, err + case string(TypeResponsysObject): + var rod ResponsysObjectDataset + err := json.Unmarshal(body, &rod) + return rod, err + case string(TypeSalesforceMarketingCloudObject): + var smcod SalesforceMarketingCloudObjectDataset + err := json.Unmarshal(body, &smcod) + return smcod, err + case string(TypeVerticaTable): + var vtd VerticaTableDataset + err := json.Unmarshal(body, &vtd) + return vtd, err + case string(TypeNetezzaTable): + var ntd NetezzaTableDataset + err := json.Unmarshal(body, &ntd) + return ntd, err + case string(TypeZohoObject): + var zod ZohoObjectDataset + err := json.Unmarshal(body, &zod) + return zod, err + case string(TypeXeroObject): + var xod XeroObjectDataset + err := json.Unmarshal(body, &xod) + return xod, err + case string(TypeSquareObject): + var sod SquareObjectDataset + err := json.Unmarshal(body, &sod) + return sod, err + case string(TypeSparkObject): + var sod SparkObjectDataset + err := json.Unmarshal(body, &sod) + return sod, err + case string(TypeShopifyObject): + var sod ShopifyObjectDataset + err := json.Unmarshal(body, &sod) + return sod, err + case string(TypeServiceNowObject): + var snod ServiceNowObjectDataset + err := json.Unmarshal(body, &snod) + return snod, err + case string(TypeQuickBooksObject): + var qbod QuickBooksObjectDataset + err := json.Unmarshal(body, &qbod) + return qbod, err + case string(TypePrestoObject): + var pod PrestoObjectDataset + err := json.Unmarshal(body, &pod) + return pod, err + case string(TypePhoenixObject): + var pod PhoenixObjectDataset + err := json.Unmarshal(body, &pod) + return pod, err + case string(TypePaypalObject): + var pod PaypalObjectDataset + err := json.Unmarshal(body, &pod) + return pod, err + case string(TypeMarketoObject): + var mod MarketoObjectDataset + err := json.Unmarshal(body, &mod) + return mod, err + case string(TypeAzureMariaDBTable): + var amdtd AzureMariaDBTableDataset + err := json.Unmarshal(body, &amdtd) + return amdtd, err + case string(TypeMariaDBTable): + var mdtd MariaDBTableDataset + err := json.Unmarshal(body, &mdtd) + return mdtd, err + case string(TypeMagentoObject): + var mod MagentoObjectDataset + err := json.Unmarshal(body, &mod) + return mod, err + case string(TypeJiraObject): + var jod JiraObjectDataset + err := json.Unmarshal(body, &jod) + return jod, err + case string(TypeImpalaObject): + var iod ImpalaObjectDataset + err := json.Unmarshal(body, &iod) + return iod, err + case string(TypeHubspotObject): + var hod HubspotObjectDataset + err := json.Unmarshal(body, &hod) + return hod, err + case string(TypeHiveObject): + var hod HiveObjectDataset + err := json.Unmarshal(body, &hod) + return hod, err + case string(TypeHBaseObject): + var hbod HBaseObjectDataset + err := json.Unmarshal(body, &hbod) + return hbod, err + case string(TypeGreenplumTable): + var gtd GreenplumTableDataset + err := json.Unmarshal(body, >d) + return gtd, err + case string(TypeGoogleBigQueryObject): + var gbqod GoogleBigQueryObjectDataset + err := json.Unmarshal(body, &gbqod) + return gbqod, err + case string(TypeEloquaObject): + var eod EloquaObjectDataset + err := json.Unmarshal(body, &eod) + return eod, err + case string(TypeDrillTable): + var dtd DrillTableDataset + err := json.Unmarshal(body, &dtd) + return dtd, err + case string(TypeCouchbaseTable): + var ctd CouchbaseTableDataset + err := json.Unmarshal(body, &ctd) + return ctd, err + case string(TypeConcurObject): + var cod ConcurObjectDataset + err := json.Unmarshal(body, &cod) + return cod, err + case string(TypeAzurePostgreSQLTable): + var apstd AzurePostgreSQLTableDataset + err := json.Unmarshal(body, &apstd) + return apstd, err + case string(TypeAmazonMWSObject): + var amod AmazonMWSObjectDataset + err := json.Unmarshal(body, &amod) + return amod, err + case string(TypeHTTPFile): + var hd HTTPDataset + err := json.Unmarshal(body, &hd) + return hd, err + case string(TypeAzureSearchIndex): + var asid AzureSearchIndexDataset + err := json.Unmarshal(body, &asid) + return asid, err + case string(TypeWebTable): + var wtd WebTableDataset + err := json.Unmarshal(body, &wtd) + return wtd, err + case string(TypeSapTableResource): + var strd SapTableResourceDataset + err := json.Unmarshal(body, &strd) + return strd, err + case string(TypeRestResource): + var rrd RestResourceDataset + err := json.Unmarshal(body, &rrd) + return rrd, err + case string(TypeSQLServerTable): + var sstd SQLServerTableDataset + err := json.Unmarshal(body, &sstd) + return sstd, err + case string(TypeSapOpenHubTable): + var sohtd SapOpenHubTableDataset + err := json.Unmarshal(body, &sohtd) + return sohtd, err + case string(TypeSapHanaTable): + var shtd SapHanaTableDataset + err := json.Unmarshal(body, &shtd) + return shtd, err + case string(TypeSapEccResource): + var serd SapEccResourceDataset + err := json.Unmarshal(body, &serd) + return serd, err + case string(TypeSapCloudForCustomerResource): + var scfcrd SapCloudForCustomerResourceDataset + err := json.Unmarshal(body, &scfcrd) + return scfcrd, err + case string(TypeSapBwCube): + var sbcd SapBwCubeDataset + err := json.Unmarshal(body, &sbcd) + return sbcd, err + case string(TypeSybaseTable): + var std SybaseTableDataset + err := json.Unmarshal(body, &std) + return std, err + case string(TypeSalesforceServiceCloudObject): + var sscod SalesforceServiceCloudObjectDataset + err := json.Unmarshal(body, &sscod) + return sscod, err + case string(TypeSalesforceObject): + var sod SalesforceObjectDataset + err := json.Unmarshal(body, &sod) + return sod, err + case string(TypeMicrosoftAccessTable): + var matd MicrosoftAccessTableDataset + err := json.Unmarshal(body, &matd) + return matd, err + case string(TypePostgreSQLTable): + var pstd PostgreSQLTableDataset + err := json.Unmarshal(body, &pstd) + return pstd, err + case string(TypeMySQLTable): + var mstd MySQLTableDataset + err := json.Unmarshal(body, &mstd) + return mstd, err + case string(TypeOdbcTable): + var otd OdbcTableDataset + err := json.Unmarshal(body, &otd) + return otd, err + case string(TypeInformixTable): + var itd InformixTableDataset + err := json.Unmarshal(body, &itd) + return itd, err + case string(TypeRelationalTable): + var rtd RelationalTableDataset + err := json.Unmarshal(body, &rtd) + return rtd, err + case string(TypeDb2Table): + var d2td Db2TableDataset + err := json.Unmarshal(body, &d2td) + return d2td, err + case string(TypeAmazonRedshiftTable): + var artd AmazonRedshiftTableDataset + err := json.Unmarshal(body, &artd) + return artd, err + case string(TypeAzureMySQLTable): + var amstd AzureMySQLTableDataset + err := json.Unmarshal(body, &amstd) + return amstd, err + case string(TypeTeradataTable): + var ttd TeradataTableDataset + err := json.Unmarshal(body, &ttd) + return ttd, err + case string(TypeOracleTable): + var otd OracleTableDataset + err := json.Unmarshal(body, &otd) + return otd, err + case string(TypeODataResource): + var odrd ODataResourceDataset + err := json.Unmarshal(body, &odrd) + return odrd, err + case string(TypeCosmosDbMongoDbAPICollection): + var cdmdacd CosmosDbMongoDbAPICollectionDataset + err := json.Unmarshal(body, &cdmdacd) + return cdmdacd, err + case string(TypeMongoDbV2Collection): + var mdvcd MongoDbV2CollectionDataset + err := json.Unmarshal(body, &mdvcd) + return mdvcd, err + case string(TypeMongoDbAtlasCollection): + var mdacd MongoDbAtlasCollectionDataset + err := json.Unmarshal(body, &mdacd) + return mdacd, err + case string(TypeMongoDbCollection): + var mdcd MongoDbCollectionDataset + err := json.Unmarshal(body, &mdcd) + return mdcd, err + case string(TypeFileShare): + var fsd FileShareDataset + err := json.Unmarshal(body, &fsd) + return fsd, err + case string(TypeOffice365Table): + var o3d Office365Dataset + err := json.Unmarshal(body, &o3d) + return o3d, err + case string(TypeAzureBlobFSFile): + var abfd AzureBlobFSDataset + err := json.Unmarshal(body, &abfd) + return abfd, err + case string(TypeAzureDataLakeStoreFile): + var adlsd AzureDataLakeStoreDataset + err := json.Unmarshal(body, &adlsd) + return adlsd, err + case string(TypeCommonDataServiceForAppsEntity): + var cdsfaed CommonDataServiceForAppsEntityDataset + err := json.Unmarshal(body, &cdsfaed) + return cdsfaed, err + case string(TypeDynamicsCrmEntity): + var dced DynamicsCrmEntityDataset + err := json.Unmarshal(body, &dced) + return dced, err + case string(TypeDynamicsEntity): + var ded DynamicsEntityDataset + err := json.Unmarshal(body, &ded) + return ded, err + case string(TypeDocumentDbCollection): + var ddcd DocumentDbCollectionDataset + err := json.Unmarshal(body, &ddcd) + return ddcd, err + case string(TypeCosmosDbSQLAPICollection): + var cdsacd CosmosDbSQLAPICollectionDataset + err := json.Unmarshal(body, &cdsacd) + return cdsacd, err + case string(TypeCustomDataset): + var cd CustomDataset + err := json.Unmarshal(body, &cd) + return cd, err + case string(TypeCassandraTable): + var ctd CassandraTableDataset + err := json.Unmarshal(body, &ctd) + return ctd, err + case string(TypeAzureSQLDWTable): + var asdtd AzureSQLDWTableDataset + err := json.Unmarshal(body, &asdtd) + return asdtd, err + case string(TypeAzureSQLMITable): + var asmtd AzureSQLMITableDataset + err := json.Unmarshal(body, &asmtd) + return asmtd, err + case string(TypeAzureSQLTable): + var astd AzureSQLTableDataset + err := json.Unmarshal(body, &astd) + return astd, err + case string(TypeAzureTable): + var atd AzureTableDataset + err := json.Unmarshal(body, &atd) + return atd, err + case string(TypeAzureBlob): + var abd AzureBlobDataset + err := json.Unmarshal(body, &abd) + return abd, err + case string(TypeBinary): + var bd BinaryDataset + err := json.Unmarshal(body, &bd) + return bd, err + case string(TypeOrc): + var od OrcDataset + err := json.Unmarshal(body, &od) + return od, err + case string(TypeXML): + var xd XMLDataset + err := json.Unmarshal(body, &xd) + return xd, err + case string(TypeJSON): + var jd JSONDataset + err := json.Unmarshal(body, &jd) + return jd, err + case string(TypeDelimitedText): + var dtd DelimitedTextDataset + err := json.Unmarshal(body, &dtd) + return dtd, err + case string(TypeParquet): + var pd ParquetDataset + err := json.Unmarshal(body, &pd) + return pd, err + case string(TypeExcel): + var ed ExcelDataset + err := json.Unmarshal(body, &ed) + return ed, err + case string(TypeAvro): + var ad AvroDataset + err := json.Unmarshal(body, &ad) + return ad, err + case string(TypeAmazonS3Object): + var asd AmazonS3Dataset + err := json.Unmarshal(body, &asd) + return asd, err + default: + var d Dataset + err := json.Unmarshal(body, &d) + return d, err } - if d2td.Structure != nil { - objectMap["structure"] = d2td.Structure +} +func unmarshalBasicDatasetArray(body []byte) ([]BasicDataset, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err } - if d2td.Schema != nil { - objectMap["schema"] = d2td.Schema + + dArray := make([]BasicDataset, len(rawMessages)) + + for index, rawMessage := range rawMessages { + d, err := unmarshalBasicDataset(*rawMessage) + if err != nil { + return nil, err + } + dArray[index] = d } - if d2td.LinkedServiceName != nil { - objectMap["linkedServiceName"] = d2td.LinkedServiceName + return dArray, nil +} + +// MarshalJSON is the custom marshaler for Dataset. +func (d Dataset) MarshalJSON() ([]byte, error) { + d.Type = TypeDataset + objectMap := make(map[string]interface{}) + if d.Description != nil { + objectMap["description"] = d.Description } - if d2td.Parameters != nil { - objectMap["parameters"] = d2td.Parameters + if d.Structure != nil { + objectMap["structure"] = d.Structure } - if d2td.Annotations != nil { - objectMap["annotations"] = d2td.Annotations + if d.Schema != nil { + objectMap["schema"] = d.Schema } - if d2td.Folder != nil { - objectMap["folder"] = d2td.Folder + if d.LinkedServiceName != nil { + objectMap["linkedServiceName"] = d.LinkedServiceName } - if d2td.Type != "" { - objectMap["type"] = d2td.Type + if d.Parameters != nil { + objectMap["parameters"] = d.Parameters } - for k, v := range d2td.AdditionalProperties { + if d.Annotations != nil { + objectMap["annotations"] = d.Annotations + } + if d.Folder != nil { + objectMap["folder"] = d.Folder + } + if d.Type != "" { + objectMap["type"] = d.Type + } + for k, v := range d.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return &d2td, true +// AsDb2TableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDataset() (*Dataset, bool) { - return nil, false +// AsDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDataset() (*Dataset, bool) { + return &d, true } -// AsBasicDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsBasicDataset() (BasicDataset, bool) { - return &d2td, true +// AsBasicDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsBasicDataset() (BasicDataset, bool) { + return &d, true } -// UnmarshalJSON is the custom unmarshaler for Db2TableDataset struct. -func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for Dataset struct. +func (d *Dataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -77093,15 +73674,6 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var db2TableDatasetTypeProperties Db2TableDatasetTypeProperties - err = json.Unmarshal(*v, &db2TableDatasetTypeProperties) - if err != nil { - return err - } - d2td.Db2TableDatasetTypeProperties = &db2TableDatasetTypeProperties - } default: if v != nil { var additionalProperties interface{} @@ -77109,10 +73681,10 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if d2td.AdditionalProperties == nil { - d2td.AdditionalProperties = make(map[string]interface{}) + if d.AdditionalProperties == nil { + d.AdditionalProperties = make(map[string]interface{}) } - d2td.AdditionalProperties[k] = additionalProperties + d.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -77121,7 +73693,7 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - d2td.Description = &description + d.Description = &description } case "structure": if v != nil { @@ -77130,7 +73702,7 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - d2td.Structure = structure + d.Structure = structure } case "schema": if v != nil { @@ -77139,7 +73711,7 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - d2td.Schema = schema + d.Schema = schema } case "linkedServiceName": if v != nil { @@ -77148,7 +73720,7 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - d2td.LinkedServiceName = &linkedServiceName + d.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -77157,7 +73729,7 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - d2td.Parameters = parameters + d.Parameters = parameters } case "annotations": if v != nil { @@ -77166,7 +73738,7 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - d2td.Annotations = &annotations + d.Annotations = &annotations } case "folder": if v != nil { @@ -77175,7 +73747,7 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - d2td.Folder = &folder + d.Folder = &folder } case "type": if v != nil { @@ -77184,7 +73756,7 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - d2td.Type = typeVar + d.Type = typeVar } } } @@ -77192,274 +73764,234 @@ func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { return nil } -// Db2TableDatasetTypeProperties db2 table dataset properties. -type Db2TableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Schema - The Db2 schema name. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The Db2 table name. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// DeleteActivity delete activity. -type DeleteActivity struct { - // DeleteActivityTypeProperties - Delete activity properties. - *DeleteActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` +// DatasetBZip2Compression the BZip2 compression method used on a dataset. +type DatasetBZip2Compression struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` + // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' + Type TypeBasicDatasetCompression `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DeleteActivity. -func (da DeleteActivity) MarshalJSON() ([]byte, error) { - da.Type = TypeDelete +// MarshalJSON is the custom marshaler for DatasetBZip2Compression. +func (dbz2c DatasetBZip2Compression) MarshalJSON() ([]byte, error) { + dbz2c.Type = TypeBZip2 objectMap := make(map[string]interface{}) - if da.DeleteActivityTypeProperties != nil { - objectMap["typeProperties"] = da.DeleteActivityTypeProperties - } - if da.LinkedServiceName != nil { - objectMap["linkedServiceName"] = da.LinkedServiceName - } - if da.Policy != nil { - objectMap["policy"] = da.Policy - } - if da.Name != nil { - objectMap["name"] = da.Name - } - if da.Description != nil { - objectMap["description"] = da.Description - } - if da.DependsOn != nil { - objectMap["dependsOn"] = da.DependsOn - } - if da.UserProperties != nil { - objectMap["userProperties"] = da.UserProperties - } - if da.Type != "" { - objectMap["type"] = da.Type + if dbz2c.Type != "" { + objectMap["type"] = dbz2c.Type } - for k, v := range da.AdditionalProperties { + for k, v := range dbz2c.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsExecuteDataFlowActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return &da, true -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. +func (dbz2c DatasetBZip2Compression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. +func (dbz2c DatasetBZip2Compression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. +func (dbz2c DatasetBZip2Compression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. +func (dbz2c DatasetBZip2Compression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. +func (dbz2c DatasetBZip2Compression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false +// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetBZip2Compression. +func (dbz2c DatasetBZip2Compression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { + return &dbz2c, true } -// AsHDInsightHiveActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. +func (dbz2c DatasetBZip2Compression) AsDatasetCompression() (*DatasetCompression, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false +// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. +func (dbz2c DatasetBZip2Compression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { + return &dbz2c, true } -// AsExecutionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for DatasetBZip2Compression struct. +func (dbz2c *DatasetBZip2Compression) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dbz2c.AdditionalProperties == nil { + dbz2c.AdditionalProperties = make(map[string]interface{}) + } + dbz2c.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetCompression + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dbz2c.Type = typeVar + } + } + } -// AsBasicExecutionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &da, true + return nil } -// AsWebHookActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false +// BasicDatasetCompression the compression method used on a dataset. +type BasicDatasetCompression interface { + AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) + AsDatasetTarCompression() (*DatasetTarCompression, bool) + AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) + AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) + AsDatasetGZipCompression() (*DatasetGZipCompression, bool) + AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) + AsDatasetCompression() (*DatasetCompression, bool) } -// AsAppendVariableActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false +// DatasetCompression the compression method used on a dataset. +type DatasetCompression struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' + Type TypeBasicDatasetCompression `json:"type,omitempty"` } -// AsSetVariableActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} +func unmarshalBasicDatasetCompression(body []byte) (BasicDatasetCompression, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } -// AsFilterActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false + switch m["type"] { + case string(TypeTarGZip): + var dtgzc DatasetTarGZipCompression + err := json.Unmarshal(body, &dtgzc) + return dtgzc, err + case string(TypeTar): + var dtc DatasetTarCompression + err := json.Unmarshal(body, &dtc) + return dtc, err + case string(TypeZipDeflate): + var dzdc DatasetZipDeflateCompression + err := json.Unmarshal(body, &dzdc) + return dzdc, err + case string(TypeDeflate): + var ddc DatasetDeflateCompression + err := json.Unmarshal(body, &ddc) + return ddc, err + case string(TypeGZip): + var dgzc DatasetGZipCompression + err := json.Unmarshal(body, &dgzc) + return dgzc, err + case string(TypeBZip2): + var dbz2c DatasetBZip2Compression + err := json.Unmarshal(body, &dbz2c) + return dbz2c, err + default: + var dc DatasetCompression + err := json.Unmarshal(body, &dc) + return dc, err + } } +func unmarshalBasicDatasetCompressionArray(body []byte) ([]BasicDatasetCompression, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } -// AsValidationActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} + dcArray := make([]BasicDatasetCompression, len(rawMessages)) -// AsUntilActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false + for index, rawMessage := range rawMessages { + dc, err := unmarshalBasicDatasetCompression(*rawMessage) + if err != nil { + return nil, err + } + dcArray[index] = dc + } + return dcArray, nil } -// AsWaitActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false +// MarshalJSON is the custom marshaler for DatasetCompression. +func (dc DatasetCompression) MarshalJSON() ([]byte, error) { + dc.Type = TypeDatasetCompression + objectMap := make(map[string]interface{}) + if dc.Type != "" { + objectMap["type"] = dc.Type + } + for k, v := range dc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsForEachActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetCompression. +func (dc DatasetCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetCompression. +func (dc DatasetCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetCompression. +func (dc DatasetCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetCompression. +func (dc DatasetCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsControlActivity() (*ControlActivity, bool) { +// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetCompression. +func (dc DatasetCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsBasicControlActivity() (BasicControlActivity, bool) { +// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetCompression. +func (dc DatasetCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { return nil, false } -// AsActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsActivity() (*Activity, bool) { - return nil, false +// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetCompression. +func (dc DatasetCompression) AsDatasetCompression() (*DatasetCompression, bool) { + return &dc, true } -// AsBasicActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsBasicActivity() (BasicActivity, bool) { - return &da, true +// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetCompression. +func (dc DatasetCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { + return &dc, true } -// UnmarshalJSON is the custom unmarshaler for DeleteActivity struct. -func (da *DeleteActivity) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DatasetCompression struct. +func (dc *DatasetCompression) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -77467,33 +73999,6 @@ func (da *DeleteActivity) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var deleteActivityTypeProperties DeleteActivityTypeProperties - err = json.Unmarshal(*v, &deleteActivityTypeProperties) - if err != nil { - return err - } - da.DeleteActivityTypeProperties = &deleteActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - da.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - da.Policy = &policy - } default: if v != nil { var additionalProperties interface{} @@ -77501,55 +74006,19 @@ func (da *DeleteActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - if da.AdditionalProperties == nil { - da.AdditionalProperties = make(map[string]interface{}) - } - da.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - da.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - da.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - da.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err + if dc.AdditionalProperties == nil { + dc.AdditionalProperties = make(map[string]interface{}) } - da.UserProperties = &userProperties + dc.AdditionalProperties[k] = additionalProperties } case "type": if v != nil { - var typeVar TypeBasicActivity + var typeVar TypeBasicDatasetCompression err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - da.Type = typeVar + dc.Type = typeVar } } } @@ -77557,24 +74026,24 @@ func (da *DeleteActivity) UnmarshalJSON(body []byte) error { return nil } -// DeleteActivityTypeProperties delete activity properties. -type DeleteActivityTypeProperties struct { - // Recursive - If true, files or sub-folders under current folder path will be deleted recursively. Default is false. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // MaxConcurrentConnections - The max concurrent connections to connect data source at the same time. - MaxConcurrentConnections *int32 `json:"maxConcurrentConnections,omitempty"` - // EnableLogging - Whether to record detailed logs of delete-activity execution. Default value is false. Type: boolean (or Expression with resultType boolean). - EnableLogging interface{} `json:"enableLogging,omitempty"` - // LogStorageSettings - Log storage settings customer need to provide when enableLogging is true. - LogStorageSettings *LogStorageSettings `json:"logStorageSettings,omitempty"` - // Dataset - Delete activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // StoreSettings - Delete activity store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` +// DatasetDataElement columns that define the structure of the dataset. +type DatasetDataElement struct { + // Name - Name of the column. Type: string (or Expression with resultType string). + Name interface{} `json:"name,omitempty"` + // Type - Type of the column. Type: string (or Expression with resultType string). + Type interface{} `json:"type,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for DeleteActivityTypeProperties struct. -func (datp *DeleteActivityTypeProperties) UnmarshalJSON(body []byte) error { +// DatasetDebugResource dataset debug resource. +type DatasetDebugResource struct { + // Properties - Dataset properties. + Properties BasicDataset `json:"properties,omitempty"` + // Name - The resource name. + Name *string `json:"name,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DatasetDebugResource struct. +func (ddr *DatasetDebugResource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -77582,58 +74051,22 @@ func (datp *DeleteActivityTypeProperties) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - datp.Recursive = recursive - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections int32 - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - datp.MaxConcurrentConnections = &maxConcurrentConnections - } - case "enableLogging": - if v != nil { - var enableLogging interface{} - err = json.Unmarshal(*v, &enableLogging) - if err != nil { - return err - } - datp.EnableLogging = enableLogging - } - case "logStorageSettings": - if v != nil { - var logStorageSettings LogStorageSettings - err = json.Unmarshal(*v, &logStorageSettings) - if err != nil { - return err - } - datp.LogStorageSettings = &logStorageSettings - } - case "dataset": + case "properties": if v != nil { - var dataset DatasetReference - err = json.Unmarshal(*v, &dataset) + properties, err := unmarshalBasicDataset(*v) if err != nil { return err } - datp.Dataset = &dataset + ddr.Properties = properties } - case "storeSettings": + case "name": if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - datp.StoreSettings = storeSettings + ddr.Name = &name } } } @@ -77641,550 +74074,605 @@ func (datp *DeleteActivityTypeProperties) UnmarshalJSON(body []byte) error { return nil } -// DeleteDataFlowDebugSessionRequest request body structure for deleting data flow debug session. -type DeleteDataFlowDebugSessionRequest struct { - // SessionID - The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` -} - -// DelimitedTextDataset delimited text dataset. -type DelimitedTextDataset struct { - // DelimitedTextDatasetTypeProperties - Delimited text dataset properties. - *DelimitedTextDatasetTypeProperties `json:"typeProperties,omitempty"` +// DatasetDeflateCompression the Deflate compression method used on a dataset. +type DatasetDeflateCompression struct { + // Level - The Deflate compression level. + Level interface{} `json:"level,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' + Type TypeBasicDatasetCompression `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DelimitedTextDataset. -func (dtd DelimitedTextDataset) MarshalJSON() ([]byte, error) { - dtd.Type = TypeDelimitedText +// MarshalJSON is the custom marshaler for DatasetDeflateCompression. +func (ddc DatasetDeflateCompression) MarshalJSON() ([]byte, error) { + ddc.Type = TypeDeflate objectMap := make(map[string]interface{}) - if dtd.DelimitedTextDatasetTypeProperties != nil { - objectMap["typeProperties"] = dtd.DelimitedTextDatasetTypeProperties - } - if dtd.Description != nil { - objectMap["description"] = dtd.Description - } - if dtd.Structure != nil { - objectMap["structure"] = dtd.Structure - } - if dtd.Schema != nil { - objectMap["schema"] = dtd.Schema - } - if dtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dtd.LinkedServiceName - } - if dtd.Parameters != nil { - objectMap["parameters"] = dtd.Parameters - } - if dtd.Annotations != nil { - objectMap["annotations"] = dtd.Annotations - } - if dtd.Folder != nil { - objectMap["folder"] = dtd.Folder + if ddc.Level != nil { + objectMap["level"] = ddc.Level } - if dtd.Type != "" { - objectMap["type"] = dtd.Type + if ddc.Type != "" { + objectMap["type"] = ddc.Type } - for k, v := range dtd.AdditionalProperties { + for k, v := range ddc.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. +func (ddc DatasetDeflateCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. +func (ddc DatasetDeflateCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. +func (ddc DatasetDeflateCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false +// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. +func (ddc DatasetDeflateCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { + return &ddc, true } -// AsWebTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. +func (ddc DatasetDeflateCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetDeflateCompression. +func (ddc DatasetDeflateCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. +func (ddc DatasetDeflateCompression) AsDatasetCompression() (*DatasetCompression, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false +// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. +func (ddc DatasetDeflateCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { + return &ddc, true } -// AsSapOpenHubTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for DatasetDeflateCompression struct. +func (ddc *DatasetDeflateCompression) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "level": + if v != nil { + var level interface{} + err = json.Unmarshal(*v, &level) + if err != nil { + return err + } + ddc.Level = level + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ddc.AdditionalProperties == nil { + ddc.AdditionalProperties = make(map[string]interface{}) + } + ddc.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetCompression + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ddc.Type = typeVar + } + } + } -// AsSapHanaTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false + return nil } -// AsSapEccResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false +// DatasetFolder the folder that this Dataset is in. If not specified, Dataset will appear at the root +// level. +type DatasetFolder struct { + // Name - The name of the folder that this Dataset is in. + Name *string `json:"name,omitempty"` } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false +// DatasetGZipCompression the GZip compression method used on a dataset. +type DatasetGZipCompression struct { + // Level - The GZip compression level. + Level interface{} `json:"level,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' + Type TypeBasicDatasetCompression `json:"type,omitempty"` } -// AsSapBwCubeDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for DatasetGZipCompression. +func (dgzc DatasetGZipCompression) MarshalJSON() ([]byte, error) { + dgzc.Type = TypeGZip + objectMap := make(map[string]interface{}) + if dgzc.Level != nil { + objectMap["level"] = dgzc.Level + } + if dgzc.Type != "" { + objectMap["type"] = dgzc.Type + } + for k, v := range dgzc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsSybaseTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. +func (dgzc DatasetGZipCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. +func (dgzc DatasetGZipCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. +func (dgzc DatasetGZipCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. +func (dgzc DatasetGZipCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false +// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. +func (dgzc DatasetGZipCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { + return &dgzc, true } -// AsMySQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetGZipCompression. +func (dgzc DatasetGZipCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. +func (dgzc DatasetGZipCompression) AsDatasetCompression() (*DatasetCompression, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false +// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. +func (dgzc DatasetGZipCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { + return &dgzc, true } -// AsRelationalTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for DatasetGZipCompression struct. +func (dgzc *DatasetGZipCompression) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "level": + if v != nil { + var level interface{} + err = json.Unmarshal(*v, &level) + if err != nil { + return err + } + dgzc.Level = level + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dgzc.AdditionalProperties == nil { + dgzc.AdditionalProperties = make(map[string]interface{}) + } + dgzc.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetCompression + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dgzc.Type = typeVar + } + } + } + + return nil } -// AsDb2TableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false +// DatasetListResponse a list of dataset resources. +type DatasetListResponse struct { + autorest.Response `json:"-"` + // Value - List of datasets. + Value *[]DatasetResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false +// DatasetListResponseIterator provides access to a complete listing of DatasetResource values. +type DatasetListResponseIterator struct { + i int + page DatasetListResponsePage } -// AsAzureMySQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *DatasetListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatasetListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil } -// AsTeradataTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *DatasetListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) } -// AsOracleTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter DatasetListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// AsODataResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false +// Response returns the raw server response from the last page request. +func (iter DatasetListResponseIterator) Response() DatasetListResponse { + return iter.page.Response() } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter DatasetListResponseIterator) Value() DatasetResource { + if !iter.page.NotDone() { + return DatasetResource{} + } + return iter.page.Values()[iter.i] } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false +// Creates a new instance of the DatasetListResponseIterator type. +func NewDatasetListResponseIterator(page DatasetListResponsePage) DatasetListResponseIterator { + return DatasetListResponseIterator{page: page} } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false +// IsEmpty returns true if the ListResult contains no values. +func (dlr DatasetListResponse) IsEmpty() bool { + return dlr.Value == nil || len(*dlr.Value) == 0 } -// AsMongoDbCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false +// hasNextLink returns true if the NextLink is not empty. +func (dlr DatasetListResponse) hasNextLink() bool { + return dlr.NextLink != nil && len(*dlr.NextLink) != 0 } -// AsFileShareDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false +// datasetListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (dlr DatasetListResponse) datasetListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !dlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(dlr.NextLink))) } -// AsOffice365Dataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false +// DatasetListResponsePage contains a page of DatasetResource values. +type DatasetListResponsePage struct { + fn func(context.Context, DatasetListResponse) (DatasetListResponse, error) + dlr DatasetListResponse } -// AsAzureBlobFSDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *DatasetListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatasetListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.dlr) + if err != nil { + return err + } + page.dlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *DatasetListResponsePage) Next() error { + return page.NextWithContext(context.Background()) } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page DatasetListResponsePage) NotDone() bool { + return !page.dlr.IsEmpty() } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false +// Response returns the raw server response from the last page request. +func (page DatasetListResponsePage) Response() DatasetListResponse { + return page.dlr } -// AsDynamicsEntityDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false +// Values returns the slice of values for the current page or nil if there are no values. +func (page DatasetListResponsePage) Values() []DatasetResource { + if page.dlr.IsEmpty() { + return nil + } + return *page.dlr.Value } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false +// Creates a new instance of the DatasetListResponsePage type. +func NewDatasetListResponsePage(cur DatasetListResponse, getNextPage func(context.Context, DatasetListResponse) (DatasetListResponse, error)) DatasetListResponsePage { + return DatasetListResponsePage{ + fn: getNextPage, + dlr: cur, + } } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false +// BasicDatasetLocation dataset location. +type BasicDatasetLocation interface { + AsHdfsLocation() (*HdfsLocation, bool) + AsHTTPServerLocation() (*HTTPServerLocation, bool) + AsSftpLocation() (*SftpLocation, bool) + AsFtpServerLocation() (*FtpServerLocation, bool) + AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) + AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) + AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) + AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) + AsFileServerLocation() (*FileServerLocation, bool) + AsAmazonS3Location() (*AmazonS3Location, bool) + AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) + AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) + AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) + AsDatasetLocation() (*DatasetLocation, bool) } -// AsCustomDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false +// DatasetLocation dataset location. +type DatasetLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` } -// AsCassandraTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false +func unmarshalBasicDatasetLocation(body []byte) (BasicDatasetLocation, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeHdfsLocation): + var hl HdfsLocation + err := json.Unmarshal(body, &hl) + return hl, err + case string(TypeHTTPServerLocation): + var hsl HTTPServerLocation + err := json.Unmarshal(body, &hsl) + return hsl, err + case string(TypeSftpLocation): + var sl SftpLocation + err := json.Unmarshal(body, &sl) + return sl, err + case string(TypeFtpServerLocation): + var fsl FtpServerLocation + err := json.Unmarshal(body, &fsl) + return fsl, err + case string(TypeGoogleCloudStorageLocation): + var gcsl GoogleCloudStorageLocation + err := json.Unmarshal(body, &gcsl) + return gcsl, err + case string(TypeOracleCloudStorageLocation): + var ocsl OracleCloudStorageLocation + err := json.Unmarshal(body, &ocsl) + return ocsl, err + case string(TypeAmazonS3CompatibleLocation): + var ascl AmazonS3CompatibleLocation + err := json.Unmarshal(body, &ascl) + return ascl, err + case string(TypeAzureFileStorageLocation): + var afsl AzureFileStorageLocation + err := json.Unmarshal(body, &afsl) + return afsl, err + case string(TypeFileServerLocation): + var fsl FileServerLocation + err := json.Unmarshal(body, &fsl) + return fsl, err + case string(TypeAmazonS3Location): + var asl AmazonS3Location + err := json.Unmarshal(body, &asl) + return asl, err + case string(TypeAzureDataLakeStoreLocation): + var adlsl AzureDataLakeStoreLocation + err := json.Unmarshal(body, &adlsl) + return adlsl, err + case string(TypeAzureBlobFSLocation): + var abfl AzureBlobFSLocation + err := json.Unmarshal(body, &abfl) + return abfl, err + case string(TypeAzureBlobStorageLocation): + var absl AzureBlobStorageLocation + err := json.Unmarshal(body, &absl) + return absl, err + default: + var dl DatasetLocation + err := json.Unmarshal(body, &dl) + return dl, err + } } +func unmarshalBasicDatasetLocationArray(body []byte) ([]BasicDatasetLocation, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false + dlArray := make([]BasicDatasetLocation, len(rawMessages)) + + for index, rawMessage := range rawMessages { + dl, err := unmarshalBasicDatasetLocation(*rawMessage) + if err != nil { + return nil, err + } + dlArray[index] = dl + } + return dlArray, nil } -// AsAzureSQLMITableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for DatasetLocation. +func (dl DatasetLocation) MarshalJSON() ([]byte, error) { + dl.Type = TypeDatasetLocation + objectMap := make(map[string]interface{}) + if dl.FolderPath != nil { + objectMap["folderPath"] = dl.FolderPath + } + if dl.FileName != nil { + objectMap["fileName"] = dl.FileName + } + if dl.Type != "" { + objectMap["type"] = dl.Type + } + for k, v := range dl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsAzureSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsHdfsLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsHdfsLocation() (*HdfsLocation, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsHTTPServerLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsSftpLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsSftpLocation() (*SftpLocation, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsFtpServerLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return &dtd, true +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false } -// AsParquetDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsFileServerLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsFileServerLocation() (*FileServerLocation, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsAmazonS3Location is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDataset() (*Dataset, bool) { +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsBasicDataset() (BasicDataset, bool) { - return &dtd, true +// AsDatasetLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return &dl, true } -// UnmarshalJSON is the custom unmarshaler for DelimitedTextDataset struct. -func (dtd *DelimitedTextDataset) UnmarshalJSON(body []byte) error { +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &dl, true +} + +// UnmarshalJSON is the custom unmarshaler for DatasetLocation struct. +func (dl *DatasetLocation) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -78192,15 +74680,6 @@ func (dtd *DelimitedTextDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var delimitedTextDatasetTypeProperties DelimitedTextDatasetTypeProperties - err = json.Unmarshal(*v, &delimitedTextDatasetTypeProperties) - if err != nil { - return err - } - dtd.DelimitedTextDatasetTypeProperties = &delimitedTextDatasetTypeProperties - } default: if v != nil { var additionalProperties interface{} @@ -78208,82 +74687,37 @@ func (dtd *DelimitedTextDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if dtd.AdditionalProperties == nil { - dtd.AdditionalProperties = make(map[string]interface{}) - } - dtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - dtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - dtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err + if dl.AdditionalProperties == nil { + dl.AdditionalProperties = make(map[string]interface{}) } - dtd.Parameters = parameters + dl.AdditionalProperties[k] = additionalProperties } - case "annotations": + case "folderPath": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) if err != nil { return err } - dtd.Annotations = &annotations + dl.FolderPath = folderPath } - case "folder": + case "fileName": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var fileName interface{} + err = json.Unmarshal(*v, &fileName) if err != nil { return err } - dtd.Folder = &folder + dl.FileName = fileName } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicDatasetLocation err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dtd.Type = typeVar + dl.Type = typeVar } } } @@ -78291,31 +74725,55 @@ func (dtd *DelimitedTextDataset) UnmarshalJSON(body []byte) error { return nil } -// DelimitedTextDatasetTypeProperties delimitedText dataset properties. -type DelimitedTextDatasetTypeProperties struct { - // Location - The location of the delimited text storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // ColumnDelimiter - The column delimiter. Type: string (or Expression with resultType string). - ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` - // RowDelimiter - The row delimiter. Type: string (or Expression with resultType string). - RowDelimiter interface{} `json:"rowDelimiter,omitempty"` - // EncodingName - 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). - EncodingName interface{} `json:"encodingName,omitempty"` - CompressionCodec interface{} `json:"compressionCodec,omitempty"` - // CompressionLevel - The data compression method used for DelimitedText. - CompressionLevel interface{} `json:"compressionLevel,omitempty"` - // QuoteChar - The quote character. Type: string (or Expression with resultType string). - QuoteChar interface{} `json:"quoteChar,omitempty"` - // EscapeChar - The escape character. Type: string (or Expression with resultType string). - EscapeChar interface{} `json:"escapeChar,omitempty"` - // FirstRowAsHeader - 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). - FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` - // NullValue - The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` +// DatasetReference dataset reference type. +type DatasetReference struct { + // Type - Dataset reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference dataset name. + ReferenceName *string `json:"referenceName,omitempty"` + // Parameters - Arguments for dataset. + Parameters map[string]interface{} `json:"parameters"` } -// UnmarshalJSON is the custom unmarshaler for DelimitedTextDatasetTypeProperties struct. -func (dtdtp *DelimitedTextDatasetTypeProperties) UnmarshalJSON(body []byte) error { +// MarshalJSON is the custom marshaler for DatasetReference. +func (dr DatasetReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dr.Type != nil { + objectMap["type"] = dr.Type + } + if dr.ReferenceName != nil { + objectMap["referenceName"] = dr.ReferenceName + } + if dr.Parameters != nil { + objectMap["parameters"] = dr.Parameters + } + return json.Marshal(objectMap) +} + +// DatasetResource dataset resource type. +type DatasetResource struct { + autorest.Response `json:"-"` + // Properties - Dataset properties. + Properties BasicDataset `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatasetResource. +func (dr DatasetResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = dr.Properties + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DatasetResource struct. +func (dr *DatasetResource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -78323,94 +74781,119 @@ func (dtdtp *DelimitedTextDatasetTypeProperties) UnmarshalJSON(body []byte) erro } for k, v := range m { switch k { - case "location": - if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) - if err != nil { - return err - } - dtdtp.Location = location - } - case "columnDelimiter": + case "properties": if v != nil { - var columnDelimiter interface{} - err = json.Unmarshal(*v, &columnDelimiter) + properties, err := unmarshalBasicDataset(*v) if err != nil { return err } - dtdtp.ColumnDelimiter = columnDelimiter + dr.Properties = properties } - case "rowDelimiter": + case "id": if v != nil { - var rowDelimiter interface{} - err = json.Unmarshal(*v, &rowDelimiter) + var ID string + err = json.Unmarshal(*v, &ID) if err != nil { return err } - dtdtp.RowDelimiter = rowDelimiter + dr.ID = &ID } - case "encodingName": + case "name": if v != nil { - var encodingName interface{} - err = json.Unmarshal(*v, &encodingName) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - dtdtp.EncodingName = encodingName + dr.Name = &name } - case "compressionCodec": + case "type": if v != nil { - var compressionCodec interface{} - err = json.Unmarshal(*v, &compressionCodec) + var typeVar string + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dtdtp.CompressionCodec = compressionCodec + dr.Type = &typeVar } - case "compressionLevel": + case "etag": if v != nil { - var compressionLevel interface{} - err = json.Unmarshal(*v, &compressionLevel) + var etag string + err = json.Unmarshal(*v, &etag) if err != nil { return err } - dtdtp.CompressionLevel = compressionLevel + dr.Etag = &etag } - case "quoteChar": + } + } + + return nil +} + +// DatasetSchemaDataElement columns that define the physical type schema of the dataset. +type DatasetSchemaDataElement struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Name of the schema column. Type: string (or Expression with resultType string). + Name interface{} `json:"name,omitempty"` + // Type - Type of the schema column. Type: string (or Expression with resultType string). + Type interface{} `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatasetSchemaDataElement. +func (dsde DatasetSchemaDataElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dsde.Name != nil { + objectMap["name"] = dsde.Name + } + if dsde.Type != nil { + objectMap["type"] = dsde.Type + } + for k, v := range dsde.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DatasetSchemaDataElement struct. +func (dsde *DatasetSchemaDataElement) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: if v != nil { - var quoteChar interface{} - err = json.Unmarshal(*v, "eChar) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - dtdtp.QuoteChar = quoteChar - } - case "escapeChar": - if v != nil { - var escapeChar interface{} - err = json.Unmarshal(*v, &escapeChar) - if err != nil { - return err + if dsde.AdditionalProperties == nil { + dsde.AdditionalProperties = make(map[string]interface{}) } - dtdtp.EscapeChar = escapeChar + dsde.AdditionalProperties[k] = additionalProperties } - case "firstRowAsHeader": + case "name": if v != nil { - var firstRowAsHeader interface{} - err = json.Unmarshal(*v, &firstRowAsHeader) + var name interface{} + err = json.Unmarshal(*v, &name) if err != nil { return err } - dtdtp.FirstRowAsHeader = firstRowAsHeader + dsde.Name = name } - case "nullValue": + case "type": if v != nil { - var nullValue interface{} - err = json.Unmarshal(*v, &nullValue) + var typeVar interface{} + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dtdtp.NullValue = nullValue + dsde.Type = typeVar } } } @@ -78418,67 +74901,137 @@ func (dtdtp *DelimitedTextDatasetTypeProperties) UnmarshalJSON(body []byte) erro return nil } -// DelimitedTextReadSettings delimited text read settings. -type DelimitedTextReadSettings struct { - // SkipLineCount - Indicates the number of non-empty rows to skip when reading data from input files. Type: integer (or Expression with resultType integer). - SkipLineCount interface{} `json:"skipLineCount,omitempty"` - // CompressionProperties - Compression settings. - CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` +// BasicDatasetStorageFormat the format definition of a storage. +type BasicDatasetStorageFormat interface { + AsParquetFormat() (*ParquetFormat, bool) + AsOrcFormat() (*OrcFormat, bool) + AsAvroFormat() (*AvroFormat, bool) + AsJSONFormat() (*JSONFormat, bool) + AsTextFormat() (*TextFormat, bool) + AsDatasetStorageFormat() (*DatasetStorageFormat, bool) +} + +// DatasetStorageFormat the format definition of a storage. +type DatasetStorageFormat struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeFormatReadSettings', 'TypeBinaryReadSettings', 'TypeXMLReadSettings', 'TypeJSONReadSettings', 'TypeDelimitedTextReadSettings' - Type TypeBasicFormatReadSettings `json:"type,omitempty"` + // Serializer - Serializer. Type: string (or Expression with resultType string). + Serializer interface{} `json:"serializer,omitempty"` + // Deserializer - Deserializer. Type: string (or Expression with resultType string). + Deserializer interface{} `json:"deserializer,omitempty"` + // Type - Possible values include: 'TypeDatasetStorageFormat', 'TypeParquetFormat', 'TypeOrcFormat', 'TypeAvroFormat', 'TypeJSONFormat', 'TypeTextFormat' + Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) MarshalJSON() ([]byte, error) { - dtrs.Type = TypeDelimitedTextReadSettings +func unmarshalBasicDatasetStorageFormat(body []byte) (BasicDatasetStorageFormat, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeParquetFormat): + var pf ParquetFormat + err := json.Unmarshal(body, &pf) + return pf, err + case string(TypeOrcFormat): + var of OrcFormat + err := json.Unmarshal(body, &of) + return of, err + case string(TypeAvroFormat): + var af AvroFormat + err := json.Unmarshal(body, &af) + return af, err + case string(TypeJSONFormat): + var jf JSONFormat + err := json.Unmarshal(body, &jf) + return jf, err + case string(TypeTextFormat): + var tf TextFormat + err := json.Unmarshal(body, &tf) + return tf, err + default: + var dsf DatasetStorageFormat + err := json.Unmarshal(body, &dsf) + return dsf, err + } +} +func unmarshalBasicDatasetStorageFormatArray(body []byte) ([]BasicDatasetStorageFormat, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + dsfArray := make([]BasicDatasetStorageFormat, len(rawMessages)) + + for index, rawMessage := range rawMessages { + dsf, err := unmarshalBasicDatasetStorageFormat(*rawMessage) + if err != nil { + return nil, err + } + dsfArray[index] = dsf + } + return dsfArray, nil +} + +// MarshalJSON is the custom marshaler for DatasetStorageFormat. +func (dsf DatasetStorageFormat) MarshalJSON() ([]byte, error) { + dsf.Type = TypeDatasetStorageFormat objectMap := make(map[string]interface{}) - if dtrs.SkipLineCount != nil { - objectMap["skipLineCount"] = dtrs.SkipLineCount + if dsf.Serializer != nil { + objectMap["serializer"] = dsf.Serializer } - objectMap["compressionProperties"] = dtrs.CompressionProperties - if dtrs.Type != "" { - objectMap["type"] = dtrs.Type + if dsf.Deserializer != nil { + objectMap["deserializer"] = dsf.Deserializer } - for k, v := range dtrs.AdditionalProperties { + if dsf.Type != "" { + objectMap["type"] = dsf.Type + } + for k, v := range dsf.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsBinaryReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { +// AsParquetFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsParquetFormat() (*ParquetFormat, bool) { return nil, false } -// AsXMLReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { +// AsOrcFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsOrcFormat() (*OrcFormat, bool) { return nil, false } -// AsJSONReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { +// AsAvroFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsAvroFormat() (*AvroFormat, bool) { return nil, false } -// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { - return &dtrs, true +// AsJSONFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsJSONFormat() (*JSONFormat, bool) { + return nil, false } -// AsFormatReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { +// AsTextFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsTextFormat() (*TextFormat, bool) { return nil, false } -// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { - return &dtrs, true +// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { + return &dsf, true } -// UnmarshalJSON is the custom unmarshaler for DelimitedTextReadSettings struct. -func (dtrs *DelimitedTextReadSettings) UnmarshalJSON(body []byte) error { +// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { + return &dsf, true +} + +// UnmarshalJSON is the custom unmarshaler for DatasetStorageFormat struct. +func (dsf *DatasetStorageFormat) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -78486,43 +75039,44 @@ func (dtrs *DelimitedTextReadSettings) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "skipLineCount": + default: if v != nil { - var skipLineCount interface{} - err = json.Unmarshal(*v, &skipLineCount) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - dtrs.SkipLineCount = skipLineCount + if dsf.AdditionalProperties == nil { + dsf.AdditionalProperties = make(map[string]interface{}) + } + dsf.AdditionalProperties[k] = additionalProperties } - case "compressionProperties": + case "serializer": if v != nil { - compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) + var serializer interface{} + err = json.Unmarshal(*v, &serializer) if err != nil { return err } - dtrs.CompressionProperties = compressionProperties + dsf.Serializer = serializer } - default: + case "deserializer": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var deserializer interface{} + err = json.Unmarshal(*v, &deserializer) if err != nil { return err } - if dtrs.AdditionalProperties == nil { - dtrs.AdditionalProperties = make(map[string]interface{}) - } - dtrs.AdditionalProperties[k] = additionalProperties + dsf.Deserializer = deserializer } case "type": if v != nil { - var typeVar TypeBasicFormatReadSettings + var typeVar TypeBasicDatasetStorageFormat err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dtrs.Type = typeVar + dsf.Type = typeVar } } } @@ -78530,257 +75084,171 @@ func (dtrs *DelimitedTextReadSettings) UnmarshalJSON(body []byte) error { return nil } -// DelimitedTextSink a copy activity DelimitedText sink. -type DelimitedTextSink struct { - // StoreSettings - DelimitedText store settings. - StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` - // FormatSettings - DelimitedText format settings. - FormatSettings *DelimitedTextWriteSettings `json:"formatSettings,omitempty"` +// DatasetTarCompression the Tar archive method used on a dataset. +type DatasetTarCompression struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' + Type TypeBasicDatasetCompression `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DelimitedTextSink. -func (dts DelimitedTextSink) MarshalJSON() ([]byte, error) { - dts.Type = TypeDelimitedTextSink +// MarshalJSON is the custom marshaler for DatasetTarCompression. +func (dtc DatasetTarCompression) MarshalJSON() ([]byte, error) { + dtc.Type = TypeTar objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = dts.StoreSettings - if dts.FormatSettings != nil { - objectMap["formatSettings"] = dts.FormatSettings - } - if dts.WriteBatchSize != nil { - objectMap["writeBatchSize"] = dts.WriteBatchSize - } - if dts.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = dts.WriteBatchTimeout - } - if dts.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = dts.SinkRetryCount - } - if dts.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = dts.SinkRetryWait - } - if dts.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections - } - if dts.Type != "" { - objectMap["type"] = dts.Type - } - for k, v := range dts.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false + if dtc.Type != "" { + objectMap["type"] = dtc.Type + } + for k, v := range dtc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsSQLServerSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetTarCompression. +func (dtc DatasetTarCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSQLSink() (*SQLSink, bool) { - return nil, false +// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetTarCompression. +func (dtc DatasetTarCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { + return &dtc, true } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetTarCompression. +func (dtc DatasetTarCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetTarCompression. +func (dtc DatasetTarCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetTarCompression. +func (dtc DatasetTarCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsBlobSink() (*BlobSink, bool) { +// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetTarCompression. +func (dtc DatasetTarCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsBinarySink() (*BinarySink, bool) { +// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetTarCompression. +func (dtc DatasetTarCompression) AsDatasetCompression() (*DatasetCompression, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false +// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetTarCompression. +func (dtc DatasetTarCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { + return &dtc, true } -// AsAvroSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for DatasetTarCompression struct. +func (dtc *DatasetTarCompression) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dtc.AdditionalProperties == nil { + dtc.AdditionalProperties = make(map[string]interface{}) + } + dtc.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetCompression + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dtc.Type = typeVar + } + } + } -// AsAzureTableSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false + return nil } -// AsAzureQueueSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false +// DatasetTarGZipCompression the TarGZip compression method used on a dataset. +type DatasetTarGZipCompression struct { + // Level - The TarGZip compression level. + Level interface{} `json:"level,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' + Type TypeBasicDatasetCompression `json:"type,omitempty"` } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false +// MarshalJSON is the custom marshaler for DatasetTarGZipCompression. +func (dtgzc DatasetTarGZipCompression) MarshalJSON() ([]byte, error) { + dtgzc.Type = TypeTarGZip + objectMap := make(map[string]interface{}) + if dtgzc.Level != nil { + objectMap["level"] = dtgzc.Level + } + if dtgzc.Type != "" { + objectMap["type"] = dtgzc.Type + } + for k, v := range dtgzc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false +// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. +func (dtgzc DatasetTarGZipCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { + return &dtgzc, true } -// AsAzureMySQLSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. +func (dtgzc DatasetTarGZipCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. +func (dtgzc DatasetTarGZipCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsRestSink() (*RestSink, bool) { +// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. +func (dtgzc DatasetTarGZipCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsOrcSink() (*OrcSink, bool) { +// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. +func (dtgzc DatasetTarGZipCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsJSONSink() (*JSONSink, bool) { +// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. +func (dtgzc DatasetTarGZipCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return &dts, true -} - -// AsCopySink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsCopySink() (*CopySink, bool) { +// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. +func (dtgzc DatasetTarGZipCompression) AsDatasetCompression() (*DatasetCompression, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsBasicCopySink() (BasicCopySink, bool) { - return &dts, true +// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetTarGZipCompression. +func (dtgzc DatasetTarGZipCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { + return &dtgzc, true } -// UnmarshalJSON is the custom unmarshaler for DelimitedTextSink struct. -func (dts *DelimitedTextSink) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DatasetTarGZipCompression struct. +func (dtgzc *DatasetTarGZipCompression) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -78788,22 +75256,14 @@ func (dts *DelimitedTextSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreWriteSettings(*v) - if err != nil { - return err - } - dts.StoreSettings = storeSettings - } - case "formatSettings": + case "level": if v != nil { - var formatSettings DelimitedTextWriteSettings - err = json.Unmarshal(*v, &formatSettings) + var level interface{} + err = json.Unmarshal(*v, &level) if err != nil { return err } - dts.FormatSettings = &formatSettings + dtgzc.Level = level } default: if v != nil { @@ -78812,64 +75272,130 @@ func (dts *DelimitedTextSink) UnmarshalJSON(body []byte) error { if err != nil { return err } - if dts.AdditionalProperties == nil { - dts.AdditionalProperties = make(map[string]interface{}) - } - dts.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err + if dtgzc.AdditionalProperties == nil { + dtgzc.AdditionalProperties = make(map[string]interface{}) } - dts.WriteBatchSize = writeBatchSize + dtgzc.AdditionalProperties[k] = additionalProperties } - case "writeBatchTimeout": + case "type": if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) + var typeVar TypeBasicDatasetCompression + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dts.WriteBatchTimeout = writeBatchTimeout + dtgzc.Type = typeVar } - case "sinkRetryCount": + } + } + + return nil +} + +// DatasetZipDeflateCompression the ZipDeflate compression method used on a dataset. +type DatasetZipDeflateCompression struct { + // Level - The ZipDeflate compression level. + Level interface{} `json:"level,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeDatasetCompression', 'TypeTarGZip', 'TypeTar', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' + Type TypeBasicDatasetCompression `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatasetZipDeflateCompression. +func (dzdc DatasetZipDeflateCompression) MarshalJSON() ([]byte, error) { + dzdc.Type = TypeZipDeflate + objectMap := make(map[string]interface{}) + if dzdc.Level != nil { + objectMap["level"] = dzdc.Level + } + if dzdc.Type != "" { + objectMap["type"] = dzdc.Type + } + for k, v := range dzdc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsDatasetTarGZipCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. +func (dzdc DatasetZipDeflateCompression) AsDatasetTarGZipCompression() (*DatasetTarGZipCompression, bool) { + return nil, false +} + +// AsDatasetTarCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. +func (dzdc DatasetZipDeflateCompression) AsDatasetTarCompression() (*DatasetTarCompression, bool) { + return nil, false +} + +// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. +func (dzdc DatasetZipDeflateCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { + return &dzdc, true +} + +// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. +func (dzdc DatasetZipDeflateCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { + return nil, false +} + +// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. +func (dzdc DatasetZipDeflateCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { + return nil, false +} + +// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. +func (dzdc DatasetZipDeflateCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { + return nil, false +} + +// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. +func (dzdc DatasetZipDeflateCompression) AsDatasetCompression() (*DatasetCompression, bool) { + return nil, false +} + +// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. +func (dzdc DatasetZipDeflateCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { + return &dzdc, true +} + +// UnmarshalJSON is the custom unmarshaler for DatasetZipDeflateCompression struct. +func (dzdc *DatasetZipDeflateCompression) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "level": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var level interface{} + err = json.Unmarshal(*v, &level) if err != nil { return err } - dts.SinkRetryCount = sinkRetryCount + dzdc.Level = level } - case "sinkRetryWait": + default: if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - dts.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err + if dzdc.AdditionalProperties == nil { + dzdc.AdditionalProperties = make(map[string]interface{}) } - dts.MaxConcurrentConnections = maxConcurrentConnections + dzdc.AdditionalProperties[k] = additionalProperties } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicDatasetCompression err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dts.Type = typeVar + dzdc.Type = typeVar } } } @@ -78877,537 +75403,564 @@ func (dts *DelimitedTextSink) UnmarshalJSON(body []byte) error { return nil } -// DelimitedTextSource a copy activity DelimitedText source. -type DelimitedTextSource struct { - // StoreSettings - DelimitedText store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // FormatSettings - DelimitedText format settings. - FormatSettings *DelimitedTextReadSettings `json:"formatSettings,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// Db2LinkedService linked service for DB2 data source. +type Db2LinkedService struct { + // Db2LinkedServiceTypeProperties - DB2 linked service properties. + *Db2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DelimitedTextSource. -func (dts DelimitedTextSource) MarshalJSON() ([]byte, error) { - dts.Type = TypeDelimitedTextSource +// MarshalJSON is the custom marshaler for Db2LinkedService. +func (d2ls Db2LinkedService) MarshalJSON() ([]byte, error) { + d2ls.Type = TypeDb2 objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = dts.StoreSettings - if dts.FormatSettings != nil { - objectMap["formatSettings"] = dts.FormatSettings + if d2ls.Db2LinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = d2ls.Db2LinkedServiceTypeProperties } - if dts.AdditionalColumns != nil { - objectMap["additionalColumns"] = dts.AdditionalColumns + if d2ls.ConnectVia != nil { + objectMap["connectVia"] = d2ls.ConnectVia } - if dts.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = dts.SourceRetryCount + if d2ls.Description != nil { + objectMap["description"] = d2ls.Description } - if dts.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = dts.SourceRetryWait + if d2ls.Parameters != nil { + objectMap["parameters"] = d2ls.Parameters } - if dts.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections + if d2ls.Annotations != nil { + objectMap["annotations"] = d2ls.Annotations } - if dts.Type != "" { - objectMap["type"] = dts.Type + if d2ls.Type != "" { + objectMap["type"] = d2ls.Type } - for k, v := range dts.AdditionalProperties { + for k, v := range d2ls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsHTTPSource() (*HTTPSource, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsOffice365Source() (*Office365Source, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsWebSource() (*WebSource, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsOracleSource() (*OracleSource, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsHdfsSource() (*HdfsSource, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsRestSource() (*RestSource, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsODataSource() (*ODataSource, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsRelationalSource() (*RelationalSource, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsBlobSource() (*BlobSource, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsVerticaSource() (*VerticaSource, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsZohoSource() (*ZohoSource, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsXeroSource() (*XeroSource, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSquareSource() (*SquareSource, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSparkSource() (*SparkSource, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsShopifySource() (*ShopifySource, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsPrestoSource() (*PrestoSource, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMagentoSource() (*MagentoSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsJiraSource() (*JiraSource, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsHubspotSource() (*HubspotSource, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsHiveSource() (*HiveSource, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsHBaseSource() (*HBaseSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsEloquaSource() (*EloquaSource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDrillSource() (*DrillSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsConcurSource() (*ConcurSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCassandraSource() (*CassandraSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsTeradataSource() (*TeradataSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSQLMISource() (*SQLMISource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSQLSource() (*SQLSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapTableSource() (*SapTableSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapEccSource() (*SapEccSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return &d2ls, true +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapBwSource() (*SapBwSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSybaseSource() (*SybaseSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMySQLSource() (*MySQLSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsOdbcSource() (*OdbcSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDb2Source() (*Db2Source, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsInformixSource() (*InformixSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsTabularSource() (*TabularSource, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsBinarySource() (*BinarySource, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsOrcSource() (*OrcSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsXMLSource() (*XMLSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsJSONSource() (*JSONSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return &dts, true +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false } -// AsParquetSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAvroSource() (*AvroSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCopySource() (*CopySource, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsBasicCopySource() (BasicCopySource, bool) { - return &dts, true +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for DelimitedTextSource struct. -func (dts *DelimitedTextSource) UnmarshalJSON(body []byte) error { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &d2ls, true +} + +// UnmarshalJSON is the custom unmarshaler for Db2LinkedService struct. +func (d2ls *Db2LinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -79415,79 +75968,71 @@ func (dts *DelimitedTextSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "storeSettings": + case "typeProperties": if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) + var db2LinkedServiceTypeProperties Db2LinkedServiceTypeProperties + err = json.Unmarshal(*v, &db2LinkedServiceTypeProperties) if err != nil { return err } - dts.StoreSettings = storeSettings + d2ls.Db2LinkedServiceTypeProperties = &db2LinkedServiceTypeProperties } - case "formatSettings": + default: if v != nil { - var formatSettings DelimitedTextReadSettings - err = json.Unmarshal(*v, &formatSettings) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - dts.FormatSettings = &formatSettings - } - case "additionalColumns": - if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err + if d2ls.AdditionalProperties == nil { + d2ls.AdditionalProperties = make(map[string]interface{}) } - dts.AdditionalColumns = &additionalColumns + d2ls.AdditionalProperties[k] = additionalProperties } - default: + case "connectVia": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - if dts.AdditionalProperties == nil { - dts.AdditionalProperties = make(map[string]interface{}) - } - dts.AdditionalProperties[k] = additionalProperties + d2ls.ConnectVia = &connectVia } - case "sourceRetryCount": + case "description": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - dts.SourceRetryCount = sourceRetryCount + d2ls.Description = &description } - case "sourceRetryWait": + case "parameters": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - dts.SourceRetryWait = sourceRetryWait + d2ls.Parameters = parameters } - case "maxConcurrentConnections": + case "annotations": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - dts.MaxConcurrentConnections = maxConcurrentConnections + d2ls.Annotations = &annotations } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicLinkedService err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dts.Type = typeVar + d2ls.Type = typeVar } } } @@ -79495,84 +76040,30 @@ func (dts *DelimitedTextSource) UnmarshalJSON(body []byte) error { return nil } -// DelimitedTextWriteSettings delimited text write settings. -type DelimitedTextWriteSettings struct { - // QuoteAllText - Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean). - QuoteAllText interface{} `json:"quoteAllText,omitempty"` - // FileExtension - The file extension used to create the files. Type: string (or Expression with resultType string). - FileExtension interface{} `json:"fileExtension,omitempty"` - // MaxRowsPerFile - Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer). - MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` - // FileNamePrefix - Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression with resultType string). - FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeFormatWriteSettings', 'TypeJSONWriteSettings', 'TypeDelimitedTextWriteSettings', 'TypeOrcWriteSettings', 'TypeAvroWriteSettings', 'TypeParquetWriteSettings' - Type TypeBasicFormatWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) MarshalJSON() ([]byte, error) { - dtws.Type = TypeDelimitedTextWriteSettings - objectMap := make(map[string]interface{}) - if dtws.QuoteAllText != nil { - objectMap["quoteAllText"] = dtws.QuoteAllText - } - if dtws.FileExtension != nil { - objectMap["fileExtension"] = dtws.FileExtension - } - if dtws.MaxRowsPerFile != nil { - objectMap["maxRowsPerFile"] = dtws.MaxRowsPerFile - } - if dtws.FileNamePrefix != nil { - objectMap["fileNamePrefix"] = dtws.FileNamePrefix - } - if dtws.Type != "" { - objectMap["type"] = dtws.Type - } - for k, v := range dtws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { - return nil, false -} - -// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { - return &dtws, true -} - -// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { - return nil, false -} - -// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { - return nil, false -} - -// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { - return nil, false -} - -// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { - return nil, false -} - -// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { - return &dtws, true +// Db2LinkedServiceTypeProperties dB2 linked service properties. +type Db2LinkedServiceTypeProperties struct { + // ConnectionString - The connection string. It is mutually exclusive with server, database, authenticationType, userName, packageCollection and certificateCommonName property. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Server - Server name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // Database - Database name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). + Database interface{} `json:"database,omitempty"` + // AuthenticationType - AuthenticationType to be used for connection. It is mutually exclusive with connectionString property. Possible values include: 'Basic' + AuthenticationType Db2AuthenticationType `json:"authenticationType,omitempty"` + // Username - Username for authentication. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - Password for authentication. + Password BasicSecretBase `json:"password,omitempty"` + // PackageCollection - Under where packages are created when querying database. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). + PackageCollection interface{} `json:"packageCollection,omitempty"` + // CertificateCommonName - Certificate Common Name when TLS is enabled. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). + CertificateCommonName interface{} `json:"certificateCommonName,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for DelimitedTextWriteSettings struct. -func (dtws *DelimitedTextWriteSettings) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for Db2LinkedServiceTypeProperties struct. +func (d2lstp *Db2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -79580,62 +76071,85 @@ func (dtws *DelimitedTextWriteSettings) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "quoteAllText": + case "connectionString": if v != nil { - var quoteAllText interface{} - err = json.Unmarshal(*v, "eAllText) + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) if err != nil { return err } - dtws.QuoteAllText = quoteAllText + d2lstp.ConnectionString = connectionString } - case "fileExtension": + case "server": if v != nil { - var fileExtension interface{} - err = json.Unmarshal(*v, &fileExtension) + var server interface{} + err = json.Unmarshal(*v, &server) if err != nil { return err } - dtws.FileExtension = fileExtension + d2lstp.Server = server } - case "maxRowsPerFile": + case "database": if v != nil { - var maxRowsPerFile interface{} - err = json.Unmarshal(*v, &maxRowsPerFile) + var databaseVar interface{} + err = json.Unmarshal(*v, &databaseVar) if err != nil { return err } - dtws.MaxRowsPerFile = maxRowsPerFile + d2lstp.Database = databaseVar } - case "fileNamePrefix": + case "authenticationType": if v != nil { - var fileNamePrefix interface{} - err = json.Unmarshal(*v, &fileNamePrefix) + var authenticationType Db2AuthenticationType + err = json.Unmarshal(*v, &authenticationType) if err != nil { return err } - dtws.FileNamePrefix = fileNamePrefix + d2lstp.AuthenticationType = authenticationType } - default: + case "username": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var username interface{} + err = json.Unmarshal(*v, &username) if err != nil { return err } - if dtws.AdditionalProperties == nil { - dtws.AdditionalProperties = make(map[string]interface{}) + d2lstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err } - dtws.AdditionalProperties[k] = additionalProperties + d2lstp.Password = password } - case "type": + case "packageCollection": if v != nil { - var typeVar TypeBasicFormatWriteSettings - err = json.Unmarshal(*v, &typeVar) + var packageCollection interface{} + err = json.Unmarshal(*v, &packageCollection) + if err != nil { + return err + } + d2lstp.PackageCollection = packageCollection + } + case "certificateCommonName": + if v != nil { + var certificateCommonName interface{} + err = json.Unmarshal(*v, &certificateCommonName) + if err != nil { + return err + } + d2lstp.CertificateCommonName = certificateCommonName + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) if err != nil { return err } - dtws.Type = typeVar + d2lstp.EncryptedCredential = encryptedCredential } } } @@ -79643,654 +76157,539 @@ func (dtws *DelimitedTextWriteSettings) UnmarshalJSON(body []byte) error { return nil } -// BasicDependencyReference referenced dependency. -type BasicDependencyReference interface { - AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) - AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) - AsTriggerDependencyReference() (*TriggerDependencyReference, bool) - AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) - AsDependencyReference() (*DependencyReference, bool) -} - -// DependencyReference referenced dependency. -type DependencyReference struct { - // Type - Possible values include: 'TypeDependencyReference', 'TypeSelfDependencyTumblingWindowTriggerReference', 'TypeTumblingWindowTriggerDependencyReference', 'TypeTriggerDependencyReference' - Type TypeBasicDependencyReference `json:"type,omitempty"` -} - -func unmarshalBasicDependencyReference(body []byte) (BasicDependencyReference, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeSelfDependencyTumblingWindowTriggerReference): - var sdtwtr SelfDependencyTumblingWindowTriggerReference - err := json.Unmarshal(body, &sdtwtr) - return sdtwtr, err - case string(TypeTumblingWindowTriggerDependencyReference): - var twtdr TumblingWindowTriggerDependencyReference - err := json.Unmarshal(body, &twtdr) - return twtdr, err - case string(TypeTriggerDependencyReference): - var tdr TriggerDependencyReference - err := json.Unmarshal(body, &tdr) - return tdr, err - default: - var dr DependencyReference - err := json.Unmarshal(body, &dr) - return dr, err - } -} -func unmarshalBasicDependencyReferenceArray(body []byte) ([]BasicDependencyReference, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - drArray := make([]BasicDependencyReference, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dr, err := unmarshalBasicDependencyReference(*rawMessage) - if err != nil { - return nil, err - } - drArray[index] = dr - } - return drArray, nil -} - -// MarshalJSON is the custom marshaler for DependencyReference. -func (dr DependencyReference) MarshalJSON() ([]byte, error) { - dr.Type = TypeDependencyReference - objectMap := make(map[string]interface{}) - if dr.Type != "" { - objectMap["type"] = dr.Type - } - return json.Marshal(objectMap) -} - -// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { - return nil, false -} - -// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { - return nil, false -} - -// AsTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { - return nil, false -} - -// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { - return nil, false -} - -// AsDependencyReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsDependencyReference() (*DependencyReference, bool) { - return &dr, true -} - -// AsBasicDependencyReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { - return &dr, true -} - -// DistcpSettings distcp settings. -type DistcpSettings struct { - // ResourceManagerEndpoint - Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). - ResourceManagerEndpoint interface{} `json:"resourceManagerEndpoint,omitempty"` - // TempScriptPath - Specifies an existing folder path which will be used to store temp Distcp command script. The script file is generated by ADF and will be removed after Copy job finished. Type: string (or Expression with resultType string). - TempScriptPath interface{} `json:"tempScriptPath,omitempty"` - // DistcpOptions - Specifies the Distcp options. Type: string (or Expression with resultType string). - DistcpOptions interface{} `json:"distcpOptions,omitempty"` -} - -// DocumentDbCollectionDataset microsoft Azure Document Database Collection dataset. -type DocumentDbCollectionDataset struct { - // DocumentDbCollectionDatasetTypeProperties - DocumentDB Collection dataset properties. - *DocumentDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` +// Db2Source a copy activity source for Db2 databases. +type Db2Source struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) MarshalJSON() ([]byte, error) { - ddcd.Type = TypeDocumentDbCollection +// MarshalJSON is the custom marshaler for Db2Source. +func (d2s Db2Source) MarshalJSON() ([]byte, error) { + d2s.Type = TypeDb2Source objectMap := make(map[string]interface{}) - if ddcd.DocumentDbCollectionDatasetTypeProperties != nil { - objectMap["typeProperties"] = ddcd.DocumentDbCollectionDatasetTypeProperties - } - if ddcd.Description != nil { - objectMap["description"] = ddcd.Description - } - if ddcd.Structure != nil { - objectMap["structure"] = ddcd.Structure + if d2s.Query != nil { + objectMap["query"] = d2s.Query } - if ddcd.Schema != nil { - objectMap["schema"] = ddcd.Schema + if d2s.QueryTimeout != nil { + objectMap["queryTimeout"] = d2s.QueryTimeout } - if ddcd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ddcd.LinkedServiceName + if d2s.AdditionalColumns != nil { + objectMap["additionalColumns"] = d2s.AdditionalColumns } - if ddcd.Parameters != nil { - objectMap["parameters"] = ddcd.Parameters + if d2s.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = d2s.SourceRetryCount } - if ddcd.Annotations != nil { - objectMap["annotations"] = ddcd.Annotations + if d2s.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = d2s.SourceRetryWait } - if ddcd.Folder != nil { - objectMap["folder"] = ddcd.Folder + if d2s.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = d2s.MaxConcurrentConnections } - if ddcd.Type != "" { - objectMap["type"] = ddcd.Type + if d2s.Type != "" { + objectMap["type"] = d2s.Type } - for k, v := range ddcd.AdditionalProperties { + for k, v := range d2s.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsHTTPSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOffice365Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsMongoDbSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsWebSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsOracleSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsHdfsSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsFileSystemSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsRestSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsODataSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsRelationalSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsDynamicsSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsBlobSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsResponsysSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsVerticaSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsNetezzaSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsZohoSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsXeroSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSquareSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsSparkSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsShopifySource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsServiceNowSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsPrestoSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsPhoenixSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsPaypalSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return &ddcd, true +// AsSalesforceSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false +// AsDb2Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDb2Source() (*Db2Source, bool) { + return &d2s, true } -// AsAzureTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsBasicTabularSource() (BasicTabularSource, bool) { + return &d2s, true +} + +// AsBinarySource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAvroSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDataset() (*Dataset, bool) { +// AsCopySource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsBasicDataset() (BasicDataset, bool) { - return &ddcd, true +// AsBasicCopySource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsBasicCopySource() (BasicCopySource, bool) { + return &d2s, true } -// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionDataset struct. -func (ddcd *DocumentDbCollectionDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for Db2Source struct. +func (d2s *Db2Source) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -80298,98 +76697,80 @@ func (ddcd *DocumentDbCollectionDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var documentDbCollectionDatasetTypeProperties DocumentDbCollectionDatasetTypeProperties - err = json.Unmarshal(*v, &documentDbCollectionDatasetTypeProperties) - if err != nil { - return err - } - ddcd.DocumentDbCollectionDatasetTypeProperties = &documentDbCollectionDatasetTypeProperties - } - default: + case "query": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - if ddcd.AdditionalProperties == nil { - ddcd.AdditionalProperties = make(map[string]interface{}) - } - ddcd.AdditionalProperties[k] = additionalProperties + d2s.Query = query } - case "description": + case "queryTimeout": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - ddcd.Description = &description + d2s.QueryTimeout = queryTimeout } - case "structure": + case "additionalColumns": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - ddcd.Structure = structure + d2s.AdditionalColumns = &additionalColumns } - case "schema": + default: if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - ddcd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err + if d2s.AdditionalProperties == nil { + d2s.AdditionalProperties = make(map[string]interface{}) } - ddcd.LinkedServiceName = &linkedServiceName + d2s.AdditionalProperties[k] = additionalProperties } - case "parameters": + case "sourceRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - ddcd.Parameters = parameters + d2s.SourceRetryCount = sourceRetryCount } - case "annotations": + case "sourceRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - ddcd.Annotations = &annotations + d2s.SourceRetryWait = sourceRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - ddcd.Folder = &folder + d2s.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - ddcd.Type = typeVar + d2s.Type = typeVar } } } @@ -80397,900 +76778,918 @@ func (ddcd *DocumentDbCollectionDataset) UnmarshalJSON(body []byte) error { return nil } -// DocumentDbCollectionDatasetTypeProperties documentDB Collection dataset properties. -type DocumentDbCollectionDatasetTypeProperties struct { - // CollectionName - Document Database collection name. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` -} - -// DocumentDbCollectionSink a copy activity Document Database Collection sink. -type DocumentDbCollectionSink struct { - // NestingSeparator - Nested properties separator. Default is . (dot). Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` - // WriteBehavior - Describes how to write data to Azure Cosmos DB. Type: string (or Expression with resultType string). Allowed values: insert and upsert. - WriteBehavior interface{} `json:"writeBehavior,omitempty"` +// Db2TableDataset the Db2 table dataset. +type Db2TableDataset struct { + // Db2TableDatasetTypeProperties - Db2 table dataset properties. + *Db2TableDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) MarshalJSON() ([]byte, error) { - ddcs.Type = TypeDocumentDbCollectionSink +// MarshalJSON is the custom marshaler for Db2TableDataset. +func (d2td Db2TableDataset) MarshalJSON() ([]byte, error) { + d2td.Type = TypeDb2Table objectMap := make(map[string]interface{}) - if ddcs.NestingSeparator != nil { - objectMap["nestingSeparator"] = ddcs.NestingSeparator + if d2td.Db2TableDatasetTypeProperties != nil { + objectMap["typeProperties"] = d2td.Db2TableDatasetTypeProperties } - if ddcs.WriteBehavior != nil { - objectMap["writeBehavior"] = ddcs.WriteBehavior + if d2td.Description != nil { + objectMap["description"] = d2td.Description } - if ddcs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ddcs.WriteBatchSize + if d2td.Structure != nil { + objectMap["structure"] = d2td.Structure } - if ddcs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ddcs.WriteBatchTimeout + if d2td.Schema != nil { + objectMap["schema"] = d2td.Schema } - if ddcs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ddcs.SinkRetryCount + if d2td.LinkedServiceName != nil { + objectMap["linkedServiceName"] = d2td.LinkedServiceName } - if ddcs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ddcs.SinkRetryWait + if d2td.Parameters != nil { + objectMap["parameters"] = d2td.Parameters } - if ddcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections + if d2td.Annotations != nil { + objectMap["annotations"] = d2td.Annotations } - if ddcs.Type != "" { - objectMap["type"] = ddcs.Type + if d2td.Folder != nil { + objectMap["folder"] = d2td.Folder } - for k, v := range ddcs.AdditionalProperties { + if d2td.Type != "" { + objectMap["type"] = d2td.Type + } + for k, v := range d2td.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSQLMISink() (*SQLMISink, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSQLSink() (*SQLSink, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return &ddcs, true -} - -// AsFileSystemSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsBlobSink() (*BlobSink, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsBinarySink() (*BinarySink, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsParquetSink() (*ParquetSink, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAvroSink() (*AvroSink, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsRestSink() (*RestSink, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsOrcSink() (*OrcSink, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsJSONSink() (*JSONSink, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsCopySink() (*CopySink, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ddcs, true -} - -// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionSink struct. -func (ddcs *DocumentDbCollectionSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "nestingSeparator": - if v != nil { - var nestingSeparator interface{} - err = json.Unmarshal(*v, &nestingSeparator) - if err != nil { - return err - } - ddcs.NestingSeparator = nestingSeparator - } - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - ddcs.WriteBehavior = writeBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ddcs.AdditionalProperties == nil { - ddcs.AdditionalProperties = make(map[string]interface{}) - } - ddcs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ddcs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ddcs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ddcs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ddcs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ddcs.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ddcs.Type = typeVar - } - } - } +// AsAzureMariaDBTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} - return nil +// AsMariaDBTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false } -// DocumentDbCollectionSource a copy activity Document Database Collection source. -type DocumentDbCollectionSource struct { - // Query - Documents query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // NestingSeparator - Nested properties separator. Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` +// AsMagentoObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) MarshalJSON() ([]byte, error) { - ddcs.Type = TypeDocumentDbCollectionSource - objectMap := make(map[string]interface{}) - if ddcs.Query != nil { - objectMap["query"] = ddcs.Query - } - if ddcs.NestingSeparator != nil { - objectMap["nestingSeparator"] = ddcs.NestingSeparator - } - if ddcs.QueryTimeout != nil { - objectMap["queryTimeout"] = ddcs.QueryTimeout - } - if ddcs.AdditionalColumns != nil { - objectMap["additionalColumns"] = ddcs.AdditionalColumns - } - if ddcs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ddcs.SourceRetryCount - } - if ddcs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ddcs.SourceRetryWait - } - if ddcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections - } - if ddcs.Type != "" { - objectMap["type"] = ddcs.Type - } - for k, v := range ddcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsJiraObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false } -// AsSharePointOnlineListSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOffice365Source() (*Office365Source, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsDrillTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsWebSource() (*WebSource, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOracleSource() (*OracleSource, bool) { +// AsHTTPDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHdfsSource() (*HdfsSource, bool) { +// AsWebTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsRestSource() (*RestSource, bool) { +// AsRestResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsODataSource() (*ODataSource, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsRelationalSource() (*RelationalSource, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return &ddcs, true +// AsSalesforceObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false } -// AsBlobSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsBlobSource() (*BlobSource, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsInformixTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsDb2TableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return &d2td, true +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsVerticaSource() (*VerticaSource, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsZohoSource() (*ZohoSource, bool) { +// AsOracleTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsXeroSource() (*XeroSource, bool) { +// AsODataResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSquareSource() (*SquareSource, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSparkSource() (*SparkSource, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsShopifySource() (*ShopifySource, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsFileShareDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPrestoSource() (*PrestoSource, bool) { +// AsOffice365Dataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPaypalSource() (*PaypalSource, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMarketoSource() (*MarketoSource, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMagentoSource() (*MagentoSource, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsJiraSource() (*JiraSource, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsCustomDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHubspotSource() (*HubspotSource, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHiveSource() (*HiveSource, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHBaseSource() (*HBaseSource, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsAzureTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsEloquaSource() (*EloquaSource, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDrillSource() (*DrillSource, bool) { +// AsBinaryDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsOrcDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsConcurSource() (*ConcurSource, bool) { +// AsXMLDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsJSONDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCassandraSource() (*CassandraSource, bool) { +// AsParquetDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsTeradataSource() (*TeradataSource, bool) { +// AsExcelDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAvroDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSQLMISource() (*SQLMISource, bool) { +// AsDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsBasicDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsBasicDataset() (BasicDataset, bool) { + return &d2td, true +} + +// UnmarshalJSON is the custom unmarshaler for Db2TableDataset struct. +func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var db2TableDatasetTypeProperties Db2TableDatasetTypeProperties + err = json.Unmarshal(*v, &db2TableDatasetTypeProperties) + if err != nil { + return err + } + d2td.Db2TableDatasetTypeProperties = &db2TableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if d2td.AdditionalProperties == nil { + d2td.AdditionalProperties = make(map[string]interface{}) + } + d2td.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + d2td.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + d2td.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + d2td.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + d2td.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + d2td.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + d2td.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + d2td.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + d2td.Type = typeVar + } + } + } + + return nil +} + +// Db2TableDatasetTypeProperties db2 table dataset properties. +type Db2TableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Schema - The Db2 schema name. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The Db2 table name. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// DeleteActivity delete activity. +type DeleteActivity struct { + // DeleteActivityTypeProperties - Delete activity properties. + *DeleteActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeleteActivity. +func (da DeleteActivity) MarshalJSON() ([]byte, error) { + da.Type = TypeDelete + objectMap := make(map[string]interface{}) + if da.DeleteActivityTypeProperties != nil { + objectMap["typeProperties"] = da.DeleteActivityTypeProperties + } + if da.LinkedServiceName != nil { + objectMap["linkedServiceName"] = da.LinkedServiceName + } + if da.Policy != nil { + objectMap["policy"] = da.Policy + } + if da.Name != nil { + objectMap["name"] = da.Name + } + if da.Description != nil { + objectMap["description"] = da.Description + } + if da.DependsOn != nil { + objectMap["dependsOn"] = da.DependsOn + } + if da.UserProperties != nil { + objectMap["userProperties"] = da.UserProperties + } + if da.Type != "" { + objectMap["type"] = da.Type + } + for k, v := range da.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSQLSource() (*SQLSource, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapTableSource() (*SapTableSource, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapEccSource() (*SapEccSource, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapBwSource() (*SapBwSource, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSybaseSource() (*SybaseSource, bool) { +// AsWebActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsLookupActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMySQLSource() (*MySQLSource, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOdbcSource() (*OdbcSource, bool) { +// AsDeleteActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return &da, true +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDb2Source() (*Db2Source, bool) { +// AsCustomActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsInformixSource() (*InformixSource, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsTabularSource() (*TabularSource, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsBinarySource() (*BinarySource, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOrcSource() (*OrcSource, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsXMLSource() (*XMLSource, bool) { +// AsCopyActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsJSONSource() (*JSONSource, bool) { +// AsExecutionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsBasicExecutionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &da, true +} + +// AsWebHookActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsParquetSource() (*ParquetSource, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsExcelSource() (*ExcelSource, bool) { +// AsSetVariableActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAvroSource() (*AvroSource, bool) { +// AsFilterActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCopySource() (*CopySource, bool) { +// AsValidationActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ddcs, true +// AsUntilActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionSource struct. -func (ddcs *DocumentDbCollectionSource) UnmarshalJSON(body []byte) error { +// AsWaitActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsBasicActivity() (BasicActivity, bool) { + return &da, true +} + +// UnmarshalJSON is the custom unmarshaler for DeleteActivity struct. +func (da *DeleteActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -81298,664 +77697,1330 @@ func (ddcs *DocumentDbCollectionSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var deleteActivityTypeProperties DeleteActivityTypeProperties + err = json.Unmarshal(*v, &deleteActivityTypeProperties) if err != nil { return err } - ddcs.Query = query + da.DeleteActivityTypeProperties = &deleteActivityTypeProperties } - case "nestingSeparator": + case "linkedServiceName": if v != nil { - var nestingSeparator interface{} - err = json.Unmarshal(*v, &nestingSeparator) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - ddcs.NestingSeparator = nestingSeparator + da.LinkedServiceName = &linkedServiceName } - case "queryTimeout": + case "policy": if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) if err != nil { return err } - ddcs.QueryTimeout = queryTimeout + da.Policy = &policy } - case "additionalColumns": + default: if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - ddcs.AdditionalColumns = &additionalColumns + if da.AdditionalProperties == nil { + da.AdditionalProperties = make(map[string]interface{}) + } + da.AdditionalProperties[k] = additionalProperties } - default: + case "name": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - if ddcs.AdditionalProperties == nil { - ddcs.AdditionalProperties = make(map[string]interface{}) + da.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err } - ddcs.AdditionalProperties[k] = additionalProperties + da.Description = &description } - case "sourceRetryCount": + case "dependsOn": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) if err != nil { return err } - ddcs.SourceRetryCount = sourceRetryCount + da.DependsOn = &dependsOn } - case "sourceRetryWait": + case "userProperties": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) if err != nil { return err } - ddcs.SourceRetryWait = sourceRetryWait + da.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + da.Type = typeVar + } + } + } + + return nil +} + +// DeleteActivityTypeProperties delete activity properties. +type DeleteActivityTypeProperties struct { + // Recursive - If true, files or sub-folders under current folder path will be deleted recursively. Default is false. Type: boolean (or Expression with resultType boolean). + Recursive interface{} `json:"recursive,omitempty"` + // MaxConcurrentConnections - The max concurrent connections to connect data source at the same time. + MaxConcurrentConnections *int32 `json:"maxConcurrentConnections,omitempty"` + // EnableLogging - Whether to record detailed logs of delete-activity execution. Default value is false. Type: boolean (or Expression with resultType boolean). + EnableLogging interface{} `json:"enableLogging,omitempty"` + // LogStorageSettings - Log storage settings customer need to provide when enableLogging is true. + LogStorageSettings *LogStorageSettings `json:"logStorageSettings,omitempty"` + // Dataset - Delete activity dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` + // StoreSettings - Delete activity store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DeleteActivityTypeProperties struct. +func (datp *DeleteActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + datp.Recursive = recursive } case "maxConcurrentConnections": if v != nil { - var maxConcurrentConnections interface{} + var maxConcurrentConnections int32 err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - ddcs.MaxConcurrentConnections = maxConcurrentConnections + datp.MaxConcurrentConnections = &maxConcurrentConnections } - case "type": + case "enableLogging": if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) + var enableLogging interface{} + err = json.Unmarshal(*v, &enableLogging) if err != nil { return err } - ddcs.Type = typeVar + datp.EnableLogging = enableLogging + } + case "logStorageSettings": + if v != nil { + var logStorageSettings LogStorageSettings + err = json.Unmarshal(*v, &logStorageSettings) + if err != nil { + return err + } + datp.LogStorageSettings = &logStorageSettings + } + case "dataset": + if v != nil { + var dataset DatasetReference + err = json.Unmarshal(*v, &dataset) + if err != nil { + return err + } + datp.Dataset = &dataset + } + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + datp.StoreSettings = storeSettings } } } - return nil + return nil +} + +// DeleteDataFlowDebugSessionRequest request body structure for deleting data flow debug session. +type DeleteDataFlowDebugSessionRequest struct { + // SessionID - The ID of data flow debug session. + SessionID *string `json:"sessionId,omitempty"` +} + +// DelimitedTextDataset delimited text dataset. +type DelimitedTextDataset struct { + // DelimitedTextDatasetTypeProperties - Delimited text dataset properties. + *DelimitedTextDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DelimitedTextDataset. +func (dtd DelimitedTextDataset) MarshalJSON() ([]byte, error) { + dtd.Type = TypeDelimitedText + objectMap := make(map[string]interface{}) + if dtd.DelimitedTextDatasetTypeProperties != nil { + objectMap["typeProperties"] = dtd.DelimitedTextDatasetTypeProperties + } + if dtd.Description != nil { + objectMap["description"] = dtd.Description + } + if dtd.Structure != nil { + objectMap["structure"] = dtd.Structure + } + if dtd.Schema != nil { + objectMap["schema"] = dtd.Schema + } + if dtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dtd.LinkedServiceName + } + if dtd.Parameters != nil { + objectMap["parameters"] = dtd.Parameters + } + if dtd.Annotations != nil { + objectMap["annotations"] = dtd.Annotations + } + if dtd.Folder != nil { + objectMap["folder"] = dtd.Folder + } + if dtd.Type != "" { + objectMap["type"] = dtd.Type + } + for k, v := range dtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false } -// DrillDatasetTypeProperties drill Dataset Properties -type DrillDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Drill. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Drill. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false } -// DrillLinkedService drill server linked service. -type DrillLinkedService struct { - // DrillLinkedServiceTypeProperties - Drill server linked service properties. - *DrillLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` +// AsMariaDBTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for DrillLinkedService. -func (dls DrillLinkedService) MarshalJSON() ([]byte, error) { - dls.Type = TypeDrill - objectMap := make(map[string]interface{}) - if dls.DrillLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dls.DrillLinkedServiceTypeProperties - } - if dls.ConnectVia != nil { - objectMap["connectVia"] = dls.ConnectVia - } - if dls.Description != nil { - objectMap["description"] = dls.Description - } - if dls.Parameters != nil { - objectMap["parameters"] = dls.Parameters - } - if dls.Annotations != nil { - objectMap["annotations"] = dls.Annotations - } - if dls.Type != "" { - objectMap["type"] = dls.Type - } - for k, v := range dls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsMagentoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsDrillTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsHTTPDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsWebTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsRestResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsInformixTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsDb2TableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsOracleTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return &dls, true +// AsODataResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsFileShareDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsOffice365Dataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsCustomDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsAzureTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsBinaryDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsOrcDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsXMLDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsJSONDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return &dtd, true +} + +// AsParquetDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsExcelDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsAvroDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsBasicDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsBasicDataset() (BasicDataset, bool) { + return &dtd, true +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextDataset struct. +func (dtd *DelimitedTextDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var delimitedTextDatasetTypeProperties DelimitedTextDatasetTypeProperties + err = json.Unmarshal(*v, &delimitedTextDatasetTypeProperties) + if err != nil { + return err + } + dtd.DelimitedTextDatasetTypeProperties = &delimitedTextDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dtd.AdditionalProperties == nil { + dtd.AdditionalProperties = make(map[string]interface{}) + } + dtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + dtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + dtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + dtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + dtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + dtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dtd.Type = typeVar + } + } + } + + return nil +} + +// DelimitedTextDatasetTypeProperties delimitedText dataset properties. +type DelimitedTextDatasetTypeProperties struct { + // Location - The location of the delimited text storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // ColumnDelimiter - The column delimiter. Type: string (or Expression with resultType string). + ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` + // RowDelimiter - The row delimiter. Type: string (or Expression with resultType string). + RowDelimiter interface{} `json:"rowDelimiter,omitempty"` + // EncodingName - 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). + EncodingName interface{} `json:"encodingName,omitempty"` + CompressionCodec interface{} `json:"compressionCodec,omitempty"` + // CompressionLevel - The data compression method used for DelimitedText. + CompressionLevel interface{} `json:"compressionLevel,omitempty"` + // QuoteChar - The quote character. Type: string (or Expression with resultType string). + QuoteChar interface{} `json:"quoteChar,omitempty"` + // EscapeChar - The escape character. Type: string (or Expression with resultType string). + EscapeChar interface{} `json:"escapeChar,omitempty"` + // FirstRowAsHeader - 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). + FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` + // NullValue - The null value string. Type: string (or Expression with resultType string). + NullValue interface{} `json:"nullValue,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextDatasetTypeProperties struct. +func (dtdtp *DelimitedTextDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + location, err := unmarshalBasicDatasetLocation(*v) + if err != nil { + return err + } + dtdtp.Location = location + } + case "columnDelimiter": + if v != nil { + var columnDelimiter interface{} + err = json.Unmarshal(*v, &columnDelimiter) + if err != nil { + return err + } + dtdtp.ColumnDelimiter = columnDelimiter + } + case "rowDelimiter": + if v != nil { + var rowDelimiter interface{} + err = json.Unmarshal(*v, &rowDelimiter) + if err != nil { + return err + } + dtdtp.RowDelimiter = rowDelimiter + } + case "encodingName": + if v != nil { + var encodingName interface{} + err = json.Unmarshal(*v, &encodingName) + if err != nil { + return err + } + dtdtp.EncodingName = encodingName + } + case "compressionCodec": + if v != nil { + var compressionCodec interface{} + err = json.Unmarshal(*v, &compressionCodec) + if err != nil { + return err + } + dtdtp.CompressionCodec = compressionCodec + } + case "compressionLevel": + if v != nil { + var compressionLevel interface{} + err = json.Unmarshal(*v, &compressionLevel) + if err != nil { + return err + } + dtdtp.CompressionLevel = compressionLevel + } + case "quoteChar": + if v != nil { + var quoteChar interface{} + err = json.Unmarshal(*v, "eChar) + if err != nil { + return err + } + dtdtp.QuoteChar = quoteChar + } + case "escapeChar": + if v != nil { + var escapeChar interface{} + err = json.Unmarshal(*v, &escapeChar) + if err != nil { + return err + } + dtdtp.EscapeChar = escapeChar + } + case "firstRowAsHeader": + if v != nil { + var firstRowAsHeader interface{} + err = json.Unmarshal(*v, &firstRowAsHeader) + if err != nil { + return err + } + dtdtp.FirstRowAsHeader = firstRowAsHeader + } + case "nullValue": + if v != nil { + var nullValue interface{} + err = json.Unmarshal(*v, &nullValue) + if err != nil { + return err + } + dtdtp.NullValue = nullValue + } + } + } + + return nil +} + +// DelimitedTextReadSettings delimited text read settings. +type DelimitedTextReadSettings struct { + // SkipLineCount - Indicates the number of non-empty rows to skip when reading data from input files. Type: integer (or Expression with resultType integer). + SkipLineCount interface{} `json:"skipLineCount,omitempty"` + // CompressionProperties - Compression settings. + CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeFormatReadSettings', 'TypeBinaryReadSettings', 'TypeXMLReadSettings', 'TypeJSONReadSettings', 'TypeDelimitedTextReadSettings' + Type TypeBasicFormatReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) MarshalJSON() ([]byte, error) { + dtrs.Type = TypeDelimitedTextReadSettings + objectMap := make(map[string]interface{}) + if dtrs.SkipLineCount != nil { + objectMap["skipLineCount"] = dtrs.SkipLineCount + } + objectMap["compressionProperties"] = dtrs.CompressionProperties + if dtrs.Type != "" { + objectMap["type"] = dtrs.Type + } + for k, v := range dtrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsBinaryReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsXMLReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsJSONReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { + return &dtrs, true +} + +// AsFormatReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { + return &dtrs, true +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextReadSettings struct. +func (dtrs *DelimitedTextReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "skipLineCount": + if v != nil { + var skipLineCount interface{} + err = json.Unmarshal(*v, &skipLineCount) + if err != nil { + return err + } + dtrs.SkipLineCount = skipLineCount + } + case "compressionProperties": + if v != nil { + compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) + if err != nil { + return err + } + dtrs.CompressionProperties = compressionProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dtrs.AdditionalProperties == nil { + dtrs.AdditionalProperties = make(map[string]interface{}) + } + dtrs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dtrs.Type = typeVar + } + } + } + + return nil +} + +// DelimitedTextSink a copy activity DelimitedText sink. +type DelimitedTextSink struct { + // StoreSettings - DelimitedText store settings. + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` + // FormatSettings - DelimitedText format settings. + FormatSettings *DelimitedTextWriteSettings `json:"formatSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DelimitedTextSink. +func (dts DelimitedTextSink) MarshalJSON() ([]byte, error) { + dts.Type = TypeDelimitedTextSink + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = dts.StoreSettings + if dts.FormatSettings != nil { + objectMap["formatSettings"] = dts.FormatSettings + } + if dts.WriteBatchSize != nil { + objectMap["writeBatchSize"] = dts.WriteBatchSize + } + if dts.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = dts.WriteBatchTimeout + } + if dts.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = dts.SinkRetryCount + } + if dts.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = dts.SinkRetryWait + } + if dts.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections + } + if dts.Type != "" { + objectMap["type"] = dts.Type + } + for k, v := range dts.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSalesforceSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsDynamicsSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsInformixSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsOdbcSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsOracleSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsSQLDWSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsSQLMISink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsSQLServerSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsSQLSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsFileSystemSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsBlobSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsBinarySink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsParquetSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsAvroSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dls, true +// AsAzureTableSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for DrillLinkedService struct. -func (dls *DrillLinkedService) UnmarshalJSON(body []byte) error { +// AsAzureQueueSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return &dts, true +} + +// AsCopySink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsBasicCopySink() (BasicCopySink, bool) { + return &dts, true +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextSink struct. +func (dts *DelimitedTextSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -81963,14 +79028,22 @@ func (dls *DrillLinkedService) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "storeSettings": if v != nil { - var drillLinkedServiceTypeProperties DrillLinkedServiceTypeProperties - err = json.Unmarshal(*v, &drillLinkedServiceTypeProperties) + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) if err != nil { return err } - dls.DrillLinkedServiceTypeProperties = &drillLinkedServiceTypeProperties + dts.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings DelimitedTextWriteSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + dts.FormatSettings = &formatSettings } default: if v != nil { @@ -81979,55 +79052,64 @@ func (dls *DrillLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if dls.AdditionalProperties == nil { - dls.AdditionalProperties = make(map[string]interface{}) + if dts.AdditionalProperties == nil { + dts.AdditionalProperties = make(map[string]interface{}) } - dls.AdditionalProperties[k] = additionalProperties + dts.AdditionalProperties[k] = additionalProperties } - case "connectVia": + case "writeBatchSize": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - dls.ConnectVia = &connectVia + dts.WriteBatchSize = writeBatchSize } - case "description": + case "writeBatchTimeout": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - dls.Description = &description + dts.WriteBatchTimeout = writeBatchTimeout } - case "parameters": + case "sinkRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) if err != nil { return err } - dls.Parameters = parameters + dts.SinkRetryCount = sinkRetryCount } - case "annotations": + case "sinkRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) if err != nil { return err } - dls.Annotations = &annotations + dts.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + dts.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicLinkedService + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dls.Type = typeVar + dts.Type = typeVar } } } @@ -82035,22 +79117,12 @@ func (dls *DrillLinkedService) UnmarshalJSON(body []byte) error { return nil } -// DrillLinkedServiceTypeProperties drill server linked service properties. -type DrillLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Pwd - The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// DrillSource a copy activity Drill server source. -type DrillSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` +// DelimitedTextSource a copy activity DelimitedText source. +type DelimitedTextSource struct { + // StoreSettings - DelimitedText store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // FormatSettings - DelimitedText format settings. + FormatSettings *DelimitedTextReadSettings `json:"formatSettings,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -82065,519 +79137,517 @@ type DrillSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DrillSource. -func (ds DrillSource) MarshalJSON() ([]byte, error) { - ds.Type = TypeDrillSource +// MarshalJSON is the custom marshaler for DelimitedTextSource. +func (dts DelimitedTextSource) MarshalJSON() ([]byte, error) { + dts.Type = TypeDelimitedTextSource objectMap := make(map[string]interface{}) - if ds.Query != nil { - objectMap["query"] = ds.Query - } - if ds.QueryTimeout != nil { - objectMap["queryTimeout"] = ds.QueryTimeout + objectMap["storeSettings"] = dts.StoreSettings + if dts.FormatSettings != nil { + objectMap["formatSettings"] = dts.FormatSettings } - if ds.AdditionalColumns != nil { - objectMap["additionalColumns"] = ds.AdditionalColumns + if dts.AdditionalColumns != nil { + objectMap["additionalColumns"] = dts.AdditionalColumns } - if ds.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ds.SourceRetryCount + if dts.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = dts.SourceRetryCount } - if ds.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ds.SourceRetryWait + if dts.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = dts.SourceRetryWait } - if ds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections + if dts.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections } - if ds.Type != "" { - objectMap["type"] = ds.Type + if dts.Type != "" { + objectMap["type"] = dts.Type } - for k, v := range ds.AdditionalProperties { + for k, v := range dts.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDrillSource() (*DrillSource, bool) { - return &ds, true +// AsDrillSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDrillSource() (*DrillSource, bool) { + return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ds, true +// AsBasicTabularSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false +// AsDelimitedTextSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return &dts, true } -// AsParquetSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ds, true +// AsBasicCopySource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsBasicCopySource() (BasicCopySource, bool) { + return &dts, true } -// UnmarshalJSON is the custom unmarshaler for DrillSource struct. -func (ds *DrillSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DelimitedTextSource struct. +func (dts *DelimitedTextSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -82585,23 +79655,22 @@ func (ds *DrillSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "storeSettings": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + storeSettings, err := unmarshalBasicStoreReadSettings(*v) if err != nil { return err } - ds.Query = query + dts.StoreSettings = storeSettings } - case "queryTimeout": + case "formatSettings": if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var formatSettings DelimitedTextReadSettings + err = json.Unmarshal(*v, &formatSettings) if err != nil { return err } - ds.QueryTimeout = queryTimeout + dts.FormatSettings = &formatSettings } case "additionalColumns": if v != nil { @@ -82610,7 +79679,7 @@ func (ds *DrillSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ds.AdditionalColumns = &additionalColumns + dts.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -82619,10 +79688,10 @@ func (ds *DrillSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if ds.AdditionalProperties == nil { - ds.AdditionalProperties = make(map[string]interface{}) + if dts.AdditionalProperties == nil { + dts.AdditionalProperties = make(map[string]interface{}) } - ds.AdditionalProperties[k] = additionalProperties + dts.AdditionalProperties[k] = additionalProperties } case "sourceRetryCount": if v != nil { @@ -82631,7 +79700,7 @@ func (ds *DrillSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ds.SourceRetryCount = sourceRetryCount + dts.SourceRetryCount = sourceRetryCount } case "sourceRetryWait": if v != nil { @@ -82640,7 +79709,7 @@ func (ds *DrillSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ds.SourceRetryWait = sourceRetryWait + dts.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -82649,7 +79718,7 @@ func (ds *DrillSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ds.MaxConcurrentConnections = maxConcurrentConnections + dts.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { @@ -82658,7 +79727,7 @@ func (ds *DrillSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ds.Type = typeVar + dts.Type = typeVar } } } @@ -82666,10 +79735,268 @@ func (ds *DrillSource) UnmarshalJSON(body []byte) error { return nil } -// DrillTableDataset drill server dataset. -type DrillTableDataset struct { - // DrillDatasetTypeProperties - Properties specific to this dataset type. - *DrillDatasetTypeProperties `json:"typeProperties,omitempty"` +// DelimitedTextWriteSettings delimited text write settings. +type DelimitedTextWriteSettings struct { + // QuoteAllText - Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean). + QuoteAllText interface{} `json:"quoteAllText,omitempty"` + // FileExtension - The file extension used to create the files. Type: string (or Expression with resultType string). + FileExtension interface{} `json:"fileExtension,omitempty"` + // MaxRowsPerFile - Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer). + MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` + // FileNamePrefix - Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression with resultType string). + FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeFormatWriteSettings', 'TypeJSONWriteSettings', 'TypeDelimitedTextWriteSettings', 'TypeOrcWriteSettings', 'TypeAvroWriteSettings', 'TypeParquetWriteSettings' + Type TypeBasicFormatWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) MarshalJSON() ([]byte, error) { + dtws.Type = TypeDelimitedTextWriteSettings + objectMap := make(map[string]interface{}) + if dtws.QuoteAllText != nil { + objectMap["quoteAllText"] = dtws.QuoteAllText + } + if dtws.FileExtension != nil { + objectMap["fileExtension"] = dtws.FileExtension + } + if dtws.MaxRowsPerFile != nil { + objectMap["maxRowsPerFile"] = dtws.MaxRowsPerFile + } + if dtws.FileNamePrefix != nil { + objectMap["fileNamePrefix"] = dtws.FileNamePrefix + } + if dtws.Type != "" { + objectMap["type"] = dtws.Type + } + for k, v := range dtws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { + return nil, false +} + +// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { + return &dtws, true +} + +// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { + return nil, false +} + +// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { + return nil, false +} + +// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { + return nil, false +} + +// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { + return nil, false +} + +// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { + return &dtws, true +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextWriteSettings struct. +func (dtws *DelimitedTextWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "quoteAllText": + if v != nil { + var quoteAllText interface{} + err = json.Unmarshal(*v, "eAllText) + if err != nil { + return err + } + dtws.QuoteAllText = quoteAllText + } + case "fileExtension": + if v != nil { + var fileExtension interface{} + err = json.Unmarshal(*v, &fileExtension) + if err != nil { + return err + } + dtws.FileExtension = fileExtension + } + case "maxRowsPerFile": + if v != nil { + var maxRowsPerFile interface{} + err = json.Unmarshal(*v, &maxRowsPerFile) + if err != nil { + return err + } + dtws.MaxRowsPerFile = maxRowsPerFile + } + case "fileNamePrefix": + if v != nil { + var fileNamePrefix interface{} + err = json.Unmarshal(*v, &fileNamePrefix) + if err != nil { + return err + } + dtws.FileNamePrefix = fileNamePrefix + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dtws.AdditionalProperties == nil { + dtws.AdditionalProperties = make(map[string]interface{}) + } + dtws.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dtws.Type = typeVar + } + } + } + + return nil +} + +// BasicDependencyReference referenced dependency. +type BasicDependencyReference interface { + AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) + AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) + AsTriggerDependencyReference() (*TriggerDependencyReference, bool) + AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) + AsDependencyReference() (*DependencyReference, bool) +} + +// DependencyReference referenced dependency. +type DependencyReference struct { + // Type - Possible values include: 'TypeDependencyReference', 'TypeSelfDependencyTumblingWindowTriggerReference', 'TypeTumblingWindowTriggerDependencyReference', 'TypeTriggerDependencyReference' + Type TypeBasicDependencyReference `json:"type,omitempty"` +} + +func unmarshalBasicDependencyReference(body []byte) (BasicDependencyReference, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeSelfDependencyTumblingWindowTriggerReference): + var sdtwtr SelfDependencyTumblingWindowTriggerReference + err := json.Unmarshal(body, &sdtwtr) + return sdtwtr, err + case string(TypeTumblingWindowTriggerDependencyReference): + var twtdr TumblingWindowTriggerDependencyReference + err := json.Unmarshal(body, &twtdr) + return twtdr, err + case string(TypeTriggerDependencyReference): + var tdr TriggerDependencyReference + err := json.Unmarshal(body, &tdr) + return tdr, err + default: + var dr DependencyReference + err := json.Unmarshal(body, &dr) + return dr, err + } +} +func unmarshalBasicDependencyReferenceArray(body []byte) ([]BasicDependencyReference, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + drArray := make([]BasicDependencyReference, len(rawMessages)) + + for index, rawMessage := range rawMessages { + dr, err := unmarshalBasicDependencyReference(*rawMessage) + if err != nil { + return nil, err + } + drArray[index] = dr + } + return drArray, nil +} + +// MarshalJSON is the custom marshaler for DependencyReference. +func (dr DependencyReference) MarshalJSON() ([]byte, error) { + dr.Type = TypeDependencyReference + objectMap := make(map[string]interface{}) + if dr.Type != "" { + objectMap["type"] = dr.Type + } + return json.Marshal(objectMap) +} + +// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { + return nil, false +} + +// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { + return nil, false +} + +// AsTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { + return nil, false +} + +// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { + return nil, false +} + +// AsDependencyReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsDependencyReference() (*DependencyReference, bool) { + return &dr, true +} + +// AsBasicDependencyReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { + return &dr, true +} + +// DistcpSettings distcp settings. +type DistcpSettings struct { + // ResourceManagerEndpoint - Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). + ResourceManagerEndpoint interface{} `json:"resourceManagerEndpoint,omitempty"` + // TempScriptPath - Specifies an existing folder path which will be used to store temp Distcp command script. The script file is generated by ADF and will be removed after Copy job finished. Type: string (or Expression with resultType string). + TempScriptPath interface{} `json:"tempScriptPath,omitempty"` + // DistcpOptions - Specifies the Distcp options. Type: string (or Expression with resultType string). + DistcpOptions interface{} `json:"distcpOptions,omitempty"` +} + +// DocumentDbCollectionDataset microsoft Azure Document Database Collection dataset. +type DocumentDbCollectionDataset struct { + // DocumentDbCollectionDatasetTypeProperties - DocumentDB Collection dataset properties. + *DocumentDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -82690,520 +80017,895 @@ type DrillTableDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DrillTableDataset. -func (dtd DrillTableDataset) MarshalJSON() ([]byte, error) { - dtd.Type = TypeDrillTable +// MarshalJSON is the custom marshaler for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) MarshalJSON() ([]byte, error) { + ddcd.Type = TypeDocumentDbCollection objectMap := make(map[string]interface{}) - if dtd.DrillDatasetTypeProperties != nil { - objectMap["typeProperties"] = dtd.DrillDatasetTypeProperties + if ddcd.DocumentDbCollectionDatasetTypeProperties != nil { + objectMap["typeProperties"] = ddcd.DocumentDbCollectionDatasetTypeProperties } - if dtd.Description != nil { - objectMap["description"] = dtd.Description + if ddcd.Description != nil { + objectMap["description"] = ddcd.Description } - if dtd.Structure != nil { - objectMap["structure"] = dtd.Structure + if ddcd.Structure != nil { + objectMap["structure"] = ddcd.Structure } - if dtd.Schema != nil { - objectMap["schema"] = dtd.Schema + if ddcd.Schema != nil { + objectMap["schema"] = ddcd.Schema } - if dtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dtd.LinkedServiceName + if ddcd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ddcd.LinkedServiceName } - if dtd.Parameters != nil { - objectMap["parameters"] = dtd.Parameters + if ddcd.Parameters != nil { + objectMap["parameters"] = ddcd.Parameters } - if dtd.Annotations != nil { - objectMap["annotations"] = dtd.Annotations + if ddcd.Annotations != nil { + objectMap["annotations"] = ddcd.Annotations } - if dtd.Folder != nil { - objectMap["folder"] = dtd.Folder + if ddcd.Folder != nil { + objectMap["folder"] = ddcd.Folder } - if dtd.Type != "" { - objectMap["type"] = dtd.Type + if ddcd.Type != "" { + objectMap["type"] = ddcd.Type } - for k, v := range dtd.AdditionalProperties { + for k, v := range ddcd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return &ddcd, true } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return &dtd, true +// AsCassandraTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false +// AsBasicDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsBasicDataset() (BasicDataset, bool) { + return &ddcd, true } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionDataset struct. +func (ddcd *DocumentDbCollectionDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var documentDbCollectionDatasetTypeProperties DocumentDbCollectionDatasetTypeProperties + err = json.Unmarshal(*v, &documentDbCollectionDatasetTypeProperties) + if err != nil { + return err + } + ddcd.DocumentDbCollectionDatasetTypeProperties = &documentDbCollectionDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ddcd.AdditionalProperties == nil { + ddcd.AdditionalProperties = make(map[string]interface{}) + } + ddcd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ddcd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + ddcd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + ddcd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ddcd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ddcd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ddcd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + ddcd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ddcd.Type = typeVar + } + } + } + + return nil } -// AsSalesforceObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false +// DocumentDbCollectionDatasetTypeProperties documentDB Collection dataset properties. +type DocumentDbCollectionDatasetTypeProperties struct { + // CollectionName - Document Database collection name. Type: string (or Expression with resultType string). + CollectionName interface{} `json:"collectionName,omitempty"` } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false +// DocumentDbCollectionSink a copy activity Document Database Collection sink. +type DocumentDbCollectionSink struct { + // NestingSeparator - Nested properties separator. Default is . (dot). Type: string (or Expression with resultType string). + NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + // WriteBehavior - Describes how to write data to Azure Cosmos DB. Type: string (or Expression with resultType string). Allowed values: insert and upsert. + WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// AsPostgreSQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) MarshalJSON() ([]byte, error) { + ddcs.Type = TypeDocumentDbCollectionSink + objectMap := make(map[string]interface{}) + if ddcs.NestingSeparator != nil { + objectMap["nestingSeparator"] = ddcs.NestingSeparator + } + if ddcs.WriteBehavior != nil { + objectMap["writeBehavior"] = ddcs.WriteBehavior + } + if ddcs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ddcs.WriteBatchSize + } + if ddcs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ddcs.WriteBatchTimeout + } + if ddcs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ddcs.SinkRetryCount + } + if ddcs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ddcs.SinkRetryWait + } + if ddcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections + } + if ddcs.Type != "" { + objectMap["type"] = ddcs.Type + } + for k, v := range ddcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsMySQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsSalesforceSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsDynamicsSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsInformixSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsOdbcSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOracleSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSQLDWSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSQLMISink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSQLServerSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false +// AsDocumentDbCollectionSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return &ddcs, true } -// AsCassandraTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsFileSystemSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsBlobSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsBinarySink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsParquetSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAvroSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureTableSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsRestSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsOrcSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsJSONSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDataset() (*Dataset, bool) { +// AsCopySink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &dtd, true +// AsBasicCopySink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ddcs, true } -// UnmarshalJSON is the custom unmarshaler for DrillTableDataset struct. -func (dtd *DrillTableDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionSink struct. +func (ddcs *DocumentDbCollectionSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -83211,98 +80913,89 @@ func (dtd *DrillTableDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "nestingSeparator": if v != nil { - var drillDatasetTypeProperties DrillDatasetTypeProperties - err = json.Unmarshal(*v, &drillDatasetTypeProperties) + var nestingSeparator interface{} + err = json.Unmarshal(*v, &nestingSeparator) if err != nil { return err } - dtd.DrillDatasetTypeProperties = &drillDatasetTypeProperties + ddcs.NestingSeparator = nestingSeparator } - default: + case "writeBehavior": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) if err != nil { return err } - if dtd.AdditionalProperties == nil { - dtd.AdditionalProperties = make(map[string]interface{}) - } - dtd.AdditionalProperties[k] = additionalProperties + ddcs.WriteBehavior = writeBehavior } - case "description": + default: if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - dtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err + if ddcs.AdditionalProperties == nil { + ddcs.AdditionalProperties = make(map[string]interface{}) } - dtd.Structure = structure + ddcs.AdditionalProperties[k] = additionalProperties } - case "schema": + case "writeBatchSize": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - dtd.Schema = schema + ddcs.WriteBatchSize = writeBatchSize } - case "linkedServiceName": + case "writeBatchTimeout": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - dtd.LinkedServiceName = &linkedServiceName + ddcs.WriteBatchTimeout = writeBatchTimeout } - case "parameters": + case "sinkRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) if err != nil { return err } - dtd.Parameters = parameters + ddcs.SinkRetryCount = sinkRetryCount } - case "annotations": + case "sinkRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) if err != nil { return err } - dtd.Annotations = &annotations + ddcs.SinkRetryWait = sinkRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - dtd.Folder = &folder + ddcs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dtd.Type = typeVar + ddcs.Type = typeVar } } } @@ -83310,592 +81003,544 @@ func (dtd *DrillTableDataset) UnmarshalJSON(body []byte) error { return nil } -// DWCopyCommandDefaultValue default value. -type DWCopyCommandDefaultValue struct { - // ColumnName - Column name. Type: object (or Expression with resultType string). - ColumnName interface{} `json:"columnName,omitempty"` - // DefaultValue - The default value of the column. Type: object (or Expression with resultType string). - DefaultValue interface{} `json:"defaultValue,omitempty"` -} - -// DWCopyCommandSettings DW Copy Command settings. -type DWCopyCommandSettings struct { - // DefaultValues - Specifies the default values for each target column in SQL DW. The default values in the property overwrite the DEFAULT constraint set in the DB, and identity column cannot have a default value. Type: array of objects (or Expression with resultType array of objects). - DefaultValues *[]DWCopyCommandDefaultValue `json:"defaultValues,omitempty"` - // AdditionalOptions - Additional options directly passed to SQL DW in Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalOptions": { "MAXERRORS": "1000", "DATEFORMAT": "'ymd'" } - AdditionalOptions map[string]*string `json:"additionalOptions"` -} - -// MarshalJSON is the custom marshaler for DWCopyCommandSettings. -func (dccs DWCopyCommandSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dccs.DefaultValues != nil { - objectMap["defaultValues"] = dccs.DefaultValues - } - if dccs.AdditionalOptions != nil { - objectMap["additionalOptions"] = dccs.AdditionalOptions - } - return json.Marshal(objectMap) -} - -// DynamicsAXLinkedService dynamics AX linked service. -type DynamicsAXLinkedService struct { - // DynamicsAXLinkedServiceTypeProperties - Dynamics AX linked service properties. - *DynamicsAXLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// DocumentDbCollectionSource a copy activity Document Database Collection source. +type DocumentDbCollectionSource struct { + // Query - Documents query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // NestingSeparator - Nested properties separator. Type: string (or Expression with resultType string). + NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) MarshalJSON() ([]byte, error) { - dals.Type = TypeDynamicsAX +// MarshalJSON is the custom marshaler for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) MarshalJSON() ([]byte, error) { + ddcs.Type = TypeDocumentDbCollectionSource objectMap := make(map[string]interface{}) - if dals.DynamicsAXLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dals.DynamicsAXLinkedServiceTypeProperties + if ddcs.Query != nil { + objectMap["query"] = ddcs.Query } - if dals.ConnectVia != nil { - objectMap["connectVia"] = dals.ConnectVia + if ddcs.NestingSeparator != nil { + objectMap["nestingSeparator"] = ddcs.NestingSeparator } - if dals.Description != nil { - objectMap["description"] = dals.Description + if ddcs.QueryTimeout != nil { + objectMap["queryTimeout"] = ddcs.QueryTimeout } - if dals.Parameters != nil { - objectMap["parameters"] = dals.Parameters + if ddcs.AdditionalColumns != nil { + objectMap["additionalColumns"] = ddcs.AdditionalColumns } - if dals.Annotations != nil { - objectMap["annotations"] = dals.Annotations + if ddcs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ddcs.SourceRetryCount } - if dals.Type != "" { - objectMap["type"] = dals.Type + if ddcs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ddcs.SourceRetryWait } - for k, v := range dals.AdditionalProperties { + if ddcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections + } + if ddcs.Type != "" { + objectMap["type"] = ddcs.Type + } + for k, v := range ddcs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return &dals, true -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsFileSystemSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsRestSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return &ddcs, true } -// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsVerticaSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsNetezzaSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsZohoSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsXeroSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSquareSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSparkSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsShopifySource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsServiceNowSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsPrestoSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsPhoenixSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsPaypalSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsMarketoSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsMariaDBSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsMagentoSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsJiraSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsImpalaSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsHubspotSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsHiveSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsHBaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsGreenplumSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsEloquaSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsDrillSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsConcurSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsCassandraSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsTeradataSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsSQLDWSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsSQLMISource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsSQLServerSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSapTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsSapHanaSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsSapEccSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsSalesforceSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSapBwSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsSybaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsMySQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsOdbcSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsDb2Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsInformixSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsTabularSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsBinarySource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsOrcSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsXMLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsJSONSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsParquetSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsExcelSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAvroSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsCopySource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dals, true +// AsBasicCopySource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ddcs, true } -// UnmarshalJSON is the custom unmarshaler for DynamicsAXLinkedService struct. -func (dals *DynamicsAXLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionSource struct. +func (ddcs *DocumentDbCollectionSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -83903,155 +81548,89 @@ func (dals *DynamicsAXLinkedService) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var dynamicsAXLinkedServiceTypeProperties DynamicsAXLinkedServiceTypeProperties - err = json.Unmarshal(*v, &dynamicsAXLinkedServiceTypeProperties) - if err != nil { - return err - } - dals.DynamicsAXLinkedServiceTypeProperties = &dynamicsAXLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dals.AdditionalProperties == nil { - dals.AdditionalProperties = make(map[string]interface{}) - } - dals.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - dals.ConnectVia = &connectVia - } - case "description": + case "query": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - dals.Description = &description + ddcs.Query = query } - case "parameters": + case "nestingSeparator": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var nestingSeparator interface{} + err = json.Unmarshal(*v, &nestingSeparator) if err != nil { return err } - dals.Parameters = parameters + ddcs.NestingSeparator = nestingSeparator } - case "annotations": + case "queryTimeout": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - dals.Annotations = &annotations + ddcs.QueryTimeout = queryTimeout } - case "type": + case "additionalColumns": if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - dals.Type = typeVar + ddcs.AdditionalColumns = &additionalColumns } - } - } - - return nil -} - -// DynamicsAXLinkedServiceTypeProperties dynamics AX linked service properties. -type DynamicsAXLinkedServiceTypeProperties struct { - // URL - The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - URL interface{} `json:"url,omitempty"` - // ServicePrincipalID - Specify the application's client ID. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - 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). - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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). - Tenant interface{} `json:"tenant,omitempty"` - // AadResourceID - Specify the resource you are requesting authorization. Type: string (or Expression with resultType string). - AadResourceID interface{} `json:"aadResourceId,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsAXLinkedServiceTypeProperties struct. -func (dalstp *DynamicsAXLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": + default: if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - dalstp.URL = URL - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err + if ddcs.AdditionalProperties == nil { + ddcs.AdditionalProperties = make(map[string]interface{}) } - dalstp.ServicePrincipalID = servicePrincipalID + ddcs.AdditionalProperties[k] = additionalProperties } - case "servicePrincipalKey": + case "sourceRetryCount": if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - dalstp.ServicePrincipalKey = servicePrincipalKey + ddcs.SourceRetryCount = sourceRetryCount } - case "tenant": + case "sourceRetryWait": if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - dalstp.Tenant = tenant + ddcs.SourceRetryWait = sourceRetryWait } - case "aadResourceId": + case "maxConcurrentConnections": if v != nil { - var aadResourceID interface{} - err = json.Unmarshal(*v, &aadResourceID) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - dalstp.AadResourceID = aadResourceID + ddcs.MaxConcurrentConnections = maxConcurrentConnections } - case "encryptedCredential": + case "type": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dalstp.EncryptedCredential = encryptedCredential + ddcs.Type = typeVar } } } @@ -84059,544 +81638,574 @@ func (dalstp *DynamicsAXLinkedServiceTypeProperties) UnmarshalJSON(body []byte) return nil } -// DynamicsAXResourceDataset the path of the Dynamics AX OData entity. -type DynamicsAXResourceDataset struct { - // DynamicsAXResourceDatasetTypeProperties - Dynamics AX OData resource dataset properties. - *DynamicsAXResourceDatasetTypeProperties `json:"typeProperties,omitempty"` +// DrillDatasetTypeProperties drill Dataset Properties +type DrillDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Drill. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Drill. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// DrillLinkedService drill server linked service. +type DrillLinkedService struct { + // DrillLinkedServiceTypeProperties - Drill server linked service properties. + *DrillLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. + // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) MarshalJSON() ([]byte, error) { - dard.Type = TypeDynamicsAXResource +// MarshalJSON is the custom marshaler for DrillLinkedService. +func (dls DrillLinkedService) MarshalJSON() ([]byte, error) { + dls.Type = TypeDrill objectMap := make(map[string]interface{}) - if dard.DynamicsAXResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = dard.DynamicsAXResourceDatasetTypeProperties - } - if dard.Description != nil { - objectMap["description"] = dard.Description - } - if dard.Structure != nil { - objectMap["structure"] = dard.Structure - } - if dard.Schema != nil { - objectMap["schema"] = dard.Schema + if dls.DrillLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = dls.DrillLinkedServiceTypeProperties } - if dard.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dard.LinkedServiceName + if dls.ConnectVia != nil { + objectMap["connectVia"] = dls.ConnectVia } - if dard.Parameters != nil { - objectMap["parameters"] = dard.Parameters + if dls.Description != nil { + objectMap["description"] = dls.Description } - if dard.Annotations != nil { - objectMap["annotations"] = dard.Annotations + if dls.Parameters != nil { + objectMap["parameters"] = dls.Parameters } - if dard.Folder != nil { - objectMap["folder"] = dard.Folder + if dls.Annotations != nil { + objectMap["annotations"] = dls.Annotations } - if dard.Type != "" { - objectMap["type"] = dard.Type + if dls.Type != "" { + objectMap["type"] = dls.Type } - for k, v := range dard.AdditionalProperties { + for k, v := range dls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return &dard, true +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return &dls, true +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDataset() (*Dataset, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &dard, true +// AsSQLServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for DynamicsAXResourceDataset struct. -func (dard *DynamicsAXResourceDataset) UnmarshalJSON(body []byte) error { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &dls, true +} + +// UnmarshalJSON is the custom unmarshaler for DrillLinkedService struct. +func (dls *DrillLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -84606,12 +82215,12 @@ func (dard *DynamicsAXResourceDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var dynamicsAXResourceDatasetTypeProperties DynamicsAXResourceDatasetTypeProperties - err = json.Unmarshal(*v, &dynamicsAXResourceDatasetTypeProperties) + var drillLinkedServiceTypeProperties DrillLinkedServiceTypeProperties + err = json.Unmarshal(*v, &drillLinkedServiceTypeProperties) if err != nil { return err } - dard.DynamicsAXResourceDatasetTypeProperties = &dynamicsAXResourceDatasetTypeProperties + dls.DrillLinkedServiceTypeProperties = &drillLinkedServiceTypeProperties } default: if v != nil { @@ -84620,46 +82229,28 @@ func (dard *DynamicsAXResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if dard.AdditionalProperties == nil { - dard.AdditionalProperties = make(map[string]interface{}) - } - dard.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dard.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err + if dls.AdditionalProperties == nil { + dls.AdditionalProperties = make(map[string]interface{}) } - dard.Structure = structure + dls.AdditionalProperties[k] = additionalProperties } - case "schema": + case "connectVia": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - dard.Schema = schema + dls.ConnectVia = &connectVia } - case "linkedServiceName": + case "description": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - dard.LinkedServiceName = &linkedServiceName + dls.Description = &description } case "parameters": if v != nil { @@ -84668,7 +82259,7 @@ func (dard *DynamicsAXResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - dard.Parameters = parameters + dls.Parameters = parameters } case "annotations": if v != nil { @@ -84677,25 +82268,16 @@ func (dard *DynamicsAXResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - dard.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - dard.Folder = &folder + dls.Annotations = &annotations } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicLinkedService err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dard.Type = typeVar + dls.Type = typeVar } } } @@ -84703,18 +82285,20 @@ func (dard *DynamicsAXResourceDataset) UnmarshalJSON(body []byte) error { return nil } -// DynamicsAXResourceDatasetTypeProperties dynamics AX OData resource dataset properties. -type DynamicsAXResourceDatasetTypeProperties struct { - // Path - The path of the Dynamics AX OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` +// DrillLinkedServiceTypeProperties drill server linked service properties. +type DrillLinkedServiceTypeProperties struct { + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Pwd - The Azure key vault secret reference of password in connection string. + Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// DynamicsAXSource a copy activity Dynamics AX source. -type DynamicsAXSource struct { +// DrillSource a copy activity Drill server source. +type DrillSource struct { // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` - // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). @@ -84731,522 +82315,519 @@ type DynamicsAXSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DynamicsAXSource. -func (das DynamicsAXSource) MarshalJSON() ([]byte, error) { - das.Type = TypeDynamicsAXSource +// MarshalJSON is the custom marshaler for DrillSource. +func (ds DrillSource) MarshalJSON() ([]byte, error) { + ds.Type = TypeDrillSource objectMap := make(map[string]interface{}) - if das.Query != nil { - objectMap["query"] = das.Query - } - if das.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = das.HTTPRequestTimeout + if ds.Query != nil { + objectMap["query"] = ds.Query } - if das.QueryTimeout != nil { - objectMap["queryTimeout"] = das.QueryTimeout + if ds.QueryTimeout != nil { + objectMap["queryTimeout"] = ds.QueryTimeout } - if das.AdditionalColumns != nil { - objectMap["additionalColumns"] = das.AdditionalColumns + if ds.AdditionalColumns != nil { + objectMap["additionalColumns"] = ds.AdditionalColumns } - if das.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = das.SourceRetryCount + if ds.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ds.SourceRetryCount } - if das.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = das.SourceRetryWait + if ds.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ds.SourceRetryWait } - if das.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = das.MaxConcurrentConnections + if ds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections } - if das.Type != "" { - objectMap["type"] = das.Type + if ds.Type != "" { + objectMap["type"] = ds.Type } - for k, v := range das.AdditionalProperties { + for k, v := range ds.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return &das, true +// AsDynamicsAXSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false } -// AsResponsysSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDrillSource() (*DrillSource, bool) { - return nil, false +// AsDrillSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDrillSource() (*DrillSource, bool) { + return &ds, true } -// AsCouchbaseSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &das, true +// AsBasicTabularSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ds, true } -// AsBinarySource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsBasicCopySource() (BasicCopySource, bool) { - return &das, true +// AsBasicCopySource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ds, true } -// UnmarshalJSON is the custom unmarshaler for DynamicsAXSource struct. -func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DrillSource struct. +func (ds *DrillSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -85261,16 +82842,7 @@ func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - das.Query = query - } - case "httpRequestTimeout": - if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) - if err != nil { - return err - } - das.HTTPRequestTimeout = HTTPRequestTimeout + ds.Query = query } case "queryTimeout": if v != nil { @@ -85279,7 +82851,7 @@ func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - das.QueryTimeout = queryTimeout + ds.QueryTimeout = queryTimeout } case "additionalColumns": if v != nil { @@ -85288,7 +82860,7 @@ func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - das.AdditionalColumns = &additionalColumns + ds.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -85297,10 +82869,10 @@ func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if das.AdditionalProperties == nil { - das.AdditionalProperties = make(map[string]interface{}) + if ds.AdditionalProperties == nil { + ds.AdditionalProperties = make(map[string]interface{}) } - das.AdditionalProperties[k] = additionalProperties + ds.AdditionalProperties[k] = additionalProperties } case "sourceRetryCount": if v != nil { @@ -85309,7 +82881,7 @@ func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - das.SourceRetryCount = sourceRetryCount + ds.SourceRetryCount = sourceRetryCount } case "sourceRetryWait": if v != nil { @@ -85318,7 +82890,7 @@ func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - das.SourceRetryWait = sourceRetryWait + ds.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -85327,7 +82899,7 @@ func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - das.MaxConcurrentConnections = maxConcurrentConnections + ds.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { @@ -85336,7 +82908,7 @@ func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - das.Type = typeVar + ds.Type = typeVar } } } @@ -85344,10 +82916,10 @@ func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { return nil } -// DynamicsCrmEntityDataset the Dynamics CRM entity dataset. -type DynamicsCrmEntityDataset struct { - // DynamicsCrmEntityDatasetTypeProperties - Dynamics CRM entity dataset properties. - *DynamicsCrmEntityDatasetTypeProperties `json:"typeProperties,omitempty"` +// DrillTableDataset drill server dataset. +type DrillTableDataset struct { + // DrillDatasetTypeProperties - Properties specific to this dataset type. + *DrillDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -85368,520 +82940,520 @@ type DynamicsCrmEntityDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) MarshalJSON() ([]byte, error) { - dced.Type = TypeDynamicsCrmEntity +// MarshalJSON is the custom marshaler for DrillTableDataset. +func (dtd DrillTableDataset) MarshalJSON() ([]byte, error) { + dtd.Type = TypeDrillTable objectMap := make(map[string]interface{}) - if dced.DynamicsCrmEntityDatasetTypeProperties != nil { - objectMap["typeProperties"] = dced.DynamicsCrmEntityDatasetTypeProperties + if dtd.DrillDatasetTypeProperties != nil { + objectMap["typeProperties"] = dtd.DrillDatasetTypeProperties } - if dced.Description != nil { - objectMap["description"] = dced.Description + if dtd.Description != nil { + objectMap["description"] = dtd.Description } - if dced.Structure != nil { - objectMap["structure"] = dced.Structure + if dtd.Structure != nil { + objectMap["structure"] = dtd.Structure } - if dced.Schema != nil { - objectMap["schema"] = dced.Schema + if dtd.Schema != nil { + objectMap["schema"] = dtd.Schema } - if dced.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dced.LinkedServiceName + if dtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dtd.LinkedServiceName } - if dced.Parameters != nil { - objectMap["parameters"] = dced.Parameters + if dtd.Parameters != nil { + objectMap["parameters"] = dtd.Parameters } - if dced.Annotations != nil { - objectMap["annotations"] = dced.Annotations + if dtd.Annotations != nil { + objectMap["annotations"] = dtd.Annotations } - if dced.Folder != nil { - objectMap["folder"] = dced.Folder + if dtd.Folder != nil { + objectMap["folder"] = dtd.Folder } - if dced.Type != "" { - objectMap["type"] = dced.Type + if dtd.Type != "" { + objectMap["type"] = dtd.Type } - for k, v := range dced.AdditionalProperties { + for k, v := range dtd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false +// AsDrillTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return &dtd, true } -// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return &dced, true +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsBasicDataset() (BasicDataset, bool) { - return &dced, true +// AsBasicDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &dtd, true } -// UnmarshalJSON is the custom unmarshaler for DynamicsCrmEntityDataset struct. -func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DrillTableDataset struct. +func (dtd *DrillTableDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -85891,12 +83463,12 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var dynamicsCrmEntityDatasetTypeProperties DynamicsCrmEntityDatasetTypeProperties - err = json.Unmarshal(*v, &dynamicsCrmEntityDatasetTypeProperties) + var drillDatasetTypeProperties DrillDatasetTypeProperties + err = json.Unmarshal(*v, &drillDatasetTypeProperties) if err != nil { return err } - dced.DynamicsCrmEntityDatasetTypeProperties = &dynamicsCrmEntityDatasetTypeProperties + dtd.DrillDatasetTypeProperties = &drillDatasetTypeProperties } default: if v != nil { @@ -85905,10 +83477,10 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if dced.AdditionalProperties == nil { - dced.AdditionalProperties = make(map[string]interface{}) + if dtd.AdditionalProperties == nil { + dtd.AdditionalProperties = make(map[string]interface{}) } - dced.AdditionalProperties[k] = additionalProperties + dtd.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -85917,7 +83489,7 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - dced.Description = &description + dtd.Description = &description } case "structure": if v != nil { @@ -85926,7 +83498,7 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - dced.Structure = structure + dtd.Structure = structure } case "schema": if v != nil { @@ -85935,7 +83507,7 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - dced.Schema = schema + dtd.Schema = schema } case "linkedServiceName": if v != nil { @@ -85944,7 +83516,7 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - dced.LinkedServiceName = &linkedServiceName + dtd.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -85953,7 +83525,7 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - dced.Parameters = parameters + dtd.Parameters = parameters } case "annotations": if v != nil { @@ -85962,7 +83534,7 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - dced.Annotations = &annotations + dtd.Annotations = &annotations } case "folder": if v != nil { @@ -85971,7 +83543,7 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - dced.Folder = &folder + dtd.Folder = &folder } case "type": if v != nil { @@ -85980,7 +83552,7 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - dced.Type = typeVar + dtd.Type = typeVar } } } @@ -85988,16 +83560,10 @@ func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { return nil } -// DynamicsCrmEntityDatasetTypeProperties dynamics CRM entity dataset properties. -type DynamicsCrmEntityDatasetTypeProperties struct { - // EntityName - The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` -} - -// DynamicsCrmLinkedService dynamics CRM linked service. -type DynamicsCrmLinkedService struct { - // DynamicsCrmLinkedServiceTypeProperties - Dynamics CRM linked service properties. - *DynamicsCrmLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// DynamicsAXLinkedService dynamics AX linked service. +type DynamicsAXLinkedService struct { + // DynamicsAXLinkedServiceTypeProperties - Dynamics AX linked service properties. + *DynamicsAXLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -86012,546 +83578,546 @@ type DynamicsCrmLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) MarshalJSON() ([]byte, error) { - dcls.Type = TypeDynamicsCrm +// MarshalJSON is the custom marshaler for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) MarshalJSON() ([]byte, error) { + dals.Type = TypeDynamicsAX objectMap := make(map[string]interface{}) - if dcls.DynamicsCrmLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dcls.DynamicsCrmLinkedServiceTypeProperties + if dals.DynamicsAXLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = dals.DynamicsAXLinkedServiceTypeProperties } - if dcls.ConnectVia != nil { - objectMap["connectVia"] = dcls.ConnectVia + if dals.ConnectVia != nil { + objectMap["connectVia"] = dals.ConnectVia } - if dcls.Description != nil { - objectMap["description"] = dcls.Description + if dals.Description != nil { + objectMap["description"] = dals.Description } - if dcls.Parameters != nil { - objectMap["parameters"] = dcls.Parameters + if dals.Parameters != nil { + objectMap["parameters"] = dals.Parameters } - if dcls.Annotations != nil { - objectMap["annotations"] = dcls.Annotations + if dals.Annotations != nil { + objectMap["annotations"] = dals.Annotations } - if dcls.Type != "" { - objectMap["type"] = dcls.Type + if dals.Type != "" { + objectMap["type"] = dals.Type } - for k, v := range dcls.AdditionalProperties { + for k, v := range dals.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return &dals, true +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return &dcls, true -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dcls, true +// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &dals, true } -// UnmarshalJSON is the custom unmarshaler for DynamicsCrmLinkedService struct. -func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsAXLinkedService struct. +func (dals *DynamicsAXLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -86561,12 +84127,12 @@ func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var dynamicsCrmLinkedServiceTypeProperties DynamicsCrmLinkedServiceTypeProperties - err = json.Unmarshal(*v, &dynamicsCrmLinkedServiceTypeProperties) + var dynamicsAXLinkedServiceTypeProperties DynamicsAXLinkedServiceTypeProperties + err = json.Unmarshal(*v, &dynamicsAXLinkedServiceTypeProperties) if err != nil { return err } - dcls.DynamicsCrmLinkedServiceTypeProperties = &dynamicsCrmLinkedServiceTypeProperties + dals.DynamicsAXLinkedServiceTypeProperties = &dynamicsAXLinkedServiceTypeProperties } default: if v != nil { @@ -86575,10 +84141,10 @@ func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if dcls.AdditionalProperties == nil { - dcls.AdditionalProperties = make(map[string]interface{}) + if dals.AdditionalProperties == nil { + dals.AdditionalProperties = make(map[string]interface{}) } - dcls.AdditionalProperties[k] = additionalProperties + dals.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -86587,7 +84153,7 @@ func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcls.ConnectVia = &connectVia + dals.ConnectVia = &connectVia } case "description": if v != nil { @@ -86596,7 +84162,7 @@ func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcls.Description = &description + dals.Description = &description } case "parameters": if v != nil { @@ -86605,7 +84171,7 @@ func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcls.Parameters = parameters + dals.Parameters = parameters } case "annotations": if v != nil { @@ -86614,7 +84180,7 @@ func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcls.Annotations = &annotations + dals.Annotations = &annotations } case "type": if v != nil { @@ -86623,7 +84189,7 @@ func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcls.Type = typeVar + dals.Type = typeVar } } } @@ -86631,36 +84197,24 @@ func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { return nil } -// DynamicsCrmLinkedServiceTypeProperties dynamics CRM linked service properties. -type DynamicsCrmLinkedServiceTypeProperties struct { - // DeploymentType - 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' - DeploymentType DynamicsDeploymentType `json:"deploymentType,omitempty"` - // HostName - 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). - HostName interface{} `json:"hostName,omitempty"` - // Port - 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. - Port interface{} `json:"port,omitempty"` - // ServiceURI - 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). - ServiceURI interface{} `json:"serviceUri,omitempty"` - // OrganizationName - 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). - OrganizationName interface{} `json:"organizationName,omitempty"` - // AuthenticationType - 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' - AuthenticationType DynamicsAuthenticationType `json:"authenticationType,omitempty"` - // Username - User name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password to access the Dynamics CRM instance. - Password BasicSecretBase `json:"password,omitempty"` - // ServicePrincipalID - The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string). +// DynamicsAXLinkedServiceTypeProperties dynamics AX linked service properties. +type DynamicsAXLinkedServiceTypeProperties struct { + // URL - The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. + URL interface{} `json:"url,omitempty"` + // ServicePrincipalID - Specify the application's client ID. Type: string (or Expression with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalCredentialType - 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). - ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` - // ServicePrincipalCredential - 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. - ServicePrincipalCredential BasicSecretBase `json:"servicePrincipalCredential,omitempty"` + // ServicePrincipalKey - 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). + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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). + Tenant interface{} `json:"tenant,omitempty"` + // AadResourceID - Specify the resource you are requesting authorization. Type: string (or Expression with resultType string). + AadResourceID interface{} `json:"aadResourceId,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for DynamicsCrmLinkedServiceTypeProperties struct. -func (dclstp *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsAXLinkedServiceTypeProperties struct. +func (dalstp *DynamicsAXLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -86668,102 +84222,49 @@ func (dclstp *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(body []byte) } for k, v := range m { switch k { - case "deploymentType": - if v != nil { - var deploymentType DynamicsDeploymentType - err = json.Unmarshal(*v, &deploymentType) - if err != nil { - return err - } - dclstp.DeploymentType = deploymentType - } - case "hostName": - if v != nil { - var hostName interface{} - err = json.Unmarshal(*v, &hostName) - if err != nil { - return err - } - dclstp.HostName = hostName - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - dclstp.Port = port - } - case "serviceUri": - if v != nil { - var serviceURI interface{} - err = json.Unmarshal(*v, &serviceURI) - if err != nil { - return err - } - dclstp.ServiceURI = serviceURI - } - case "organizationName": - if v != nil { - var organizationName interface{} - err = json.Unmarshal(*v, &organizationName) - if err != nil { - return err - } - dclstp.OrganizationName = organizationName - } - case "authenticationType": - if v != nil { - var authenticationType DynamicsAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - dclstp.AuthenticationType = authenticationType - } - case "username": + case "url": if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) + var URL interface{} + err = json.Unmarshal(*v, &URL) if err != nil { return err } - dclstp.Username = username + dalstp.URL = URL } - case "password": + case "servicePrincipalId": if v != nil { - password, err := unmarshalBasicSecretBase(*v) + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) if err != nil { return err } - dclstp.Password = password + dalstp.ServicePrincipalID = servicePrincipalID } - case "servicePrincipalId": + case "servicePrincipalKey": if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - dclstp.ServicePrincipalID = servicePrincipalID + dalstp.ServicePrincipalKey = servicePrincipalKey } - case "servicePrincipalCredentialType": + case "tenant": if v != nil { - var servicePrincipalCredentialType interface{} - err = json.Unmarshal(*v, &servicePrincipalCredentialType) + var tenant interface{} + err = json.Unmarshal(*v, &tenant) if err != nil { return err } - dclstp.ServicePrincipalCredentialType = servicePrincipalCredentialType + dalstp.Tenant = tenant } - case "servicePrincipalCredential": + case "aadResourceId": if v != nil { - servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) + var aadResourceID interface{} + err = json.Unmarshal(*v, &aadResourceID) if err != nil { return err } - dclstp.ServicePrincipalCredential = servicePrincipalCredential + dalstp.AadResourceID = aadResourceID } case "encryptedCredential": if v != nil { @@ -86772,7 +84273,7 @@ func (dclstp *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(body []byte) if err != nil { return err } - dclstp.EncryptedCredential = encryptedCredential + dalstp.EncryptedCredential = encryptedCredential } } } @@ -86780,264 +84281,544 @@ func (dclstp *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(body []byte) return nil } -// DynamicsCrmSink a copy activity Dynamics CRM sink. -type DynamicsCrmSink struct { - // WriteBehavior - The write behavior for the operation. - WriteBehavior *string `json:"writeBehavior,omitempty"` - // IgnoreNullValues - The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` - // AlternateKeyName - The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). - AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` +// DynamicsAXResourceDataset the path of the Dynamics AX OData entity. +type DynamicsAXResourceDataset struct { + // DynamicsAXResourceDatasetTypeProperties - Dynamics AX OData resource dataset properties. + *DynamicsAXResourceDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DynamicsCrmSink. -func (dcs DynamicsCrmSink) MarshalJSON() ([]byte, error) { - dcs.Type = TypeDynamicsCrmSink +// MarshalJSON is the custom marshaler for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) MarshalJSON() ([]byte, error) { + dard.Type = TypeDynamicsAXResource objectMap := make(map[string]interface{}) - if dcs.WriteBehavior != nil { - objectMap["writeBehavior"] = dcs.WriteBehavior + if dard.DynamicsAXResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = dard.DynamicsAXResourceDatasetTypeProperties } - if dcs.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = dcs.IgnoreNullValues + if dard.Description != nil { + objectMap["description"] = dard.Description } - if dcs.AlternateKeyName != nil { - objectMap["alternateKeyName"] = dcs.AlternateKeyName + if dard.Structure != nil { + objectMap["structure"] = dard.Structure } - if dcs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = dcs.WriteBatchSize + if dard.Schema != nil { + objectMap["schema"] = dard.Schema } - if dcs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = dcs.WriteBatchTimeout + if dard.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dard.LinkedServiceName } - if dcs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = dcs.SinkRetryCount + if dard.Parameters != nil { + objectMap["parameters"] = dard.Parameters } - if dcs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = dcs.SinkRetryWait + if dard.Annotations != nil { + objectMap["annotations"] = dard.Annotations } - if dcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections + if dard.Folder != nil { + objectMap["folder"] = dard.Folder } - if dcs.Type != "" { - objectMap["type"] = dcs.Type + if dard.Type != "" { + objectMap["type"] = dard.Type } - for k, v := range dcs.AdditionalProperties { + for k, v := range dard.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return &dcs, true +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return &dard, true +} + +// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsInformixSink() (*InformixSink, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsOdbcSink() (*OdbcSink, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsOracleSink() (*OracleSink, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSQLMISink() (*SQLMISink, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSQLSink() (*SQLSink, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsBlobSink() (*BlobSink, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsBinarySink() (*BinarySink, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsParquetSink() (*ParquetSink, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAvroSink() (*AvroSink, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsDrillTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsRestSink() (*RestSink, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsOrcSink() (*OrcSink, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsJSONSink() (*JSONSink, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsCopySink() (*CopySink, bool) { +// AsHTTPDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsBasicCopySink() (BasicCopySink, bool) { - return &dcs, true +// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for DynamicsCrmSink struct. -func (dcs *DynamicsCrmSink) UnmarshalJSON(body []byte) error { +// AsWebTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &dard, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsAXResourceDataset struct. +func (dard *DynamicsAXResourceDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -87045,98 +84826,98 @@ func (dcs *DynamicsCrmSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "writeBehavior": + case "typeProperties": if v != nil { - var writeBehavior string - err = json.Unmarshal(*v, &writeBehavior) + var dynamicsAXResourceDatasetTypeProperties DynamicsAXResourceDatasetTypeProperties + err = json.Unmarshal(*v, &dynamicsAXResourceDatasetTypeProperties) if err != nil { return err } - dcs.WriteBehavior = &writeBehavior + dard.DynamicsAXResourceDatasetTypeProperties = &dynamicsAXResourceDatasetTypeProperties } - case "ignoreNullValues": + default: if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - dcs.IgnoreNullValues = ignoreNullValues + if dard.AdditionalProperties == nil { + dard.AdditionalProperties = make(map[string]interface{}) + } + dard.AdditionalProperties[k] = additionalProperties } - case "alternateKeyName": + case "description": if v != nil { - var alternateKeyName interface{} - err = json.Unmarshal(*v, &alternateKeyName) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - dcs.AlternateKeyName = alternateKeyName + dard.Description = &description } - default: + case "structure": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - if dcs.AdditionalProperties == nil { - dcs.AdditionalProperties = make(map[string]interface{}) - } - dcs.AdditionalProperties[k] = additionalProperties + dard.Structure = structure } - case "writeBatchSize": + case "schema": if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - dcs.WriteBatchSize = writeBatchSize + dard.Schema = schema } - case "writeBatchTimeout": + case "linkedServiceName": if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - dcs.WriteBatchTimeout = writeBatchTimeout + dard.LinkedServiceName = &linkedServiceName } - case "sinkRetryCount": + case "parameters": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - dcs.SinkRetryCount = sinkRetryCount + dard.Parameters = parameters } - case "sinkRetryWait": + case "annotations": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - dcs.SinkRetryWait = sinkRetryWait + dard.Annotations = &annotations } - case "maxConcurrentConnections": + case "folder": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - dcs.MaxConcurrentConnections = maxConcurrentConnections + dard.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - dcs.Type = typeVar + dard.Type = typeVar } } } @@ -87144,10 +84925,20 @@ func (dcs *DynamicsCrmSink) UnmarshalJSON(body []byte) error { return nil } -// DynamicsCrmSource a copy activity Dynamics CRM source. -type DynamicsCrmSource struct { - // Query - FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & on-premises). Type: string (or Expression with resultType string). +// DynamicsAXResourceDatasetTypeProperties dynamics AX OData resource dataset properties. +type DynamicsAXResourceDatasetTypeProperties struct { + // Path - The path of the Dynamics AX OData entity. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` +} + +// DynamicsAXSource a copy activity Dynamics AX source. +type DynamicsAXSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` + // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -87162,516 +84953,522 @@ type DynamicsCrmSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DynamicsCrmSource. -func (dcs DynamicsCrmSource) MarshalJSON() ([]byte, error) { - dcs.Type = TypeDynamicsCrmSource +// MarshalJSON is the custom marshaler for DynamicsAXSource. +func (das DynamicsAXSource) MarshalJSON() ([]byte, error) { + das.Type = TypeDynamicsAXSource objectMap := make(map[string]interface{}) - if dcs.Query != nil { - objectMap["query"] = dcs.Query + if das.Query != nil { + objectMap["query"] = das.Query } - if dcs.AdditionalColumns != nil { - objectMap["additionalColumns"] = dcs.AdditionalColumns + if das.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = das.HTTPRequestTimeout } - if dcs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = dcs.SourceRetryCount + if das.QueryTimeout != nil { + objectMap["queryTimeout"] = das.QueryTimeout } - if dcs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = dcs.SourceRetryWait + if das.AdditionalColumns != nil { + objectMap["additionalColumns"] = das.AdditionalColumns } - if dcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections + if das.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = das.SourceRetryCount } - if dcs.Type != "" { - objectMap["type"] = dcs.Type + if das.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = das.SourceRetryWait } - for k, v := range dcs.AdditionalProperties { + if das.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = das.MaxConcurrentConnections + } + if das.Type != "" { + objectMap["type"] = das.Type + } + for k, v := range das.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsHTTPSource() (*HTTPSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsOffice365Source() (*Office365Source, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsOffice365Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsWebSource() (*WebSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsOracleSource() (*OracleSource, bool) { +// AsWebSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsOracleSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsHdfsSource() (*HdfsSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsRestSource() (*RestSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsRestSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsODataSource() (*ODataSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsODataSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsRelationalSource() (*RelationalSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return &dcs, true +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsBlobSource() (*BlobSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsBlobSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false +// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return &das, true } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsVerticaSource() (*VerticaSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsZohoSource() (*ZohoSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsXeroSource() (*XeroSource, bool) { +// AsZohoSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSquareSource() (*SquareSource, bool) { +// AsXeroSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSparkSource() (*SparkSource, bool) { +// AsSquareSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsShopifySource() (*ShopifySource, bool) { +// AsSparkSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsShopifySource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsPrestoSource() (*PrestoSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMarketoSource() (*MarketoSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsJiraSource() (*JiraSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsJiraSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsHubspotSource() (*HubspotSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsHiveSource() (*HiveSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHiveSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsEloquaSource() (*EloquaSource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDrillSource() (*DrillSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsDrillSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsConcurSource() (*ConcurSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsConcurSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCassandraSource() (*CassandraSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsTeradataSource() (*TeradataSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsSQLMISource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMySQLSource() (*MySQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsOdbcSource() (*OdbcSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDb2Source() (*Db2Source, bool) { +// AsOdbcSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsInformixSource() (*InformixSource, bool) { +// AsDb2Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsInformixSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsBinarySource() (*BinarySource, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &das, true +} + +// AsBinarySource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsBasicCopySource() (BasicCopySource, bool) { - return &dcs, true +// AsBasicCopySource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsBasicCopySource() (BasicCopySource, bool) { + return &das, true } -// UnmarshalJSON is the custom unmarshaler for DynamicsCrmSource struct. -func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsAXSource struct. +func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -87686,7 +85483,25 @@ func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcs.Query = query + das.Query = query + } + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + das.HTTPRequestTimeout = HTTPRequestTimeout + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + das.QueryTimeout = queryTimeout } case "additionalColumns": if v != nil { @@ -87695,7 +85510,7 @@ func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcs.AdditionalColumns = &additionalColumns + das.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -87704,10 +85519,10 @@ func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if dcs.AdditionalProperties == nil { - dcs.AdditionalProperties = make(map[string]interface{}) + if das.AdditionalProperties == nil { + das.AdditionalProperties = make(map[string]interface{}) } - dcs.AdditionalProperties[k] = additionalProperties + das.AdditionalProperties[k] = additionalProperties } case "sourceRetryCount": if v != nil { @@ -87716,7 +85531,7 @@ func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcs.SourceRetryCount = sourceRetryCount + das.SourceRetryCount = sourceRetryCount } case "sourceRetryWait": if v != nil { @@ -87725,7 +85540,7 @@ func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcs.SourceRetryWait = sourceRetryWait + das.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -87734,7 +85549,7 @@ func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcs.MaxConcurrentConnections = maxConcurrentConnections + das.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { @@ -87743,7 +85558,7 @@ func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - dcs.Type = typeVar + das.Type = typeVar } } } @@ -87751,10 +85566,10 @@ func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { return nil } -// DynamicsEntityDataset the Dynamics entity dataset. -type DynamicsEntityDataset struct { - // DynamicsEntityDatasetTypeProperties - Dynamics entity dataset properties. - *DynamicsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` +// DynamicsCrmEntityDataset the Dynamics CRM entity dataset. +type DynamicsCrmEntityDataset struct { + // DynamicsCrmEntityDatasetTypeProperties - Dynamics CRM entity dataset properties. + *DynamicsCrmEntityDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -87775,520 +85590,520 @@ type DynamicsEntityDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) MarshalJSON() ([]byte, error) { - ded.Type = TypeDynamicsEntity +// MarshalJSON is the custom marshaler for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) MarshalJSON() ([]byte, error) { + dced.Type = TypeDynamicsCrmEntity objectMap := make(map[string]interface{}) - if ded.DynamicsEntityDatasetTypeProperties != nil { - objectMap["typeProperties"] = ded.DynamicsEntityDatasetTypeProperties + if dced.DynamicsCrmEntityDatasetTypeProperties != nil { + objectMap["typeProperties"] = dced.DynamicsCrmEntityDatasetTypeProperties } - if ded.Description != nil { - objectMap["description"] = ded.Description + if dced.Description != nil { + objectMap["description"] = dced.Description } - if ded.Structure != nil { - objectMap["structure"] = ded.Structure + if dced.Structure != nil { + objectMap["structure"] = dced.Structure } - if ded.Schema != nil { - objectMap["schema"] = ded.Schema + if dced.Schema != nil { + objectMap["schema"] = dced.Schema } - if ded.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ded.LinkedServiceName + if dced.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dced.LinkedServiceName } - if ded.Parameters != nil { - objectMap["parameters"] = ded.Parameters + if dced.Parameters != nil { + objectMap["parameters"] = dced.Parameters } - if ded.Annotations != nil { - objectMap["annotations"] = ded.Annotations + if dced.Annotations != nil { + objectMap["annotations"] = dced.Annotations } - if ded.Folder != nil { - objectMap["folder"] = ded.Folder + if dced.Folder != nil { + objectMap["folder"] = dced.Folder } - if ded.Type != "" { - objectMap["type"] = ded.Type + if dced.Type != "" { + objectMap["type"] = dced.Type } - for k, v := range ded.AdditionalProperties { + for k, v := range dced.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return &dced, true } -// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return &ded, true +// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsBasicDataset() (BasicDataset, bool) { - return &ded, true +// AsBasicDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsBasicDataset() (BasicDataset, bool) { + return &dced, true } -// UnmarshalJSON is the custom unmarshaler for DynamicsEntityDataset struct. -func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsCrmEntityDataset struct. +func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -88298,12 +86113,12 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var dynamicsEntityDatasetTypeProperties DynamicsEntityDatasetTypeProperties - err = json.Unmarshal(*v, &dynamicsEntityDatasetTypeProperties) + var dynamicsCrmEntityDatasetTypeProperties DynamicsCrmEntityDatasetTypeProperties + err = json.Unmarshal(*v, &dynamicsCrmEntityDatasetTypeProperties) if err != nil { return err } - ded.DynamicsEntityDatasetTypeProperties = &dynamicsEntityDatasetTypeProperties + dced.DynamicsCrmEntityDatasetTypeProperties = &dynamicsCrmEntityDatasetTypeProperties } default: if v != nil { @@ -88312,10 +86127,10 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if ded.AdditionalProperties == nil { - ded.AdditionalProperties = make(map[string]interface{}) + if dced.AdditionalProperties == nil { + dced.AdditionalProperties = make(map[string]interface{}) } - ded.AdditionalProperties[k] = additionalProperties + dced.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -88324,7 +86139,7 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - ded.Description = &description + dced.Description = &description } case "structure": if v != nil { @@ -88333,7 +86148,7 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - ded.Structure = structure + dced.Structure = structure } case "schema": if v != nil { @@ -88342,7 +86157,7 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - ded.Schema = schema + dced.Schema = schema } case "linkedServiceName": if v != nil { @@ -88351,7 +86166,7 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - ded.LinkedServiceName = &linkedServiceName + dced.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -88360,7 +86175,7 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - ded.Parameters = parameters + dced.Parameters = parameters } case "annotations": if v != nil { @@ -88369,7 +86184,7 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - ded.Annotations = &annotations + dced.Annotations = &annotations } case "folder": if v != nil { @@ -88378,7 +86193,7 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - ded.Folder = &folder + dced.Folder = &folder } case "type": if v != nil { @@ -88387,7 +86202,7 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - ded.Type = typeVar + dced.Type = typeVar } } } @@ -88395,16 +86210,16 @@ func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { return nil } -// DynamicsEntityDatasetTypeProperties dynamics entity dataset properties. -type DynamicsEntityDatasetTypeProperties struct { +// DynamicsCrmEntityDatasetTypeProperties dynamics CRM entity dataset properties. +type DynamicsCrmEntityDatasetTypeProperties struct { // EntityName - The logical name of the entity. Type: string (or Expression with resultType string). EntityName interface{} `json:"entityName,omitempty"` } -// DynamicsLinkedService dynamics linked service. -type DynamicsLinkedService struct { - // DynamicsLinkedServiceTypeProperties - Dynamics linked service properties. - *DynamicsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// DynamicsCrmLinkedService dynamics CRM linked service. +type DynamicsCrmLinkedService struct { + // DynamicsCrmLinkedServiceTypeProperties - Dynamics CRM linked service properties. + *DynamicsCrmLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -88419,546 +86234,546 @@ type DynamicsLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DynamicsLinkedService. -func (dls DynamicsLinkedService) MarshalJSON() ([]byte, error) { - dls.Type = TypeDynamics +// MarshalJSON is the custom marshaler for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) MarshalJSON() ([]byte, error) { + dcls.Type = TypeDynamicsCrm objectMap := make(map[string]interface{}) - if dls.DynamicsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dls.DynamicsLinkedServiceTypeProperties + if dcls.DynamicsCrmLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = dcls.DynamicsCrmLinkedServiceTypeProperties } - if dls.ConnectVia != nil { - objectMap["connectVia"] = dls.ConnectVia + if dcls.ConnectVia != nil { + objectMap["connectVia"] = dcls.ConnectVia } - if dls.Description != nil { - objectMap["description"] = dls.Description + if dcls.Description != nil { + objectMap["description"] = dcls.Description } - if dls.Parameters != nil { - objectMap["parameters"] = dls.Parameters + if dcls.Parameters != nil { + objectMap["parameters"] = dcls.Parameters } - if dls.Annotations != nil { - objectMap["annotations"] = dls.Annotations + if dcls.Annotations != nil { + objectMap["annotations"] = dcls.Annotations } - if dls.Type != "" { - objectMap["type"] = dls.Type + if dcls.Type != "" { + objectMap["type"] = dcls.Type } - for k, v := range dls.AdditionalProperties { + for k, v := range dcls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return &dcls, true } -// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return &dls, true +// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dls, true +// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &dcls, true } -// UnmarshalJSON is the custom unmarshaler for DynamicsLinkedService struct. -func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsCrmLinkedService struct. +func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -88968,12 +86783,12 @@ func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var dynamicsLinkedServiceTypeProperties DynamicsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &dynamicsLinkedServiceTypeProperties) + var dynamicsCrmLinkedServiceTypeProperties DynamicsCrmLinkedServiceTypeProperties + err = json.Unmarshal(*v, &dynamicsCrmLinkedServiceTypeProperties) if err != nil { return err } - dls.DynamicsLinkedServiceTypeProperties = &dynamicsLinkedServiceTypeProperties + dcls.DynamicsCrmLinkedServiceTypeProperties = &dynamicsCrmLinkedServiceTypeProperties } default: if v != nil { @@ -88982,10 +86797,10 @@ func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if dls.AdditionalProperties == nil { - dls.AdditionalProperties = make(map[string]interface{}) + if dcls.AdditionalProperties == nil { + dcls.AdditionalProperties = make(map[string]interface{}) } - dls.AdditionalProperties[k] = additionalProperties + dcls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -88994,7 +86809,7 @@ func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - dls.ConnectVia = &connectVia + dcls.ConnectVia = &connectVia } case "description": if v != nil { @@ -89003,7 +86818,7 @@ func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - dls.Description = &description + dcls.Description = &description } case "parameters": if v != nil { @@ -89012,7 +86827,7 @@ func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - dls.Parameters = parameters + dcls.Parameters = parameters } case "annotations": if v != nil { @@ -89021,7 +86836,7 @@ func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - dls.Annotations = &annotations + dcls.Annotations = &annotations } case "type": if v != nil { @@ -89030,7 +86845,7 @@ func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - dls.Type = typeVar + dcls.Type = typeVar } } } @@ -89038,23 +86853,23 @@ func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { return nil } -// DynamicsLinkedServiceTypeProperties dynamics linked service properties. -type DynamicsLinkedServiceTypeProperties struct { - // DeploymentType - 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). - DeploymentType interface{} `json:"deploymentType,omitempty"` - // HostName - 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). +// DynamicsCrmLinkedServiceTypeProperties dynamics CRM linked service properties. +type DynamicsCrmLinkedServiceTypeProperties struct { + // DeploymentType - 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' + DeploymentType DynamicsDeploymentType `json:"deploymentType,omitempty"` + // HostName - 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). HostName interface{} `json:"hostName,omitempty"` - // Port - 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. + // Port - 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. Port interface{} `json:"port,omitempty"` - // ServiceURI - 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). + // ServiceURI - 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). ServiceURI interface{} `json:"serviceUri,omitempty"` - // OrganizationName - 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). + // OrganizationName - 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). OrganizationName interface{} `json:"organizationName,omitempty"` - // AuthenticationType - 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). - AuthenticationType interface{} `json:"authenticationType,omitempty"` - // Username - User name to access the Dynamics instance. Type: string (or Expression with resultType string). + // AuthenticationType - 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' + AuthenticationType DynamicsAuthenticationType `json:"authenticationType,omitempty"` + // Username - User name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` - // Password - Password to access the Dynamics instance. + // Password - Password to access the Dynamics CRM instance. Password BasicSecretBase `json:"password,omitempty"` // ServicePrincipalID - The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string). ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` @@ -89066,8 +86881,8 @@ type DynamicsLinkedServiceTypeProperties struct { EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for DynamicsLinkedServiceTypeProperties struct. -func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsCrmLinkedServiceTypeProperties struct. +func (dclstp *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -89077,12 +86892,12 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err switch k { case "deploymentType": if v != nil { - var deploymentType interface{} + var deploymentType DynamicsDeploymentType err = json.Unmarshal(*v, &deploymentType) if err != nil { return err } - dlstp.DeploymentType = deploymentType + dclstp.DeploymentType = deploymentType } case "hostName": if v != nil { @@ -89091,7 +86906,7 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err if err != nil { return err } - dlstp.HostName = hostName + dclstp.HostName = hostName } case "port": if v != nil { @@ -89100,7 +86915,7 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err if err != nil { return err } - dlstp.Port = port + dclstp.Port = port } case "serviceUri": if v != nil { @@ -89109,7 +86924,7 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err if err != nil { return err } - dlstp.ServiceURI = serviceURI + dclstp.ServiceURI = serviceURI } case "organizationName": if v != nil { @@ -89118,16 +86933,16 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err if err != nil { return err } - dlstp.OrganizationName = organizationName + dclstp.OrganizationName = organizationName } case "authenticationType": if v != nil { - var authenticationType interface{} + var authenticationType DynamicsAuthenticationType err = json.Unmarshal(*v, &authenticationType) if err != nil { return err } - dlstp.AuthenticationType = authenticationType + dclstp.AuthenticationType = authenticationType } case "username": if v != nil { @@ -89136,7 +86951,7 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err if err != nil { return err } - dlstp.Username = username + dclstp.Username = username } case "password": if v != nil { @@ -89144,7 +86959,7 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err if err != nil { return err } - dlstp.Password = password + dclstp.Password = password } case "servicePrincipalId": if v != nil { @@ -89153,7 +86968,7 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err if err != nil { return err } - dlstp.ServicePrincipalID = servicePrincipalID + dclstp.ServicePrincipalID = servicePrincipalID } case "servicePrincipalCredentialType": if v != nil { @@ -89162,7 +86977,7 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err if err != nil { return err } - dlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType + dclstp.ServicePrincipalCredentialType = servicePrincipalCredentialType } case "servicePrincipalCredential": if v != nil { @@ -89170,7 +86985,7 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err if err != nil { return err } - dlstp.ServicePrincipalCredential = servicePrincipalCredential + dclstp.ServicePrincipalCredential = servicePrincipalCredential } case "encryptedCredential": if v != nil { @@ -89179,272 +86994,916 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err if err != nil { return err } - dlstp.EncryptedCredential = encryptedCredential + dclstp.EncryptedCredential = encryptedCredential + } + } + } + + return nil +} + +// DynamicsCrmSink a copy activity Dynamics CRM sink. +type DynamicsCrmSink struct { + // WriteBehavior - The write behavior for the operation. + WriteBehavior *string `json:"writeBehavior,omitempty"` + // IgnoreNullValues - The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). + IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + // AlternateKeyName - The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). + AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsCrmSink. +func (dcs DynamicsCrmSink) MarshalJSON() ([]byte, error) { + dcs.Type = TypeDynamicsCrmSink + objectMap := make(map[string]interface{}) + if dcs.WriteBehavior != nil { + objectMap["writeBehavior"] = dcs.WriteBehavior + } + if dcs.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = dcs.IgnoreNullValues + } + if dcs.AlternateKeyName != nil { + objectMap["alternateKeyName"] = dcs.AlternateKeyName + } + if dcs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = dcs.WriteBatchSize + } + if dcs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = dcs.WriteBatchTimeout + } + if dcs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = dcs.SinkRetryCount + } + if dcs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = dcs.SinkRetryWait + } + if dcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections + } + if dcs.Type != "" { + objectMap["type"] = dcs.Type + } + for k, v := range dcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return &dcs, true +} + +// AsDynamicsSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsBasicCopySink() (BasicCopySink, bool) { + return &dcs, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsCrmSink struct. +func (dcs *DynamicsCrmSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior string + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + dcs.WriteBehavior = &writeBehavior + } + case "ignoreNullValues": + if v != nil { + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) + if err != nil { + return err + } + dcs.IgnoreNullValues = ignoreNullValues + } + case "alternateKeyName": + if v != nil { + var alternateKeyName interface{} + err = json.Unmarshal(*v, &alternateKeyName) + if err != nil { + return err + } + dcs.AlternateKeyName = alternateKeyName + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dcs.AdditionalProperties == nil { + dcs.AdditionalProperties = make(map[string]interface{}) + } + dcs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + dcs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + dcs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + dcs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + dcs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + dcs.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dcs.Type = typeVar } } } - return nil + return nil +} + +// DynamicsCrmSource a copy activity Dynamics CRM source. +type DynamicsCrmSource struct { + // Query - FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & on-premises). Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsCrmSource. +func (dcs DynamicsCrmSource) MarshalJSON() ([]byte, error) { + dcs.Type = TypeDynamicsCrmSource + objectMap := make(map[string]interface{}) + if dcs.Query != nil { + objectMap["query"] = dcs.Query + } + if dcs.AdditionalColumns != nil { + objectMap["additionalColumns"] = dcs.AdditionalColumns + } + if dcs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = dcs.SourceRetryCount + } + if dcs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = dcs.SourceRetryWait + } + if dcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections + } + if dcs.Type != "" { + objectMap["type"] = dcs.Type + } + for k, v := range dcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return &dcs, true +} + +// AsDynamicsSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false } -// DynamicsSink a copy activity Dynamics sink. -type DynamicsSink struct { - // WriteBehavior - The write behavior for the operation. - WriteBehavior *string `json:"writeBehavior,omitempty"` - // IgnoreNullValues - The flag indicating whether ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` - // AlternateKeyName - The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). - AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` +// AsMariaDBSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for DynamicsSink. -func (ds DynamicsSink) MarshalJSON() ([]byte, error) { - ds.Type = TypeDynamicsSink - objectMap := make(map[string]interface{}) - if ds.WriteBehavior != nil { - objectMap["writeBehavior"] = ds.WriteBehavior - } - if ds.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = ds.IgnoreNullValues - } - if ds.AlternateKeyName != nil { - objectMap["alternateKeyName"] = ds.AlternateKeyName - } - if ds.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ds.WriteBatchSize - } - if ds.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ds.WriteBatchTimeout - } - if ds.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ds.SinkRetryCount - } - if ds.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ds.SinkRetryWait - } - if ds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections - } - if ds.Type != "" { - objectMap["type"] = ds.Type - } - for k, v := range ds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsMagentoSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsJiraSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsImpalaSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsHubspotSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsHiveSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsHBaseSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsGreenplumSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsDynamicsSink() (*DynamicsSink, bool) { - return &ds, true +// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsEloquaSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsInformixSink() (*InformixSink, bool) { +// AsDrillSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsOdbcSink() (*OdbcSink, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsConcurSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsOracleSink() (*OracleSink, bool) { +// AsCassandraSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsTeradataSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSQLMISink() (*SQLMISink, bool) { +// AsSQLDWSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsSQLMISource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSQLSink() (*SQLSink, bool) { +// AsSQLServerSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsSQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsSapTableSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsBlobSink() (*BlobSink, bool) { +// AsSapHanaSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsBinarySink() (*BinarySink, bool) { +// AsSapEccSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsParquetSink() (*ParquetSink, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAvroSink() (*AvroSink, bool) { +// AsSalesforceSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsSapBwSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsSybaseSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsMySQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsOdbcSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsDb2Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsRestSink() (*RestSink, bool) { +// AsInformixSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsOrcSink() (*OrcSink, bool) { +// AsAzureTableSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsJSONSink() (*JSONSink, bool) { +// AsTabularSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsCopySink() (*CopySink, bool) { +// AsBinarySource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ds, true +// AsOrcSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsOrcSource() (*OrcSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for DynamicsSink struct. -func (ds *DynamicsSink) UnmarshalJSON(body []byte) error { +// AsXMLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsBasicCopySource() (BasicCopySource, bool) { + return &dcs, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsCrmSource struct. +func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -89452,32 +87911,23 @@ func (ds *DynamicsSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "writeBehavior": - if v != nil { - var writeBehavior string - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - ds.WriteBehavior = &writeBehavior - } - case "ignoreNullValues": + case "query": if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - ds.IgnoreNullValues = ignoreNullValues + dcs.Query = query } - case "alternateKeyName": + case "additionalColumns": if v != nil { - var alternateKeyName interface{} - err = json.Unmarshal(*v, &alternateKeyName) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - ds.AlternateKeyName = alternateKeyName + dcs.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -89486,46 +87936,28 @@ func (ds *DynamicsSink) UnmarshalJSON(body []byte) error { if err != nil { return err } - if ds.AdditionalProperties == nil { - ds.AdditionalProperties = make(map[string]interface{}) - } - ds.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ds.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err + if dcs.AdditionalProperties == nil { + dcs.AdditionalProperties = make(map[string]interface{}) } - ds.WriteBatchTimeout = writeBatchTimeout + dcs.AdditionalProperties[k] = additionalProperties } - case "sinkRetryCount": + case "sourceRetryCount": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - ds.SinkRetryCount = sinkRetryCount + dcs.SourceRetryCount = sourceRetryCount } - case "sinkRetryWait": + case "sourceRetryWait": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - ds.SinkRetryWait = sinkRetryWait + dcs.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -89534,16 +87966,16 @@ func (ds *DynamicsSink) UnmarshalJSON(body []byte) error { if err != nil { return err } - ds.MaxConcurrentConnections = maxConcurrentConnections + dcs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - ds.Type = typeVar + dcs.Type = typeVar } } } @@ -89551,534 +87983,544 @@ func (ds *DynamicsSink) UnmarshalJSON(body []byte) error { return nil } -// DynamicsSource a copy activity Dynamics source. -type DynamicsSource struct { - // Query - FetchXML is a proprietary query language that is used in Microsoft Dynamics (online & on-premises). Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// DynamicsEntityDataset the Dynamics entity dataset. +type DynamicsEntityDataset struct { + // DynamicsEntityDatasetTypeProperties - Dynamics entity dataset properties. + *DynamicsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for DynamicsSource. -func (ds DynamicsSource) MarshalJSON() ([]byte, error) { - ds.Type = TypeDynamicsSource +// MarshalJSON is the custom marshaler for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) MarshalJSON() ([]byte, error) { + ded.Type = TypeDynamicsEntity objectMap := make(map[string]interface{}) - if ds.Query != nil { - objectMap["query"] = ds.Query + if ded.DynamicsEntityDatasetTypeProperties != nil { + objectMap["typeProperties"] = ded.DynamicsEntityDatasetTypeProperties } - if ds.AdditionalColumns != nil { - objectMap["additionalColumns"] = ds.AdditionalColumns + if ded.Description != nil { + objectMap["description"] = ded.Description } - if ds.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ds.SourceRetryCount + if ded.Structure != nil { + objectMap["structure"] = ded.Structure } - if ds.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ds.SourceRetryWait + if ded.Schema != nil { + objectMap["schema"] = ded.Schema } - if ds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections + if ded.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ded.LinkedServiceName } - if ds.Type != "" { - objectMap["type"] = ds.Type + if ded.Parameters != nil { + objectMap["parameters"] = ded.Parameters } - for k, v := range ds.AdditionalProperties { + if ded.Annotations != nil { + objectMap["annotations"] = ded.Annotations + } + if ded.Folder != nil { + objectMap["folder"] = ded.Folder + } + if ded.Type != "" { + objectMap["type"] = ded.Type + } + for k, v := range ded.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHTTPSource() (*HTTPSource, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOffice365Source() (*Office365Source, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsWebSource() (*WebSource, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOracleSource() (*OracleSource, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHdfsSource() (*HdfsSource, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsRestSource() (*RestSource, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsODataSource() (*ODataSource, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsRelationalSource() (*RelationalSource, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDynamicsSource() (*DynamicsSource, bool) { - return &ds, true -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsBlobSource() (*BlobSource, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsVerticaSource() (*VerticaSource, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsDrillTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsZohoSource() (*ZohoSource, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsXeroSource() (*XeroSource, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSquareSource() (*SquareSource, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSparkSource() (*SparkSource, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsShopifySource() (*ShopifySource, bool) { +// AsHTTPDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsWebTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPrestoSource() (*PrestoSource, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsRestResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMagentoSource() (*MagentoSource, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsJiraSource() (*JiraSource, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHubspotSource() (*HubspotSource, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHiveSource() (*HiveSource, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHBaseSource() (*HBaseSource, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsEloquaSource() (*EloquaSource, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDrillSource() (*DrillSource, bool) { +// AsInformixTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsConcurSource() (*ConcurSource, bool) { +// AsDb2TableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCassandraSource() (*CassandraSource, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsTeradataSource() (*TeradataSource, bool) { +// AsOracleTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsODataResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSQLMISource() (*SQLMISource, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSQLSource() (*SQLSource, bool) { +// AsFileShareDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapTableSource() (*SapTableSource, bool) { +// AsOffice365Dataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapEccSource() (*SapEccSource, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false +// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return &ded, true } -// AsSapBwSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapBwSource() (*SapBwSource, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSybaseSource() (*SybaseSource, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsCustomDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMySQLSource() (*MySQLSource, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOdbcSource() (*OdbcSource, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDb2Source() (*Db2Source, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsInformixSource() (*InformixSource, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsBinaryDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsBinarySource() (*BinarySource, bool) { +// AsOrcDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOrcSource() (*OrcSource, bool) { +// AsXMLDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsXMLSource() (*XMLSource, bool) { +// AsJSONDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsJSONSource() (*JSONSource, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsParquetDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsParquetSource() (*ParquetSource, bool) { +// AsExcelDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsExcelSource() (*ExcelSource, bool) { +// AsAvroDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAvroSource() (*AvroSource, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCopySource() (*CopySource, bool) { +// AsDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ds, true +// AsBasicDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsBasicDataset() (BasicDataset, bool) { + return &ded, true } -// UnmarshalJSON is the custom unmarshaler for DynamicsSource struct. -func (ds *DynamicsSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsEntityDataset struct. +func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -90086,71 +88528,98 @@ func (ds *DynamicsSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var dynamicsEntityDatasetTypeProperties DynamicsEntityDatasetTypeProperties + err = json.Unmarshal(*v, &dynamicsEntityDatasetTypeProperties) if err != nil { return err } - ds.Query = query + ded.DynamicsEntityDatasetTypeProperties = &dynamicsEntityDatasetTypeProperties } - case "additionalColumns": + default: if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - ds.AdditionalColumns = &additionalColumns + if ded.AdditionalProperties == nil { + ded.AdditionalProperties = make(map[string]interface{}) + } + ded.AdditionalProperties[k] = additionalProperties } - default: + case "description": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - if ds.AdditionalProperties == nil { - ds.AdditionalProperties = make(map[string]interface{}) + ded.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err } - ds.AdditionalProperties[k] = additionalProperties + ded.Structure = structure } - case "sourceRetryCount": + case "schema": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - ds.SourceRetryCount = sourceRetryCount + ded.Schema = schema } - case "sourceRetryWait": + case "linkedServiceName": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - ds.SourceRetryWait = sourceRetryWait + ded.LinkedServiceName = &linkedServiceName } - case "maxConcurrentConnections": + case "parameters": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - ds.MaxConcurrentConnections = maxConcurrentConnections + ded.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ded.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + ded.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - ds.Type = typeVar + ded.Type = typeVar } } } @@ -90158,10 +88627,16 @@ func (ds *DynamicsSource) UnmarshalJSON(body []byte) error { return nil } -// EloquaLinkedService eloqua server linked service. -type EloquaLinkedService struct { - // EloquaLinkedServiceTypeProperties - Eloqua server linked service properties. - *EloquaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// DynamicsEntityDatasetTypeProperties dynamics entity dataset properties. +type DynamicsEntityDatasetTypeProperties struct { + // EntityName - The logical name of the entity. Type: string (or Expression with resultType string). + EntityName interface{} `json:"entityName,omitempty"` +} + +// DynamicsLinkedService dynamics linked service. +type DynamicsLinkedService struct { + // DynamicsLinkedServiceTypeProperties - Dynamics linked service properties. + *DynamicsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -90176,546 +88651,546 @@ type EloquaLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for EloquaLinkedService. -func (els EloquaLinkedService) MarshalJSON() ([]byte, error) { - els.Type = TypeEloqua +// MarshalJSON is the custom marshaler for DynamicsLinkedService. +func (dls DynamicsLinkedService) MarshalJSON() ([]byte, error) { + dls.Type = TypeDynamics objectMap := make(map[string]interface{}) - if els.EloquaLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = els.EloquaLinkedServiceTypeProperties + if dls.DynamicsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = dls.DynamicsLinkedServiceTypeProperties } - if els.ConnectVia != nil { - objectMap["connectVia"] = els.ConnectVia + if dls.ConnectVia != nil { + objectMap["connectVia"] = dls.ConnectVia } - if els.Description != nil { - objectMap["description"] = els.Description + if dls.Description != nil { + objectMap["description"] = dls.Description } - if els.Parameters != nil { - objectMap["parameters"] = els.Parameters + if dls.Parameters != nil { + objectMap["parameters"] = dls.Parameters } - if els.Annotations != nil { - objectMap["annotations"] = els.Annotations + if dls.Annotations != nil { + objectMap["annotations"] = dls.Annotations } - if els.Type != "" { - objectMap["type"] = els.Type + if dls.Type != "" { + objectMap["type"] = dls.Type } - for k, v := range els.AdditionalProperties { + for k, v := range dls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return &els, true +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return &dls, true +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &els, true +// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &dls, true } -// UnmarshalJSON is the custom unmarshaler for EloquaLinkedService struct. -func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsLinkedService struct. +func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -90725,12 +89200,12 @@ func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var eloquaLinkedServiceTypeProperties EloquaLinkedServiceTypeProperties - err = json.Unmarshal(*v, &eloquaLinkedServiceTypeProperties) + var dynamicsLinkedServiceTypeProperties DynamicsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &dynamicsLinkedServiceTypeProperties) if err != nil { return err } - els.EloquaLinkedServiceTypeProperties = &eloquaLinkedServiceTypeProperties + dls.DynamicsLinkedServiceTypeProperties = &dynamicsLinkedServiceTypeProperties } default: if v != nil { @@ -90739,10 +89214,10 @@ func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if els.AdditionalProperties == nil { - els.AdditionalProperties = make(map[string]interface{}) + if dls.AdditionalProperties == nil { + dls.AdditionalProperties = make(map[string]interface{}) } - els.AdditionalProperties[k] = additionalProperties + dls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -90751,7 +89226,7 @@ func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - els.ConnectVia = &connectVia + dls.ConnectVia = &connectVia } case "description": if v != nil { @@ -90760,7 +89235,7 @@ func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - els.Description = &description + dls.Description = &description } case "parameters": if v != nil { @@ -90769,7 +89244,7 @@ func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - els.Parameters = parameters + dls.Parameters = parameters } case "annotations": if v != nil { @@ -90778,7 +89253,7 @@ func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - els.Annotations = &annotations + dls.Annotations = &annotations } case "type": if v != nil { @@ -90787,7 +89262,7 @@ func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - els.Type = typeVar + dls.Type = typeVar } } } @@ -90795,26 +89270,36 @@ func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { return nil } -// EloquaLinkedServiceTypeProperties eloqua server linked service properties. -type EloquaLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the Eloqua server. (i.e. eloqua.example.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // Username - The site name and user name of your Eloqua account in the form: sitename/username. (i.e. Eloqua/Alice) +// DynamicsLinkedServiceTypeProperties dynamics linked service properties. +type DynamicsLinkedServiceTypeProperties struct { + // DeploymentType - 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). + DeploymentType interface{} `json:"deploymentType,omitempty"` + // HostName - 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). + HostName interface{} `json:"hostName,omitempty"` + // Port - 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. + Port interface{} `json:"port,omitempty"` + // ServiceURI - 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). + ServiceURI interface{} `json:"serviceUri,omitempty"` + // OrganizationName - 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). + OrganizationName interface{} `json:"organizationName,omitempty"` + // AuthenticationType - 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). + AuthenticationType interface{} `json:"authenticationType,omitempty"` + // Username - User name to access the Dynamics instance. Type: string (or Expression with resultType string). Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name. + // Password - Password to access the Dynamics instance. Password BasicSecretBase `json:"password,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // ServicePrincipalID - The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalCredentialType - 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). + ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` + // ServicePrincipalCredential - 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. + ServicePrincipalCredential BasicSecretBase `json:"servicePrincipalCredential,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for EloquaLinkedServiceTypeProperties struct. -func (elstp *EloquaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsLinkedServiceTypeProperties struct. +func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -90822,14 +89307,59 @@ func (elstp *EloquaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error } for k, v := range m { switch k { - case "endpoint": + case "deploymentType": if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) + var deploymentType interface{} + err = json.Unmarshal(*v, &deploymentType) if err != nil { return err } - elstp.Endpoint = endpoint + dlstp.DeploymentType = deploymentType + } + case "hostName": + if v != nil { + var hostName interface{} + err = json.Unmarshal(*v, &hostName) + if err != nil { + return err + } + dlstp.HostName = hostName + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + dlstp.Port = port + } + case "serviceUri": + if v != nil { + var serviceURI interface{} + err = json.Unmarshal(*v, &serviceURI) + if err != nil { + return err + } + dlstp.ServiceURI = serviceURI + } + case "organizationName": + if v != nil { + var organizationName interface{} + err = json.Unmarshal(*v, &organizationName) + if err != nil { + return err + } + dlstp.OrganizationName = organizationName + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + dlstp.AuthenticationType = authenticationType } case "username": if v != nil { @@ -90838,7 +89368,7 @@ func (elstp *EloquaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error if err != nil { return err } - elstp.Username = username + dlstp.Username = username } case "password": if v != nil { @@ -90846,34 +89376,33 @@ func (elstp *EloquaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error if err != nil { return err } - elstp.Password = password + dlstp.Password = password } - case "useEncryptedEndpoints": + case "servicePrincipalId": if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) if err != nil { return err } - elstp.UseEncryptedEndpoints = useEncryptedEndpoints + dlstp.ServicePrincipalID = servicePrincipalID } - case "useHostVerification": + case "servicePrincipalCredentialType": if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) + var servicePrincipalCredentialType interface{} + err = json.Unmarshal(*v, &servicePrincipalCredentialType) if err != nil { return err } - elstp.UseHostVerification = useHostVerification + dlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType } - case "usePeerVerification": + case "servicePrincipalCredential": if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) + servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - elstp.UsePeerVerification = usePeerVerification + dlstp.ServicePrincipalCredential = servicePrincipalCredential } case "encryptedCredential": if v != nil { @@ -90882,7 +89411,7 @@ func (elstp *EloquaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error if err != nil { return err } - elstp.EncryptedCredential = encryptedCredential + dlstp.EncryptedCredential = encryptedCredential } } } @@ -90890,544 +89419,274 @@ func (elstp *EloquaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error return nil } -// EloquaObjectDataset eloqua server dataset. -type EloquaObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` +// DynamicsSink a copy activity Dynamics sink. +type DynamicsSink struct { + // WriteBehavior - The write behavior for the operation. + WriteBehavior *string `json:"writeBehavior,omitempty"` + // IgnoreNullValues - The flag indicating whether ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). + IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + // AlternateKeyName - The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType string). + AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for EloquaObjectDataset. -func (eod EloquaObjectDataset) MarshalJSON() ([]byte, error) { - eod.Type = TypeEloquaObject +// MarshalJSON is the custom marshaler for DynamicsSink. +func (ds DynamicsSink) MarshalJSON() ([]byte, error) { + ds.Type = TypeDynamicsSink objectMap := make(map[string]interface{}) - if eod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = eod.GenericDatasetTypeProperties + if ds.WriteBehavior != nil { + objectMap["writeBehavior"] = ds.WriteBehavior } - if eod.Description != nil { - objectMap["description"] = eod.Description + if ds.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = ds.IgnoreNullValues } - if eod.Structure != nil { - objectMap["structure"] = eod.Structure + if ds.AlternateKeyName != nil { + objectMap["alternateKeyName"] = ds.AlternateKeyName } - if eod.Schema != nil { - objectMap["schema"] = eod.Schema + if ds.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ds.WriteBatchSize } - if eod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = eod.LinkedServiceName + if ds.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ds.WriteBatchTimeout } - if eod.Parameters != nil { - objectMap["parameters"] = eod.Parameters + if ds.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ds.SinkRetryCount } - if eod.Annotations != nil { - objectMap["annotations"] = eod.Annotations + if ds.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ds.SinkRetryWait } - if eod.Folder != nil { - objectMap["folder"] = eod.Folder + if ds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections } - if eod.Type != "" { - objectMap["type"] = eod.Type + if ds.Type != "" { + objectMap["type"] = ds.Type } - for k, v := range eod.AdditionalProperties { + for k, v := range ds.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return &eod, true -} - -// AsDrillTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsSalesforceSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false +// AsDynamicsSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsDynamicsSink() (*DynamicsSink, bool) { + return &ds, true } -// AsODataResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsInformixSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsOdbcSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOracleSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSQLDWSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSQLMISink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSQLServerSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSQLSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsFileSystemSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsBlobSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsBinarySink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsParquetSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAvroSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureTableSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsRestSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsOrcSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsJSONSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDataset() (*Dataset, bool) { +// AsCopySink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &eod, true +// AsBasicCopySink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ds, true } -// UnmarshalJSON is the custom unmarshaler for EloquaObjectDataset struct. -func (eod *EloquaObjectDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsSink struct. +func (ds *DynamicsSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -91435,98 +89694,98 @@ func (eod *EloquaObjectDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "writeBehavior": if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) + var writeBehavior string + err = json.Unmarshal(*v, &writeBehavior) if err != nil { return err } - eod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + ds.WriteBehavior = &writeBehavior } - default: + case "ignoreNullValues": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) if err != nil { return err } - if eod.AdditionalProperties == nil { - eod.AdditionalProperties = make(map[string]interface{}) - } - eod.AdditionalProperties[k] = additionalProperties + ds.IgnoreNullValues = ignoreNullValues } - case "description": + case "alternateKeyName": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var alternateKeyName interface{} + err = json.Unmarshal(*v, &alternateKeyName) if err != nil { return err } - eod.Description = &description + ds.AlternateKeyName = alternateKeyName } - case "structure": + default: if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - eod.Structure = structure + if ds.AdditionalProperties == nil { + ds.AdditionalProperties = make(map[string]interface{}) + } + ds.AdditionalProperties[k] = additionalProperties } - case "schema": + case "writeBatchSize": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - eod.Schema = schema + ds.WriteBatchSize = writeBatchSize } - case "linkedServiceName": + case "writeBatchTimeout": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - eod.LinkedServiceName = &linkedServiceName + ds.WriteBatchTimeout = writeBatchTimeout } - case "parameters": + case "sinkRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) if err != nil { return err } - eod.Parameters = parameters + ds.SinkRetryCount = sinkRetryCount } - case "annotations": + case "sinkRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) if err != nil { return err } - eod.Annotations = &annotations + ds.SinkRetryWait = sinkRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - eod.Folder = &folder + ds.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - eod.Type = typeVar + ds.Type = typeVar } } } @@ -91534,12 +89793,10 @@ func (eod *EloquaObjectDataset) UnmarshalJSON(body []byte) error { return nil } -// EloquaSource a copy activity Eloqua server source. -type EloquaSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). +// DynamicsSource a copy activity Dynamics source. +type DynamicsSource struct { + // Query - FetchXML is a proprietary query language that is used in Microsoft Dynamics (online & on-premises). Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -91554,519 +89811,516 @@ type EloquaSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for EloquaSource. -func (es EloquaSource) MarshalJSON() ([]byte, error) { - es.Type = TypeEloquaSource +// MarshalJSON is the custom marshaler for DynamicsSource. +func (ds DynamicsSource) MarshalJSON() ([]byte, error) { + ds.Type = TypeDynamicsSource objectMap := make(map[string]interface{}) - if es.Query != nil { - objectMap["query"] = es.Query - } - if es.QueryTimeout != nil { - objectMap["queryTimeout"] = es.QueryTimeout + if ds.Query != nil { + objectMap["query"] = ds.Query } - if es.AdditionalColumns != nil { - objectMap["additionalColumns"] = es.AdditionalColumns + if ds.AdditionalColumns != nil { + objectMap["additionalColumns"] = ds.AdditionalColumns } - if es.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = es.SourceRetryCount + if ds.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ds.SourceRetryCount } - if es.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = es.SourceRetryWait + if ds.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ds.SourceRetryWait } - if es.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = es.MaxConcurrentConnections + if ds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections } - if es.Type != "" { - objectMap["type"] = es.Type + if ds.Type != "" { + objectMap["type"] = ds.Type } - for k, v := range es.AdditionalProperties { + for k, v := range ds.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false +// AsDynamicsSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDynamicsSource() (*DynamicsSource, bool) { + return &ds, true } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsEloquaSource() (*EloquaSource, bool) { - return &es, true +// AsEloquaSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false } -// AsDrillSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &es, true +// AsBasicTabularSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &es, true +// AsBasicCopySource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ds, true } -// UnmarshalJSON is the custom unmarshaler for EloquaSource struct. -func (es *EloquaSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for DynamicsSource struct. +func (ds *DynamicsSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -92081,16 +90335,7 @@ func (es *EloquaSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - es.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - es.QueryTimeout = queryTimeout + ds.Query = query } case "additionalColumns": if v != nil { @@ -92099,7 +90344,7 @@ func (es *EloquaSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - es.AdditionalColumns = &additionalColumns + ds.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -92108,10 +90353,10 @@ func (es *EloquaSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if es.AdditionalProperties == nil { - es.AdditionalProperties = make(map[string]interface{}) + if ds.AdditionalProperties == nil { + ds.AdditionalProperties = make(map[string]interface{}) } - es.AdditionalProperties[k] = additionalProperties + ds.AdditionalProperties[k] = additionalProperties } case "sourceRetryCount": if v != nil { @@ -92120,7 +90365,7 @@ func (es *EloquaSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - es.SourceRetryCount = sourceRetryCount + ds.SourceRetryCount = sourceRetryCount } case "sourceRetryWait": if v != nil { @@ -92129,7 +90374,7 @@ func (es *EloquaSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - es.SourceRetryWait = sourceRetryWait + ds.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -92138,7 +90383,7 @@ func (es *EloquaSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - es.MaxConcurrentConnections = maxConcurrentConnections + ds.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { @@ -92147,7 +90392,7 @@ func (es *EloquaSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - es.Type = typeVar + ds.Type = typeVar } } } @@ -92155,656 +90400,564 @@ func (es *EloquaSource) UnmarshalJSON(body []byte) error { return nil } -// EncryptionConfiguration definition of CMK for the factory. -type EncryptionConfiguration struct { - // KeyName - The name of the key in Azure Key Vault to use as Customer Managed Key. - KeyName *string `json:"keyName,omitempty"` - // VaultBaseURL - The url of the Azure Key Vault used for CMK. - VaultBaseURL *string `json:"vaultBaseUrl,omitempty"` - // KeyVersion - The version of the key used for CMK. If not provided, latest version will be used. - KeyVersion *string `json:"keyVersion,omitempty"` - // Identity - User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be used. - Identity *CMKIdentityDefinition `json:"identity,omitempty"` -} - -// EntityReference the entity reference. -type EntityReference struct { - // Type - The type of this referenced entity. Possible values include: 'IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference', 'IntegrationRuntimeEntityReferenceTypeLinkedServiceReference' - Type IntegrationRuntimeEntityReferenceType `json:"type,omitempty"` - // ReferenceName - The name of this referenced entity. - ReferenceName *string `json:"referenceName,omitempty"` -} - -// EnvironmentVariableSetup the custom setup of setting environment variable. -type EnvironmentVariableSetup struct { - // EnvironmentVariableSetupTypeProperties - Add environment variable type properties. - *EnvironmentVariableSetupTypeProperties `json:"typeProperties,omitempty"` - // Type - Possible values include: 'TypeCustomSetupBase', 'TypeAzPowerShellSetup', 'TypeComponentSetup', 'TypeEnvironmentVariableSetup', 'TypeCmdkeySetup' - Type TypeBasicCustomSetupBase `json:"type,omitempty"` +// EloquaLinkedService eloqua server linked service. +type EloquaLinkedService struct { + // EloquaLinkedServiceTypeProperties - Eloqua server linked service properties. + *EloquaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) MarshalJSON() ([]byte, error) { - evs.Type = TypeEnvironmentVariableSetup +// MarshalJSON is the custom marshaler for EloquaLinkedService. +func (els EloquaLinkedService) MarshalJSON() ([]byte, error) { + els.Type = TypeEloqua objectMap := make(map[string]interface{}) - if evs.EnvironmentVariableSetupTypeProperties != nil { - objectMap["typeProperties"] = evs.EnvironmentVariableSetupTypeProperties + if els.EloquaLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = els.EloquaLinkedServiceTypeProperties } - if evs.Type != "" { - objectMap["type"] = evs.Type + if els.ConnectVia != nil { + objectMap["connectVia"] = els.ConnectVia + } + if els.Description != nil { + objectMap["description"] = els.Description + } + if els.Parameters != nil { + objectMap["parameters"] = els.Parameters + } + if els.Annotations != nil { + objectMap["annotations"] = els.Annotations + } + if els.Type != "" { + objectMap["type"] = els.Type + } + for k, v := range els.AdditionalProperties { + objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsComponentSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsComponentSetup() (*ComponentSetup, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { - return &evs, true -} - -// AsCmdkeySetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsCmdkeySetup() (*CmdkeySetup, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsCustomSetupBase is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsCustomSetupBase() (*CustomSetupBase, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { - return &evs, true -} - -// UnmarshalJSON is the custom unmarshaler for EnvironmentVariableSetup struct. -func (evs *EnvironmentVariableSetup) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var environmentVariableSetupTypeProperties EnvironmentVariableSetupTypeProperties - err = json.Unmarshal(*v, &environmentVariableSetupTypeProperties) - if err != nil { - return err - } - evs.EnvironmentVariableSetupTypeProperties = &environmentVariableSetupTypeProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCustomSetupBase - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - evs.Type = typeVar - } - } - } - - return nil -} - -// EnvironmentVariableSetupTypeProperties environment variable custom setup type properties. -type EnvironmentVariableSetupTypeProperties struct { - // VariableName - The name of the environment variable. - VariableName *string `json:"variableName,omitempty"` - // VariableValue - The value of the environment variable. - VariableValue *string `json:"variableValue,omitempty"` +// AsSapTableLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false } -// ExcelDataset excel dataset. -type ExcelDataset struct { - // ExcelDatasetTypeProperties - Excel dataset properties. - *ExcelDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for ExcelDataset. -func (ed ExcelDataset) MarshalJSON() ([]byte, error) { - ed.Type = TypeExcel - objectMap := make(map[string]interface{}) - if ed.ExcelDatasetTypeProperties != nil { - objectMap["typeProperties"] = ed.ExcelDatasetTypeProperties - } - if ed.Description != nil { - objectMap["description"] = ed.Description - } - if ed.Structure != nil { - objectMap["structure"] = ed.Structure - } - if ed.Schema != nil { - objectMap["schema"] = ed.Schema - } - if ed.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ed.LinkedServiceName - } - if ed.Parameters != nil { - objectMap["parameters"] = ed.Parameters - } - if ed.Annotations != nil { - objectMap["annotations"] = ed.Annotations - } - if ed.Folder != nil { - objectMap["folder"] = ed.Folder - } - if ed.Type != "" { - objectMap["type"] = ed.Type - } - for k, v := range ed.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false +// AsEloquaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return &els, true } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsExcelDataset() (*ExcelDataset, bool) { - return &ed, true +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false } -// AsAvroDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDataset() (*Dataset, bool) { +// AsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsBasicDataset() (BasicDataset, bool) { - return &ed, true +// AsBasicLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &els, true } -// UnmarshalJSON is the custom unmarshaler for ExcelDataset struct. -func (ed *ExcelDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for EloquaLinkedService struct. +func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -92814,12 +90967,12 @@ func (ed *ExcelDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var excelDatasetTypeProperties ExcelDatasetTypeProperties - err = json.Unmarshal(*v, &excelDatasetTypeProperties) + var eloquaLinkedServiceTypeProperties EloquaLinkedServiceTypeProperties + err = json.Unmarshal(*v, &eloquaLinkedServiceTypeProperties) if err != nil { return err } - ed.ExcelDatasetTypeProperties = &excelDatasetTypeProperties + els.EloquaLinkedServiceTypeProperties = &eloquaLinkedServiceTypeProperties } default: if v != nil { @@ -92828,46 +90981,28 @@ func (ed *ExcelDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if ed.AdditionalProperties == nil { - ed.AdditionalProperties = make(map[string]interface{}) - } - ed.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ed.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err + if els.AdditionalProperties == nil { + els.AdditionalProperties = make(map[string]interface{}) } - ed.Structure = structure + els.AdditionalProperties[k] = additionalProperties } - case "schema": + case "connectVia": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - ed.Schema = schema + els.ConnectVia = &connectVia } - case "linkedServiceName": + case "description": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - ed.LinkedServiceName = &linkedServiceName + els.Description = &description } case "parameters": if v != nil { @@ -92876,7 +91011,7 @@ func (ed *ExcelDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - ed.Parameters = parameters + els.Parameters = parameters } case "annotations": if v != nil { @@ -92885,25 +91020,16 @@ func (ed *ExcelDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - ed.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - ed.Folder = &folder + els.Annotations = &annotations } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicLinkedService err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - ed.Type = typeVar + els.Type = typeVar } } } @@ -92911,24 +91037,26 @@ func (ed *ExcelDataset) UnmarshalJSON(body []byte) error { return nil } -// ExcelDatasetTypeProperties excel dataset properties. -type ExcelDatasetTypeProperties struct { - // Location - The location of the excel storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // SheetName - The sheet of excel file. Type: string (or Expression with resultType string). - SheetName interface{} `json:"sheetName,omitempty"` - // Range - The partial data of one sheet. Type: string (or Expression with resultType string). - Range interface{} `json:"range,omitempty"` - // FirstRowAsHeader - 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). - FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` - // Compression - The data compression method used for the json dataset. - Compression BasicDatasetCompression `json:"compression,omitempty"` - // NullValue - The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` +// EloquaLinkedServiceTypeProperties eloqua server linked service properties. +type EloquaLinkedServiceTypeProperties struct { + // Endpoint - The endpoint of the Eloqua server. (i.e. eloqua.example.com) + Endpoint interface{} `json:"endpoint,omitempty"` + // Username - The site name and user name of your Eloqua account in the form: sitename/username. (i.e. Eloqua/Alice) + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name. + Password BasicSecretBase `json:"password,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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. + UseHostVerification interface{} `json:"useHostVerification,omitempty"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for ExcelDatasetTypeProperties struct. -func (edtp *ExcelDatasetTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for EloquaLinkedServiceTypeProperties struct. +func (elstp *EloquaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -92936,57 +91064,67 @@ func (edtp *ExcelDatasetTypeProperties) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "location": + case "endpoint": if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) if err != nil { return err } - edtp.Location = location + elstp.Endpoint = endpoint } - case "sheetName": + case "username": if v != nil { - var sheetName interface{} - err = json.Unmarshal(*v, &sheetName) + var username interface{} + err = json.Unmarshal(*v, &username) if err != nil { return err } - edtp.SheetName = sheetName + elstp.Username = username } - case "range": + case "password": if v != nil { - var rangeVar interface{} - err = json.Unmarshal(*v, &rangeVar) + password, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - edtp.Range = rangeVar + elstp.Password = password } - case "firstRowAsHeader": + case "useEncryptedEndpoints": if v != nil { - var firstRowAsHeader interface{} - err = json.Unmarshal(*v, &firstRowAsHeader) + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) if err != nil { return err } - edtp.FirstRowAsHeader = firstRowAsHeader + elstp.UseEncryptedEndpoints = useEncryptedEndpoints } - case "compression": + case "useHostVerification": if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) if err != nil { return err } - edtp.Compression = compression + elstp.UseHostVerification = useHostVerification } - case "nullValue": + case "usePeerVerification": if v != nil { - var nullValue interface{} - err = json.Unmarshal(*v, &nullValue) + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) if err != nil { return err } - edtp.NullValue = nullValue + elstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + elstp.EncryptedCredential = encryptedCredential } } } @@ -92994,532 +91132,544 @@ func (edtp *ExcelDatasetTypeProperties) UnmarshalJSON(body []byte) error { return nil } -// ExcelSource a copy activity excel source. -type ExcelSource struct { - // StoreSettings - Excel store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// EloquaObjectDataset eloqua server dataset. +type EloquaObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for ExcelSource. -func (es ExcelSource) MarshalJSON() ([]byte, error) { - es.Type = TypeExcelSource +// MarshalJSON is the custom marshaler for EloquaObjectDataset. +func (eod EloquaObjectDataset) MarshalJSON() ([]byte, error) { + eod.Type = TypeEloquaObject objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = es.StoreSettings - if es.AdditionalColumns != nil { - objectMap["additionalColumns"] = es.AdditionalColumns + if eod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = eod.GenericDatasetTypeProperties } - if es.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = es.SourceRetryCount + if eod.Description != nil { + objectMap["description"] = eod.Description } - if es.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = es.SourceRetryWait + if eod.Structure != nil { + objectMap["structure"] = eod.Structure } - if es.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = es.MaxConcurrentConnections + if eod.Schema != nil { + objectMap["schema"] = eod.Schema } - if es.Type != "" { - objectMap["type"] = es.Type + if eod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = eod.LinkedServiceName } - for k, v := range es.AdditionalProperties { + if eod.Parameters != nil { + objectMap["parameters"] = eod.Parameters + } + if eod.Annotations != nil { + objectMap["annotations"] = eod.Annotations + } + if eod.Folder != nil { + objectMap["folder"] = eod.Folder + } + if eod.Type != "" { + objectMap["type"] = eod.Type + } + for k, v := range eod.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsHTTPSource() (*HTTPSource, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsOffice365Source() (*Office365Source, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsWebSource() (*WebSource, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsOracleSource() (*OracleSource, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsHdfsSource() (*HdfsSource, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsRestSource() (*RestSource, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsODataSource() (*ODataSource, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsRelationalSource() (*RelationalSource, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsBlobSource() (*BlobSource, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false +// AsEloquaObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return &eod, true } -// AsVerticaSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsVerticaSource() (*VerticaSource, bool) { +// AsDrillTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsZohoSource() (*ZohoSource, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsXeroSource() (*XeroSource, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSquareSource() (*SquareSource, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSparkSource() (*SparkSource, bool) { +// AsHTTPDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsShopifySource() (*ShopifySource, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsWebTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsPrestoSource() (*PrestoSource, bool) { +// AsRestResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMagentoSource() (*MagentoSource, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsJiraSource() (*JiraSource, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsHubspotSource() (*HubspotSource, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsHiveSource() (*HiveSource, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsHBaseSource() (*HBaseSource, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsEloquaSource() (*EloquaSource, bool) { +// AsInformixTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDrillSource() (*DrillSource, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsDb2TableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsConcurSource() (*ConcurSource, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCassandraSource() (*CassandraSource, bool) { +// AsOracleTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsTeradataSource() (*TeradataSource, bool) { +// AsODataResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSQLMISource() (*SQLMISource, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsFileShareDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSQLSource() (*SQLSource, bool) { +// AsOffice365Dataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapTableSource() (*SapTableSource, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapEccSource() (*SapEccSource, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapBwSource() (*SapBwSource, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSybaseSource() (*SybaseSource, bool) { +// AsCustomDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMySQLSource() (*MySQLSource, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsOdbcSource() (*OdbcSource, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDb2Source() (*Db2Source, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsInformixSource() (*InformixSource, bool) { +// AsAzureTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsTabularSource() (*TabularSource, bool) { +// AsBinaryDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsOrcDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsBinarySource() (*BinarySource, bool) { +// AsXMLDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsOrcSource() (*OrcSource, bool) { +// AsJSONDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsXMLSource() (*XMLSource, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsJSONSource() (*JSONSource, bool) { +// AsParquetDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsExcelDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsParquetSource() (*ParquetSource, bool) { +// AsAvroDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsExcelSource() (*ExcelSource, bool) { - return &es, true -} - -// AsAvroSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAvroSource() (*AvroSource, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCopySource() (*CopySource, bool) { +// AsDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsBasicCopySource() (BasicCopySource, bool) { - return &es, true +// AsBasicDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &eod, true } -// UnmarshalJSON is the custom unmarshaler for ExcelSource struct. -func (es *ExcelSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for EloquaObjectDataset struct. +func (eod *EloquaObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -93527,70 +91677,98 @@ func (es *ExcelSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "storeSettings": + case "typeProperties": if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) if err != nil { return err } - es.StoreSettings = storeSettings + eod.GenericDatasetTypeProperties = &genericDatasetTypeProperties } - case "additionalColumns": + default: if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - es.AdditionalColumns = &additionalColumns + if eod.AdditionalProperties == nil { + eod.AdditionalProperties = make(map[string]interface{}) + } + eod.AdditionalProperties[k] = additionalProperties } - default: + case "description": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - if es.AdditionalProperties == nil { - es.AdditionalProperties = make(map[string]interface{}) + eod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err } - es.AdditionalProperties[k] = additionalProperties + eod.Structure = structure } - case "sourceRetryCount": + case "schema": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - es.SourceRetryCount = sourceRetryCount + eod.Schema = schema } - case "sourceRetryWait": + case "linkedServiceName": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - es.SourceRetryWait = sourceRetryWait + eod.LinkedServiceName = &linkedServiceName } - case "maxConcurrentConnections": + case "parameters": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - es.MaxConcurrentConnections = maxConcurrentConnections + eod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + eod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + eod.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - es.Type = typeVar + eod.Type = typeVar } } } @@ -93598,635 +91776,539 @@ func (es *ExcelSource) UnmarshalJSON(body []byte) error { return nil } -// ExecuteDataFlowActivity execute data flow activity. -type ExecuteDataFlowActivity struct { - // ExecuteDataFlowActivityTypeProperties - Execute data flow activity properties. - *ExecuteDataFlowActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` +// EloquaSource a copy activity Eloqua server source. +type EloquaSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) MarshalJSON() ([]byte, error) { - edfa.Type = TypeExecuteDataFlow +// MarshalJSON is the custom marshaler for EloquaSource. +func (es EloquaSource) MarshalJSON() ([]byte, error) { + es.Type = TypeEloquaSource objectMap := make(map[string]interface{}) - if edfa.ExecuteDataFlowActivityTypeProperties != nil { - objectMap["typeProperties"] = edfa.ExecuteDataFlowActivityTypeProperties - } - if edfa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = edfa.LinkedServiceName + if es.Query != nil { + objectMap["query"] = es.Query } - if edfa.Policy != nil { - objectMap["policy"] = edfa.Policy + if es.QueryTimeout != nil { + objectMap["queryTimeout"] = es.QueryTimeout } - if edfa.Name != nil { - objectMap["name"] = edfa.Name + if es.AdditionalColumns != nil { + objectMap["additionalColumns"] = es.AdditionalColumns } - if edfa.Description != nil { - objectMap["description"] = edfa.Description + if es.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = es.SourceRetryCount } - if edfa.DependsOn != nil { - objectMap["dependsOn"] = edfa.DependsOn + if es.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = es.SourceRetryWait } - if edfa.UserProperties != nil { - objectMap["userProperties"] = edfa.UserProperties + if es.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = es.MaxConcurrentConnections } - if edfa.Type != "" { - objectMap["type"] = edfa.Type + if es.Type != "" { + objectMap["type"] = es.Type } - for k, v := range edfa.AdditionalProperties { + for k, v := range es.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return &edfa, true +// AsSharePointOnlineListSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsHTTPSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { +// AsOffice365Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsWebActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsWebActivity() (*WebActivity, bool) { +// AsMongoDbSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsWebSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsOracleSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsHdfsSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsFileSystemSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsRestSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsODataSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsRelationalSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsExecutionActivity() (*ExecutionActivity, bool) { +// AsDynamicsSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &edfa, true +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false } -// AsWebHookActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsXeroSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsSquareSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { +// AsSparkSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsFilterActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsFilterActivity() (*FilterActivity, bool) { +// AsShopifySource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsValidationActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsValidationActivity() (*ValidationActivity, bool) { +// AsServiceNowSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsUntilActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsPrestoSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsPhoenixSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsPaypalSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsMarketoSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsControlActivity() (*ControlActivity, bool) { +// AsMariaDBSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsBasicControlActivity() (BasicControlActivity, bool) { +// AsMagentoSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsActivity() (*Activity, bool) { +// AsJiraSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsBasicActivity() (BasicActivity, bool) { - return &edfa, true +// AsImpalaSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for ExecuteDataFlowActivity struct. -func (edfa *ExecuteDataFlowActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var executeDataFlowActivityTypeProperties ExecuteDataFlowActivityTypeProperties - err = json.Unmarshal(*v, &executeDataFlowActivityTypeProperties) - if err != nil { - return err - } - edfa.ExecuteDataFlowActivityTypeProperties = &executeDataFlowActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - edfa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - edfa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if edfa.AdditionalProperties == nil { - edfa.AdditionalProperties = make(map[string]interface{}) - } - edfa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - edfa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - edfa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - edfa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - edfa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - edfa.Type = typeVar - } - } - } - - return nil +// AsHubspotSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false } -// ExecuteDataFlowActivityTypeProperties execute data flow activity properties. -type ExecuteDataFlowActivityTypeProperties struct { - // DataFlow - Data flow reference. - DataFlow *DataFlowReference `json:"dataFlow,omitempty"` - // Staging - Staging info for execute data flow activity. - Staging *DataFlowStagingInfo `json:"staging,omitempty"` - // IntegrationRuntime - The integration runtime reference. - IntegrationRuntime *IntegrationRuntimeReference `json:"integrationRuntime,omitempty"` - // Compute - Compute properties for data flow activity. - Compute *ExecuteDataFlowActivityTypePropertiesCompute `json:"compute,omitempty"` - // TraceLevel - Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string) - TraceLevel interface{} `json:"traceLevel,omitempty"` - // ContinueOnError - Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean) - ContinueOnError interface{} `json:"continueOnError,omitempty"` - // RunConcurrently - Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. Type: boolean (or Expression with resultType boolean) - RunConcurrently interface{} `json:"runConcurrently,omitempty"` +// AsHiveSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsHiveSource() (*HiveSource, bool) { + return nil, false } -// ExecuteDataFlowActivityTypePropertiesCompute compute properties for data flow activity. -type ExecuteDataFlowActivityTypePropertiesCompute struct { - // ComputeType - Compute type of the cluster which will execute data flow job. Possible values include: 'General', 'MemoryOptimized', 'ComputeOptimized'. Type: string (or Expression with resultType string) - ComputeType interface{} `json:"computeType,omitempty"` - // CoreCount - Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. Type: integer (or Expression with resultType integer) - CoreCount interface{} `json:"coreCount,omitempty"` +// AsHBaseSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false } -// ExecutePipelineActivity execute pipeline activity. -type ExecutePipelineActivity struct { - // ExecutePipelineActivityTypeProperties - Execute pipeline activity properties. - *ExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` +// AsGreenplumSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) MarshalJSON() ([]byte, error) { - epa.Type = TypeExecutePipeline - objectMap := make(map[string]interface{}) - if epa.ExecutePipelineActivityTypeProperties != nil { - objectMap["typeProperties"] = epa.ExecutePipelineActivityTypeProperties - } - if epa.Name != nil { - objectMap["name"] = epa.Name - } - if epa.Description != nil { - objectMap["description"] = epa.Description - } - if epa.DependsOn != nil { - objectMap["dependsOn"] = epa.DependsOn - } - if epa.UserProperties != nil { - objectMap["userProperties"] = epa.UserProperties - } - if epa.Type != "" { - objectMap["type"] = epa.Type - } - for k, v := range epa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsGoogleBigQuerySource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false } -// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false +// AsEloquaSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsEloquaSource() (*EloquaSource, bool) { + return &es, true } -// AsAzureFunctionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsDrillSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsConcurSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { +// AsCassandraSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { +// AsTeradataSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { +// AsSQLDWSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsWebActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsWebActivity() (*WebActivity, bool) { +// AsSQLMISource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsSQLServerSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsSQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsSapTableSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsSapHanaSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsSapEccSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsSalesforceSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsSapBwSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsSybaseSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecutionActivity() (*ExecutionActivity, bool) { +// AsMySQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { +// AsOdbcSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsWebHookActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsDb2Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsInformixSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { +// AsAzureTableSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsFilterActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) { +// AsTabularSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsValidationActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &es, true } -// AsUntilActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsBinarySource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsOrcSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsXMLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsJSONSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return &epa, true +// AsParquetSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false } -// AsControlActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsControlActivity() (*ControlActivity, bool) { +// AsExcelSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &epa, true +// AsAvroSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAvroSource() (*AvroSource, bool) { + return nil, false } -// AsActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsActivity() (*Activity, bool) { +// AsCopySource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsBasicActivity() (BasicActivity, bool) { - return &epa, true +// AsBasicCopySource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsBasicCopySource() (BasicCopySource, bool) { + return &es, true } -// UnmarshalJSON is the custom unmarshaler for ExecutePipelineActivity struct. -func (epa *ExecutePipelineActivity) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for EloquaSource struct. +func (es *EloquaSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -94234,71 +92316,80 @@ func (epa *ExecutePipelineActivity) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "query": if v != nil { - var executePipelineActivityTypeProperties ExecutePipelineActivityTypeProperties - err = json.Unmarshal(*v, &executePipelineActivityTypeProperties) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - epa.ExecutePipelineActivityTypeProperties = &executePipelineActivityTypeProperties + es.Query = query } - default: + case "queryTimeout": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - if epa.AdditionalProperties == nil { - epa.AdditionalProperties = make(map[string]interface{}) + es.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err } - epa.AdditionalProperties[k] = additionalProperties + es.AdditionalColumns = &additionalColumns } - case "name": + default: if v != nil { - var name string - err = json.Unmarshal(*v, &name) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - epa.Name = &name + if es.AdditionalProperties == nil { + es.AdditionalProperties = make(map[string]interface{}) + } + es.AdditionalProperties[k] = additionalProperties } - case "description": + case "sourceRetryCount": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - epa.Description = &description + es.SourceRetryCount = sourceRetryCount } - case "dependsOn": + case "sourceRetryWait": if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - epa.DependsOn = &dependsOn + es.SourceRetryWait = sourceRetryWait } - case "userProperties": + case "maxConcurrentConnections": if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - epa.UserProperties = &userProperties + es.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicActivity + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - epa.Type = typeVar + es.Type = typeVar } } } @@ -94306,862 +92397,656 @@ func (epa *ExecutePipelineActivity) UnmarshalJSON(body []byte) error { return nil } -// ExecutePipelineActivityTypeProperties execute pipeline activity properties. -type ExecutePipelineActivityTypeProperties struct { - // Pipeline - Pipeline reference. - Pipeline *PipelineReference `json:"pipeline,omitempty"` - // Parameters - Pipeline parameters. - Parameters map[string]interface{} `json:"parameters"` - // WaitOnCompletion - Defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. - WaitOnCompletion *bool `json:"waitOnCompletion,omitempty"` +// EncryptionConfiguration definition of CMK for the factory. +type EncryptionConfiguration struct { + // KeyName - The name of the key in Azure Key Vault to use as Customer Managed Key. + KeyName *string `json:"keyName,omitempty"` + // VaultBaseURL - The url of the Azure Key Vault used for CMK. + VaultBaseURL *string `json:"vaultBaseUrl,omitempty"` + // KeyVersion - The version of the key used for CMK. If not provided, latest version will be used. + KeyVersion *string `json:"keyVersion,omitempty"` + // Identity - User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be used. + Identity *CMKIdentityDefinition `json:"identity,omitempty"` } -// MarshalJSON is the custom marshaler for ExecutePipelineActivityTypeProperties. -func (epatp ExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error) { +// EntityReference the entity reference. +type EntityReference struct { + // Type - The type of this referenced entity. Possible values include: 'IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference', 'IntegrationRuntimeEntityReferenceTypeLinkedServiceReference' + Type IntegrationRuntimeEntityReferenceType `json:"type,omitempty"` + // ReferenceName - The name of this referenced entity. + ReferenceName *string `json:"referenceName,omitempty"` +} + +// EnvironmentVariableSetup the custom setup of setting environment variable. +type EnvironmentVariableSetup struct { + // EnvironmentVariableSetupTypeProperties - Add environment variable type properties. + *EnvironmentVariableSetupTypeProperties `json:"typeProperties,omitempty"` + // Type - Possible values include: 'TypeCustomSetupBase', 'TypeAzPowerShellSetup', 'TypeComponentSetup', 'TypeEnvironmentVariableSetup', 'TypeCmdkeySetup' + Type TypeBasicCustomSetupBase `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) MarshalJSON() ([]byte, error) { + evs.Type = TypeEnvironmentVariableSetup objectMap := make(map[string]interface{}) - if epatp.Pipeline != nil { - objectMap["pipeline"] = epatp.Pipeline - } - if epatp.Parameters != nil { - objectMap["parameters"] = epatp.Parameters + if evs.EnvironmentVariableSetupTypeProperties != nil { + objectMap["typeProperties"] = evs.EnvironmentVariableSetupTypeProperties } - if epatp.WaitOnCompletion != nil { - objectMap["waitOnCompletion"] = epatp.WaitOnCompletion + if evs.Type != "" { + objectMap["type"] = evs.Type } return json.Marshal(objectMap) } -// ExecuteSSISPackageActivity execute SSIS package activity. -type ExecuteSSISPackageActivity struct { - // ExecuteSSISPackageActivityTypeProperties - Execute SSIS package activity properties. - *ExecuteSSISPackageActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` +// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { + return nil, false +} + +// AsComponentSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsComponentSetup() (*ComponentSetup, bool) { + return nil, false +} + +// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { + return &evs, true +} + +// AsCmdkeySetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsCmdkeySetup() (*CmdkeySetup, bool) { + return nil, false +} + +// AsCustomSetupBase is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsCustomSetupBase() (*CustomSetupBase, bool) { + return nil, false +} + +// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { + return &evs, true +} + +// UnmarshalJSON is the custom unmarshaler for EnvironmentVariableSetup struct. +func (evs *EnvironmentVariableSetup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var environmentVariableSetupTypeProperties EnvironmentVariableSetupTypeProperties + err = json.Unmarshal(*v, &environmentVariableSetupTypeProperties) + if err != nil { + return err + } + evs.EnvironmentVariableSetupTypeProperties = &environmentVariableSetupTypeProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCustomSetupBase + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + evs.Type = typeVar + } + } + } + + return nil +} + +// EnvironmentVariableSetupTypeProperties environment variable custom setup type properties. +type EnvironmentVariableSetupTypeProperties struct { + // VariableName - The name of the environment variable. + VariableName *string `json:"variableName,omitempty"` + // VariableValue - The value of the environment variable. + VariableValue *string `json:"variableValue,omitempty"` +} + +// ExcelDataset excel dataset. +type ExcelDataset struct { + // ExcelDatasetTypeProperties - Excel dataset properties. + *ExcelDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. + // Description - Dataset description. Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) MarshalJSON() ([]byte, error) { - espa.Type = TypeExecuteSSISPackage +// MarshalJSON is the custom marshaler for ExcelDataset. +func (ed ExcelDataset) MarshalJSON() ([]byte, error) { + ed.Type = TypeExcel objectMap := make(map[string]interface{}) - if espa.ExecuteSSISPackageActivityTypeProperties != nil { - objectMap["typeProperties"] = espa.ExecuteSSISPackageActivityTypeProperties + if ed.ExcelDatasetTypeProperties != nil { + objectMap["typeProperties"] = ed.ExcelDatasetTypeProperties } - if espa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = espa.LinkedServiceName + if ed.Description != nil { + objectMap["description"] = ed.Description } - if espa.Policy != nil { - objectMap["policy"] = espa.Policy + if ed.Structure != nil { + objectMap["structure"] = ed.Structure } - if espa.Name != nil { - objectMap["name"] = espa.Name + if ed.Schema != nil { + objectMap["schema"] = ed.Schema } - if espa.Description != nil { - objectMap["description"] = espa.Description + if ed.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ed.LinkedServiceName } - if espa.DependsOn != nil { - objectMap["dependsOn"] = espa.DependsOn + if ed.Parameters != nil { + objectMap["parameters"] = ed.Parameters } - if espa.UserProperties != nil { - objectMap["userProperties"] = espa.UserProperties + if ed.Annotations != nil { + objectMap["annotations"] = ed.Annotations } - if espa.Type != "" { - objectMap["type"] = espa.Type + if ed.Folder != nil { + objectMap["folder"] = ed.Folder } - for k, v := range espa.AdditionalProperties { + if ed.Type != "" { + objectMap["type"] = ed.Type + } + for k, v := range ed.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsWebActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsWebActivity() (*WebActivity, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return &espa, true +// AsServiceNowObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecutionActivity() (*ExecutionActivity, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &espa, true +// AsMagentoObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false } -// AsWebHookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsFilterActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsFilterActivity() (*FilterActivity, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsValidationActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsValidationActivity() (*ValidationActivity, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsUntilActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsDrillTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsControlActivity() (*ControlActivity, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsBasicControlActivity() (BasicControlActivity, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsActivity() (*Activity, bool) { +// AsHTTPDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsBasicActivity() (BasicActivity, bool) { - return &espa, true +// AsAzureSearchIndexDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for ExecuteSSISPackageActivity struct. -func (espa *ExecuteSSISPackageActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var executeSSISPackageActivityTypeProperties ExecuteSSISPackageActivityTypeProperties - err = json.Unmarshal(*v, &executeSSISPackageActivityTypeProperties) - if err != nil { - return err - } - espa.ExecuteSSISPackageActivityTypeProperties = &executeSSISPackageActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - espa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - espa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if espa.AdditionalProperties == nil { - espa.AdditionalProperties = make(map[string]interface{}) - } - espa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - espa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - espa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - espa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - espa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - espa.Type = typeVar - } - } - } +// AsWebTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} - return nil +// AsSapTableResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false } -// ExecuteSSISPackageActivityTypeProperties execute SSIS package activity properties. -type ExecuteSSISPackageActivityTypeProperties struct { - // PackageLocation - SSIS package location. - PackageLocation *SSISPackageLocation `json:"packageLocation,omitempty"` - // Runtime - Specifies the runtime to execute SSIS package. The value should be "x86" or "x64". Type: string (or Expression with resultType string). - Runtime interface{} `json:"runtime,omitempty"` - // LoggingLevel - The logging level of SSIS package execution. Type: string (or Expression with resultType string). - LoggingLevel interface{} `json:"loggingLevel,omitempty"` - // EnvironmentPath - The environment path to execute the SSIS package. Type: string (or Expression with resultType string). - EnvironmentPath interface{} `json:"environmentPath,omitempty"` - // ExecutionCredential - The package execution credential. - ExecutionCredential *SSISExecutionCredential `json:"executionCredential,omitempty"` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // ProjectParameters - The project level parameters to execute the SSIS package. - ProjectParameters map[string]*SSISExecutionParameter `json:"projectParameters"` - // PackageParameters - The package level parameters to execute the SSIS package. - PackageParameters map[string]*SSISExecutionParameter `json:"packageParameters"` - // ProjectConnectionManagers - The project level connection managers to execute the SSIS package. - ProjectConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"projectConnectionManagers"` - // PackageConnectionManagers - The package level connection managers to execute the SSIS package. - PackageConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"packageConnectionManagers"` - // PropertyOverrides - The property overrides to execute the SSIS package. - PropertyOverrides map[string]*SSISPropertyOverride `json:"propertyOverrides"` - // LogLocation - SSIS package execution log location. - LogLocation *SSISLogLocation `json:"logLocation,omitempty"` +// AsRestResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for ExecuteSSISPackageActivityTypeProperties. -func (espatp ExecuteSSISPackageActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if espatp.PackageLocation != nil { - objectMap["packageLocation"] = espatp.PackageLocation - } - if espatp.Runtime != nil { - objectMap["runtime"] = espatp.Runtime - } - if espatp.LoggingLevel != nil { - objectMap["loggingLevel"] = espatp.LoggingLevel - } - if espatp.EnvironmentPath != nil { - objectMap["environmentPath"] = espatp.EnvironmentPath - } - if espatp.ExecutionCredential != nil { - objectMap["executionCredential"] = espatp.ExecutionCredential - } - if espatp.ConnectVia != nil { - objectMap["connectVia"] = espatp.ConnectVia - } - if espatp.ProjectParameters != nil { - objectMap["projectParameters"] = espatp.ProjectParameters - } - if espatp.PackageParameters != nil { - objectMap["packageParameters"] = espatp.PackageParameters - } - if espatp.ProjectConnectionManagers != nil { - objectMap["projectConnectionManagers"] = espatp.ProjectConnectionManagers - } - if espatp.PackageConnectionManagers != nil { - objectMap["packageConnectionManagers"] = espatp.PackageConnectionManagers - } - if espatp.PropertyOverrides != nil { - objectMap["propertyOverrides"] = espatp.PropertyOverrides - } - if espatp.LogLocation != nil { - objectMap["logLocation"] = espatp.LogLocation - } - return json.Marshal(objectMap) +// AsSQLServerTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false } -// BasicExecutionActivity base class for all execution activities. -type BasicExecutionActivity interface { - AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) - AsAzureFunctionActivity() (*AzureFunctionActivity, bool) - AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) - AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) - AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) - AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) - AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) - AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) - AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) - AsGetMetadataActivity() (*GetMetadataActivity, bool) - AsWebActivity() (*WebActivity, bool) - AsLookupActivity() (*LookupActivity, bool) - AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) - AsDeleteActivity() (*DeleteActivity, bool) - AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) - AsCustomActivity() (*CustomActivity, bool) - AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) - AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) - AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) - AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) - AsHDInsightPigActivity() (*HDInsightPigActivity, bool) - AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) - AsCopyActivity() (*CopyActivity, bool) - AsExecutionActivity() (*ExecutionActivity, bool) +// AsSapHanaTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false } -// ExecutionActivity base class for all execution activities. -type ExecutionActivity struct { - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` +// AsSapEccResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false } -func unmarshalBasicExecutionActivity(body []byte) (BasicExecutionActivity, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} - switch m["type"] { - case string(TypeExecuteDataFlow): - var edfa ExecuteDataFlowActivity - err := json.Unmarshal(body, &edfa) - return edfa, err - case string(TypeAzureFunctionActivity): - var afa AzureFunctionActivity - err := json.Unmarshal(body, &afa) - return afa, err - case string(TypeDatabricksSparkPython): - var dspa DatabricksSparkPythonActivity - err := json.Unmarshal(body, &dspa) - return dspa, err - case string(TypeDatabricksSparkJar): - var dsja DatabricksSparkJarActivity - err := json.Unmarshal(body, &dsja) - return dsja, err - case string(TypeDatabricksNotebook): - var dna DatabricksNotebookActivity - err := json.Unmarshal(body, &dna) - return dna, err - case string(TypeDataLakeAnalyticsUSQL): - var dlaua DataLakeAnalyticsUSQLActivity - err := json.Unmarshal(body, &dlaua) - return dlaua, err - case string(TypeAzureMLExecutePipeline): - var amepa AzureMLExecutePipelineActivity - err := json.Unmarshal(body, &amepa) - return amepa, err - case string(TypeAzureMLUpdateResource): - var amura AzureMLUpdateResourceActivity - err := json.Unmarshal(body, &amura) - return amura, err - case string(TypeAzureMLBatchExecution): - var ambea AzureMLBatchExecutionActivity - err := json.Unmarshal(body, &ambea) - return ambea, err - case string(TypeGetMetadata): - var gma GetMetadataActivity - err := json.Unmarshal(body, &gma) - return gma, err - case string(TypeWebActivity): - var wa WebActivity - err := json.Unmarshal(body, &wa) - return wa, err - case string(TypeLookup): - var la LookupActivity - err := json.Unmarshal(body, &la) - return la, err - case string(TypeAzureDataExplorerCommand): - var adeca AzureDataExplorerCommandActivity - err := json.Unmarshal(body, &adeca) - return adeca, err - case string(TypeDelete): - var da DeleteActivity - err := json.Unmarshal(body, &da) - return da, err - case string(TypeSQLServerStoredProcedure): - var ssspa SQLServerStoredProcedureActivity - err := json.Unmarshal(body, &ssspa) - return ssspa, err - case string(TypeCustom): - var ca CustomActivity - err := json.Unmarshal(body, &ca) - return ca, err - case string(TypeExecuteSSISPackage): - var espa ExecuteSSISPackageActivity - err := json.Unmarshal(body, &espa) - return espa, err - case string(TypeHDInsightSpark): - var hisa HDInsightSparkActivity - err := json.Unmarshal(body, &hisa) - return hisa, err - case string(TypeHDInsightStreaming): - var hisa HDInsightStreamingActivity - err := json.Unmarshal(body, &hisa) - return hisa, err - case string(TypeHDInsightMapReduce): - var himra HDInsightMapReduceActivity - err := json.Unmarshal(body, &himra) - return himra, err - case string(TypeHDInsightPig): - var hipa HDInsightPigActivity - err := json.Unmarshal(body, &hipa) - return hipa, err - case string(TypeHDInsightHive): - var hiha HDInsightHiveActivity - err := json.Unmarshal(body, &hiha) - return hiha, err - case string(TypeCopy): - var ca CopyActivity - err := json.Unmarshal(body, &ca) - return ca, err - default: - var ea ExecutionActivity - err := json.Unmarshal(body, &ea) - return ea, err - } +// AsSapBwCubeDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false } -func unmarshalBasicExecutionActivityArray(body []byte) ([]BasicExecutionActivity, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - eaArray := make([]BasicExecutionActivity, len(rawMessages)) +// AsSybaseTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} - for index, rawMessage := range rawMessages { - ea, err := unmarshalBasicExecutionActivity(*rawMessage) - if err != nil { - return nil, err - } - eaArray[index] = ea - } - return eaArray, nil +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for ExecutionActivity. -func (ea ExecutionActivity) MarshalJSON() ([]byte, error) { - ea.Type = TypeExecution - objectMap := make(map[string]interface{}) - if ea.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ea.LinkedServiceName - } - if ea.Policy != nil { - objectMap["policy"] = ea.Policy - } - if ea.Name != nil { - objectMap["name"] = ea.Name - } - if ea.Description != nil { - objectMap["description"] = ea.Description - } - if ea.DependsOn != nil { - objectMap["dependsOn"] = ea.DependsOn - } - if ea.UserProperties != nil { - objectMap["userProperties"] = ea.UserProperties - } - if ea.Type != "" { - objectMap["type"] = ea.Type - } - for k, v := range ea.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsSalesforceObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false } -// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsInformixTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { +// AsDb2TableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsWebActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsWebActivity() (*WebActivity, bool) { +// AsOracleTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsODataResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsFileShareDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsOffice365Dataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return &ea, true +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ea, true +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false } -// AsWebHookActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsCustomDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsFilterActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsValidationActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsValidationActivity() (*ValidationActivity, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsUntilActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsAzureTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsBinaryDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsOrcDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsXMLDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsJSONDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsControlActivity() (*ControlActivity, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { +// AsParquetDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsActivity() (*Activity, bool) { +// AsExcelDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsExcelDataset() (*ExcelDataset, bool) { + return &ed, true +} + +// AsAvroDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsBasicActivity() (BasicActivity, bool) { - return &ea, true +// AsAmazonS3Dataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for ExecutionActivity struct. -func (ea *ExecutionActivity) UnmarshalJSON(body []byte) error { +// AsDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsBasicDataset() (BasicDataset, bool) { + return &ed, true +} + +// UnmarshalJSON is the custom unmarshaler for ExcelDataset struct. +func (ed *ExcelDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -95169,23 +93054,14 @@ func (ea *ExecutionActivity) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ea.LinkedServiceName = &linkedServiceName - } - case "policy": + case "typeProperties": if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) + var excelDatasetTypeProperties ExcelDatasetTypeProperties + err = json.Unmarshal(*v, &excelDatasetTypeProperties) if err != nil { return err } - ea.Policy = &policy + ed.ExcelDatasetTypeProperties = &excelDatasetTypeProperties } default: if v != nil { @@ -95194,180 +93070,82 @@ func (ea *ExecutionActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - if ea.AdditionalProperties == nil { - ea.AdditionalProperties = make(map[string]interface{}) + if ed.AdditionalProperties == nil { + ed.AdditionalProperties = make(map[string]interface{}) } - ea.AdditionalProperties[k] = additionalProperties + ed.AdditionalProperties[k] = additionalProperties } - case "name": + case "description": if v != nil { - var name string - err = json.Unmarshal(*v, &name) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - ea.Name = &name + ed.Description = &description } - case "description": + case "structure": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - ea.Description = &description + ed.Structure = structure } - case "dependsOn": + case "schema": if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - ea.DependsOn = &dependsOn + ed.Schema = schema } - case "userProperties": + case "linkedServiceName": if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - ea.UserProperties = &userProperties + ed.LinkedServiceName = &linkedServiceName } - case "type": + case "parameters": if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - ea.Type = typeVar + ed.Parameters = parameters } - } - } - - return nil -} - -// BasicExportSettings export command settings. -type BasicExportSettings interface { - AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) - AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) - AsExportSettings() (*ExportSettings, bool) -} - -// ExportSettings export command settings. -type ExportSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeExportSettings', 'TypeSnowflakeExportCopyCommand', 'TypeAzureDatabricksDeltaLakeExportCommand' - Type TypeBasicExportSettings `json:"type,omitempty"` -} - -func unmarshalBasicExportSettings(body []byte) (BasicExportSettings, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeSnowflakeExportCopyCommand): - var secc SnowflakeExportCopyCommand - err := json.Unmarshal(body, &secc) - return secc, err - case string(TypeAzureDatabricksDeltaLakeExportCommand): - var addlec AzureDatabricksDeltaLakeExportCommand - err := json.Unmarshal(body, &addlec) - return addlec, err - default: - var es ExportSettings - err := json.Unmarshal(body, &es) - return es, err - } -} -func unmarshalBasicExportSettingsArray(body []byte) ([]BasicExportSettings, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - esArray := make([]BasicExportSettings, len(rawMessages)) - - for index, rawMessage := range rawMessages { - es, err := unmarshalBasicExportSettings(*rawMessage) - if err != nil { - return nil, err - } - esArray[index] = es - } - return esArray, nil -} - -// MarshalJSON is the custom marshaler for ExportSettings. -func (es ExportSettings) MarshalJSON() ([]byte, error) { - es.Type = TypeExportSettings - objectMap := make(map[string]interface{}) - if es.Type != "" { - objectMap["type"] = es.Type - } - for k, v := range es.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for ExportSettings. -func (es ExportSettings) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for ExportSettings. -func (es ExportSettings) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { - return nil, false -} - -// AsExportSettings is the BasicExportSettings implementation for ExportSettings. -func (es ExportSettings) AsExportSettings() (*ExportSettings, bool) { - return &es, true -} - -// AsBasicExportSettings is the BasicExportSettings implementation for ExportSettings. -func (es ExportSettings) AsBasicExportSettings() (BasicExportSettings, bool) { - return &es, true -} - -// UnmarshalJSON is the custom unmarshaler for ExportSettings struct. -func (es *ExportSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: + case "annotations": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - if es.AdditionalProperties == nil { - es.AdditionalProperties = make(map[string]interface{}) + ed.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err } - es.AdditionalProperties[k] = additionalProperties + ed.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicExportSettings + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - es.Type = typeVar + ed.Type = typeVar } } } @@ -95375,90 +93153,24 @@ func (es *ExportSettings) UnmarshalJSON(body []byte) error { return nil } -// ExposureControlBatchRequest a list of exposure control features. -type ExposureControlBatchRequest struct { - // ExposureControlRequests - List of exposure control features. - ExposureControlRequests *[]ExposureControlRequest `json:"exposureControlRequests,omitempty"` -} - -// ExposureControlBatchResponse a list of exposure control feature values. -type ExposureControlBatchResponse struct { - autorest.Response `json:"-"` - // ExposureControlResponses - List of exposure control feature values. - ExposureControlResponses *[]ExposureControlResponse `json:"exposureControlResponses,omitempty"` -} - -// ExposureControlRequest the exposure control request. -type ExposureControlRequest struct { - // FeatureName - The feature name. - FeatureName *string `json:"featureName,omitempty"` - // FeatureType - The feature type. - FeatureType *string `json:"featureType,omitempty"` -} - -// ExposureControlResponse the exposure control response. -type ExposureControlResponse struct { - autorest.Response `json:"-"` - // FeatureName - READ-ONLY; The feature name. - FeatureName *string `json:"featureName,omitempty"` - // Value - READ-ONLY; The feature value. - Value *string `json:"value,omitempty"` -} - -// Expression azure Data Factory expression definition. -type Expression struct { - // Type - Expression type. - Type *string `json:"type,omitempty"` - // Value - Expression value. - Value *string `json:"value,omitempty"` -} - -// Factory factory resource type. -type Factory struct { - autorest.Response `json:"-"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Identity - Managed service identity of the factory. - Identity *FactoryIdentity `json:"identity,omitempty"` - // FactoryProperties - Properties of the factory. - *FactoryProperties `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Location - The resource location. - Location *string `json:"location,omitempty"` - // Tags - The resource tags. - Tags map[string]*string `json:"tags"` - // ETag - READ-ONLY; Etag identifies change in the resource. - ETag *string `json:"eTag,omitempty"` -} - -// MarshalJSON is the custom marshaler for Factory. -func (f Factory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if f.Identity != nil { - objectMap["identity"] = f.Identity - } - if f.FactoryProperties != nil { - objectMap["properties"] = f.FactoryProperties - } - if f.Location != nil { - objectMap["location"] = f.Location - } - if f.Tags != nil { - objectMap["tags"] = f.Tags - } - for k, v := range f.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// ExcelDatasetTypeProperties excel dataset properties. +type ExcelDatasetTypeProperties struct { + // Location - The location of the excel storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // SheetName - The sheet of excel file. Type: string (or Expression with resultType string). + SheetName interface{} `json:"sheetName,omitempty"` + // Range - The partial data of one sheet. Type: string (or Expression with resultType string). + Range interface{} `json:"range,omitempty"` + // FirstRowAsHeader - 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). + FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` + // Compression - The data compression method used for the json dataset. + Compression BasicDatasetCompression `json:"compression,omitempty"` + // NullValue - The null value string. Type: string (or Expression with resultType string). + NullValue interface{} `json:"nullValue,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for Factory struct. -func (f *Factory) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for ExcelDatasetTypeProperties struct. +func (edtp *ExcelDatasetTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -95466,89 +93178,57 @@ func (f *Factory) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if f.AdditionalProperties == nil { - f.AdditionalProperties = make(map[string]interface{}) - } - f.AdditionalProperties[k] = additionalProperties - } - case "identity": - if v != nil { - var identity FactoryIdentity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - f.Identity = &identity - } - case "properties": - if v != nil { - var factoryProperties FactoryProperties - err = json.Unmarshal(*v, &factoryProperties) - if err != nil { - return err - } - f.FactoryProperties = &factoryProperties - } - case "id": + case "location": if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) + location, err := unmarshalBasicDatasetLocation(*v) if err != nil { return err } - f.ID = &ID + edtp.Location = location } - case "name": + case "sheetName": if v != nil { - var name string - err = json.Unmarshal(*v, &name) + var sheetName interface{} + err = json.Unmarshal(*v, &sheetName) if err != nil { return err } - f.Name = &name + edtp.SheetName = sheetName } - case "type": + case "range": if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) + var rangeVar interface{} + err = json.Unmarshal(*v, &rangeVar) if err != nil { return err } - f.Type = &typeVar + edtp.Range = rangeVar } - case "location": + case "firstRowAsHeader": if v != nil { - var location string - err = json.Unmarshal(*v, &location) + var firstRowAsHeader interface{} + err = json.Unmarshal(*v, &firstRowAsHeader) if err != nil { return err } - f.Location = &location + edtp.FirstRowAsHeader = firstRowAsHeader } - case "tags": + case "compression": if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) + compression, err := unmarshalBasicDatasetCompression(*v) if err != nil { return err } - f.Tags = tags + edtp.Compression = compression } - case "eTag": + case "nullValue": if v != nil { - var eTag string - err = json.Unmarshal(*v, &eTag) + var nullValue interface{} + err = json.Unmarshal(*v, &nullValue) if err != nil { return err } - f.ETag = &eTag + edtp.NullValue = nullValue } } } @@ -95556,1164 +93236,1239 @@ func (f *Factory) UnmarshalJSON(body []byte) error { return nil } -// FactoryGitHubConfiguration factory's GitHub repo information. -type FactoryGitHubConfiguration struct { - // HostName - GitHub Enterprise host name. For example: https://github.mydomain.com - HostName *string `json:"hostName,omitempty"` - // AccountName - Account name. - AccountName *string `json:"accountName,omitempty"` - // RepositoryName - Repository name. - RepositoryName *string `json:"repositoryName,omitempty"` - // CollaborationBranch - Collaboration branch. - CollaborationBranch *string `json:"collaborationBranch,omitempty"` - // RootFolder - Root folder. - RootFolder *string `json:"rootFolder,omitempty"` - // LastCommitID - Last commit id. - LastCommitID *string `json:"lastCommitId,omitempty"` - // Type - Possible values include: 'TypeFactoryRepoConfiguration', 'TypeFactoryVSTSConfiguration', 'TypeFactoryGitHubConfiguration' - Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` +// ExcelSource a copy activity excel source. +type ExcelSource struct { + // StoreSettings - Excel store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for FactoryGitHubConfiguration. -func (fghc FactoryGitHubConfiguration) MarshalJSON() ([]byte, error) { - fghc.Type = TypeFactoryGitHubConfiguration +// MarshalJSON is the custom marshaler for ExcelSource. +func (es ExcelSource) MarshalJSON() ([]byte, error) { + es.Type = TypeExcelSource objectMap := make(map[string]interface{}) - if fghc.HostName != nil { - objectMap["hostName"] = fghc.HostName - } - if fghc.AccountName != nil { - objectMap["accountName"] = fghc.AccountName + objectMap["storeSettings"] = es.StoreSettings + if es.AdditionalColumns != nil { + objectMap["additionalColumns"] = es.AdditionalColumns } - if fghc.RepositoryName != nil { - objectMap["repositoryName"] = fghc.RepositoryName + if es.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = es.SourceRetryCount } - if fghc.CollaborationBranch != nil { - objectMap["collaborationBranch"] = fghc.CollaborationBranch + if es.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = es.SourceRetryWait } - if fghc.RootFolder != nil { - objectMap["rootFolder"] = fghc.RootFolder + if es.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = es.MaxConcurrentConnections } - if fghc.LastCommitID != nil { - objectMap["lastCommitId"] = fghc.LastCommitID + if es.Type != "" { + objectMap["type"] = es.Type } - if fghc.Type != "" { - objectMap["type"] = fghc.Type + for k, v := range es.AdditionalProperties { + objectMap[k] = v } return json.Marshal(objectMap) } -// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. -func (fghc FactoryGitHubConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. -func (fghc FactoryGitHubConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { - return &fghc, true +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false } -// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. -func (fghc FactoryGitHubConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. -func (fghc FactoryGitHubConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { - return &fghc, true +// AsHTTPSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false } -// FactoryIdentity identity properties of the factory resource. -type FactoryIdentity struct { - // Type - The identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssignedUserAssigned' - Type FactoryIdentityType `json:"type,omitempty"` - // PrincipalID - READ-ONLY; The principal id of the identity. - PrincipalID *uuid.UUID `json:"principalId,omitempty"` - // TenantID - READ-ONLY; The client tenant id of the identity. - TenantID *uuid.UUID `json:"tenantId,omitempty"` - // UserAssignedIdentities - List of user assigned identities for the factory. - UserAssignedIdentities map[string]interface{} `json:"userAssignedIdentities"` +// AsAzureBlobFSSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for FactoryIdentity. -func (fi FactoryIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if fi.Type != "" { - objectMap["type"] = fi.Type - } - if fi.UserAssignedIdentities != nil { - objectMap["userAssignedIdentities"] = fi.UserAssignedIdentities - } - return json.Marshal(objectMap) +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false } -// FactoryListResponse a list of factory resources. -type FactoryListResponse struct { - autorest.Response `json:"-"` - // Value - List of factories. - Value *[]Factory `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` +// AsOffice365Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false } -// FactoryListResponseIterator provides access to a complete listing of Factory values. -type FactoryListResponseIterator struct { - i int - page FactoryListResponsePage +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false } -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *FactoryListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/FactoryListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil +// AsMongoDbV2Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false } -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *FactoryListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) +// AsDynamicsAXSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false } -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter FactoryListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) +// AsResponsysSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false } -// Response returns the raw server response from the last page request. -func (iter FactoryListResponseIterator) Response() FactoryListResponse { - return iter.page.Response() +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false } -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter FactoryListResponseIterator) Value() Factory { - if !iter.page.NotDone() { - return Factory{} - } - return iter.page.Values()[iter.i] +// AsVerticaSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false } -// Creates a new instance of the FactoryListResponseIterator type. -func NewFactoryListResponseIterator(page FactoryListResponsePage) FactoryListResponseIterator { - return FactoryListResponseIterator{page: page} +// AsNetezzaSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false } -// IsEmpty returns true if the ListResult contains no values. -func (flr FactoryListResponse) IsEmpty() bool { - return flr.Value == nil || len(*flr.Value) == 0 +// AsZohoSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false } -// hasNextLink returns true if the NextLink is not empty. -func (flr FactoryListResponse) hasNextLink() bool { - return flr.NextLink != nil && len(*flr.NextLink) != 0 +// AsXeroSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsXeroSource() (*XeroSource, bool) { + return nil, false } -// factoryListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (flr FactoryListResponse) factoryListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !flr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(flr.NextLink))) +// AsSquareSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSquareSource() (*SquareSource, bool) { + return nil, false } -// FactoryListResponsePage contains a page of Factory values. -type FactoryListResponsePage struct { - fn func(context.Context, FactoryListResponse) (FactoryListResponse, error) - flr FactoryListResponse +// AsSparkSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSparkSource() (*SparkSource, bool) { + return nil, false } -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *FactoryListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/FactoryListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.flr) - if err != nil { - return err - } - page.flr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil +// AsShopifySource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false } -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *FactoryListResponsePage) Next() error { - return page.NextWithContext(context.Background()) +// AsServiceNowSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false } -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page FactoryListResponsePage) NotDone() bool { - return !page.flr.IsEmpty() +// AsQuickBooksSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false } -// Response returns the raw server response from the last page request. -func (page FactoryListResponsePage) Response() FactoryListResponse { - return page.flr +// AsPrestoSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false } -// Values returns the slice of values for the current page or nil if there are no values. -func (page FactoryListResponsePage) Values() []Factory { - if page.flr.IsEmpty() { - return nil - } - return *page.flr.Value +// AsPhoenixSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false } -// Creates a new instance of the FactoryListResponsePage type. -func NewFactoryListResponsePage(cur FactoryListResponse, getNextPage func(context.Context, FactoryListResponse) (FactoryListResponse, error)) FactoryListResponsePage { - return FactoryListResponsePage{ - fn: getNextPage, - flr: cur, - } +// AsPaypalSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false } -// FactoryProperties factory resource properties. -type FactoryProperties struct { - // ProvisioningState - READ-ONLY; Factory provisioning state, example Succeeded. - ProvisioningState *string `json:"provisioningState,omitempty"` - // CreateTime - READ-ONLY; Time the factory was created in ISO8601 format. - CreateTime *date.Time `json:"createTime,omitempty"` - // Version - READ-ONLY; Version of the factory. - Version *string `json:"version,omitempty"` - // RepoConfiguration - Git repo information of the factory. - RepoConfiguration BasicFactoryRepoConfiguration `json:"repoConfiguration,omitempty"` - // GlobalParameters - List of parameters for factory. - GlobalParameters map[string]*GlobalParameterSpecification `json:"globalParameters"` - // Encryption - Properties to enable Customer Managed Key for the factory. - Encryption *EncryptionConfiguration `json:"encryption,omitempty"` - // PublicNetworkAccess - Whether or not public network access is allowed for the data factory. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' - PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` +// AsMarketoSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for FactoryProperties. -func (fp FactoryProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["repoConfiguration"] = fp.RepoConfiguration - if fp.GlobalParameters != nil { - objectMap["globalParameters"] = fp.GlobalParameters - } - if fp.Encryption != nil { - objectMap["encryption"] = fp.Encryption - } - if fp.PublicNetworkAccess != "" { - objectMap["publicNetworkAccess"] = fp.PublicNetworkAccess - } - return json.Marshal(objectMap) +// AsAzureMariaDBSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for FactoryProperties struct. -func (fp *FactoryProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "provisioningState": - if v != nil { - var provisioningState string - err = json.Unmarshal(*v, &provisioningState) - if err != nil { - return err - } - fp.ProvisioningState = &provisioningState - } - case "createTime": - if v != nil { - var createTime date.Time - err = json.Unmarshal(*v, &createTime) - if err != nil { - return err - } - fp.CreateTime = &createTime - } - case "version": - if v != nil { - var version string - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - fp.Version = &version - } - case "repoConfiguration": - if v != nil { - repoConfiguration, err := unmarshalBasicFactoryRepoConfiguration(*v) - if err != nil { - return err - } - fp.RepoConfiguration = repoConfiguration - } - case "globalParameters": - if v != nil { - var globalParameters map[string]*GlobalParameterSpecification - err = json.Unmarshal(*v, &globalParameters) - if err != nil { - return err - } - fp.GlobalParameters = globalParameters - } - case "encryption": - if v != nil { - var encryption EncryptionConfiguration - err = json.Unmarshal(*v, &encryption) - if err != nil { - return err - } - fp.Encryption = &encryption - } - case "publicNetworkAccess": - if v != nil { - var publicNetworkAccess PublicNetworkAccess - err = json.Unmarshal(*v, &publicNetworkAccess) - if err != nil { - return err - } - fp.PublicNetworkAccess = publicNetworkAccess - } - } - } +// AsMariaDBSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} - return nil +// AsMagentoSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false } -// BasicFactoryRepoConfiguration factory's git repo information. -type BasicFactoryRepoConfiguration interface { - AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) - AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) - AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) +// AsJiraSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsJiraSource() (*JiraSource, bool) { + return nil, false } -// FactoryRepoConfiguration factory's git repo information. -type FactoryRepoConfiguration struct { - // AccountName - Account name. - AccountName *string `json:"accountName,omitempty"` - // RepositoryName - Repository name. - RepositoryName *string `json:"repositoryName,omitempty"` - // CollaborationBranch - Collaboration branch. - CollaborationBranch *string `json:"collaborationBranch,omitempty"` - // RootFolder - Root folder. - RootFolder *string `json:"rootFolder,omitempty"` - // LastCommitID - Last commit id. - LastCommitID *string `json:"lastCommitId,omitempty"` - // Type - Possible values include: 'TypeFactoryRepoConfiguration', 'TypeFactoryVSTSConfiguration', 'TypeFactoryGitHubConfiguration' - Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` +// AsImpalaSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false } -func unmarshalBasicFactoryRepoConfiguration(body []byte) (BasicFactoryRepoConfiguration, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } +// AsHubspotSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} - switch m["type"] { - case string(TypeFactoryVSTSConfiguration): - var fvc FactoryVSTSConfiguration - err := json.Unmarshal(body, &fvc) - return fvc, err - case string(TypeFactoryGitHubConfiguration): - var fghc FactoryGitHubConfiguration - err := json.Unmarshal(body, &fghc) - return fghc, err - default: - var frc FactoryRepoConfiguration - err := json.Unmarshal(body, &frc) - return frc, err - } +// AsHiveSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsHiveSource() (*HiveSource, bool) { + return nil, false } -func unmarshalBasicFactoryRepoConfigurationArray(body []byte) ([]BasicFactoryRepoConfiguration, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - frcArray := make([]BasicFactoryRepoConfiguration, len(rawMessages)) +// AsHBaseSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} - for index, rawMessage := range rawMessages { - frc, err := unmarshalBasicFactoryRepoConfiguration(*rawMessage) - if err != nil { - return nil, err - } - frcArray[index] = frc - } - return frcArray, nil +// AsGreenplumSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for FactoryRepoConfiguration. -func (frc FactoryRepoConfiguration) MarshalJSON() ([]byte, error) { - frc.Type = TypeFactoryRepoConfiguration - objectMap := make(map[string]interface{}) - if frc.AccountName != nil { - objectMap["accountName"] = frc.AccountName - } - if frc.RepositoryName != nil { - objectMap["repositoryName"] = frc.RepositoryName - } - if frc.CollaborationBranch != nil { - objectMap["collaborationBranch"] = frc.CollaborationBranch - } - if frc.RootFolder != nil { - objectMap["rootFolder"] = frc.RootFolder - } - if frc.LastCommitID != nil { - objectMap["lastCommitId"] = frc.LastCommitID - } - if frc.Type != "" { - objectMap["type"] = frc.Type - } - return json.Marshal(objectMap) +// AsGoogleBigQuerySource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false } -// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. -func (frc FactoryRepoConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { +// AsEloquaSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. -func (frc FactoryRepoConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { +// AsDrillSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. -func (frc FactoryRepoConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { - return &frc, true +// AsCouchbaseSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false } -// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. -func (frc FactoryRepoConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { - return &frc, true +// AsConcurSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false } -// FactoryRepoUpdate factory's git repo information. -type FactoryRepoUpdate struct { - // FactoryResourceID - The factory resource id. - FactoryResourceID *string `json:"factoryResourceId,omitempty"` - // RepoConfiguration - Git repo information of the factory. - RepoConfiguration BasicFactoryRepoConfiguration `json:"repoConfiguration,omitempty"` +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for FactoryRepoUpdate struct. -func (fru *FactoryRepoUpdate) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "factoryResourceId": - if v != nil { - var factoryResourceID string - err = json.Unmarshal(*v, &factoryResourceID) - if err != nil { - return err - } - fru.FactoryResourceID = &factoryResourceID - } - case "repoConfiguration": - if v != nil { - repoConfiguration, err := unmarshalBasicFactoryRepoConfiguration(*v) - if err != nil { - return err - } - fru.RepoConfiguration = repoConfiguration - } - } - } +// AsAmazonMWSSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} - return nil +// AsCassandraSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false } -// FactoryUpdateParameters parameters for updating a factory resource. -type FactoryUpdateParameters struct { - // Tags - The resource tags. - Tags map[string]*string `json:"tags"` - // Identity - Managed service identity of the factory. - Identity *FactoryIdentity `json:"identity,omitempty"` +// AsTeradataSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for FactoryUpdateParameters. -func (fup FactoryUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if fup.Tags != nil { - objectMap["tags"] = fup.Tags - } - if fup.Identity != nil { - objectMap["identity"] = fup.Identity - } - return json.Marshal(objectMap) +// AsAzureMySQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false } -// FactoryVSTSConfiguration factory's VSTS repo information. -type FactoryVSTSConfiguration struct { - // ProjectName - VSTS project name. - ProjectName *string `json:"projectName,omitempty"` - // TenantID - VSTS tenant id. - TenantID *string `json:"tenantId,omitempty"` - // AccountName - Account name. - AccountName *string `json:"accountName,omitempty"` - // RepositoryName - Repository name. - RepositoryName *string `json:"repositoryName,omitempty"` - // CollaborationBranch - Collaboration branch. - CollaborationBranch *string `json:"collaborationBranch,omitempty"` - // RootFolder - Root folder. - RootFolder *string `json:"rootFolder,omitempty"` - // LastCommitID - Last commit id. - LastCommitID *string `json:"lastCommitId,omitempty"` - // Type - Possible values include: 'TypeFactoryRepoConfiguration', 'TypeFactoryVSTSConfiguration', 'TypeFactoryGitHubConfiguration' - Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` +// AsSQLDWSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for FactoryVSTSConfiguration. -func (fvc FactoryVSTSConfiguration) MarshalJSON() ([]byte, error) { - fvc.Type = TypeFactoryVSTSConfiguration - objectMap := make(map[string]interface{}) - if fvc.ProjectName != nil { - objectMap["projectName"] = fvc.ProjectName - } - if fvc.TenantID != nil { - objectMap["tenantId"] = fvc.TenantID - } - if fvc.AccountName != nil { - objectMap["accountName"] = fvc.AccountName - } - if fvc.RepositoryName != nil { - objectMap["repositoryName"] = fvc.RepositoryName - } - if fvc.CollaborationBranch != nil { - objectMap["collaborationBranch"] = fvc.CollaborationBranch - } - if fvc.RootFolder != nil { - objectMap["rootFolder"] = fvc.RootFolder - } - if fvc.LastCommitID != nil { - objectMap["lastCommitId"] = fvc.LastCommitID - } - if fvc.Type != "" { - objectMap["type"] = fvc.Type - } - return json.Marshal(objectMap) +// AsSQLMISource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false } -// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. -func (fvc FactoryVSTSConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { - return &fvc, true +// AsAzureSQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false } -// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. -func (fvc FactoryVSTSConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { +// AsSQLServerSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. -func (fvc FactoryVSTSConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { +// AsSQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. -func (fvc FactoryVSTSConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { - return &fvc, true +// AsSapTableSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false } -// FileServerLinkedService file system linked service. -type FileServerLinkedService struct { - // FileServerLinkedServiceTypeProperties - File system linked service properties. - *FileServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` +// AsSapOpenHubSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for FileServerLinkedService. -func (fsls FileServerLinkedService) MarshalJSON() ([]byte, error) { - fsls.Type = TypeFileServer - objectMap := make(map[string]interface{}) - if fsls.FileServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = fsls.FileServerLinkedServiceTypeProperties - } - if fsls.ConnectVia != nil { - objectMap["connectVia"] = fsls.ConnectVia - } - if fsls.Description != nil { - objectMap["description"] = fsls.Description - } - if fsls.Parameters != nil { - objectMap["parameters"] = fsls.Parameters - } - if fsls.Annotations != nil { - objectMap["annotations"] = fsls.Annotations - } - if fsls.Type != "" { - objectMap["type"] = fsls.Type - } - for k, v := range fsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsSapHanaSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSapEccSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsSalesforceSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsSapBwSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSybaseSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsMySQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsOdbcSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsDb2Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsInformixSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureTableSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsTabularSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsBinarySource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsOrcSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsXMLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsJSONSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsParquetSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsExcelSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsExcelSource() (*ExcelSource, bool) { + return &es, true +} + +// AsAvroSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsCopySource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsBasicCopySource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsBasicCopySource() (BasicCopySource, bool) { + return &es, true +} + +// UnmarshalJSON is the custom unmarshaler for ExcelSource struct. +func (es *ExcelSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + es.StoreSettings = storeSettings + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + es.AdditionalColumns = &additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if es.AdditionalProperties == nil { + es.AdditionalProperties = make(map[string]interface{}) + } + es.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + es.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + es.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + es.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + es.Type = typeVar + } + } + } + + return nil +} + +// ExecuteDataFlowActivity execute data flow activity. +type ExecuteDataFlowActivity struct { + // ExecuteDataFlowActivityTypeProperties - Execute data flow activity properties. + *ExecuteDataFlowActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) MarshalJSON() ([]byte, error) { + edfa.Type = TypeExecuteDataFlow + objectMap := make(map[string]interface{}) + if edfa.ExecuteDataFlowActivityTypeProperties != nil { + objectMap["typeProperties"] = edfa.ExecuteDataFlowActivityTypeProperties + } + if edfa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = edfa.LinkedServiceName + } + if edfa.Policy != nil { + objectMap["policy"] = edfa.Policy + } + if edfa.Name != nil { + objectMap["name"] = edfa.Name + } + if edfa.Description != nil { + objectMap["description"] = edfa.Description + } + if edfa.DependsOn != nil { + objectMap["dependsOn"] = edfa.DependsOn + } + if edfa.UserProperties != nil { + objectMap["userProperties"] = edfa.UserProperties + } + if edfa.Type != "" { + objectMap["type"] = edfa.Type + } + for k, v := range edfa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return &edfa, true +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsWebActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsLookupActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsDeleteActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsCustomActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsCopyActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &edfa, true +} + +// AsWebHookActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsSetVariableActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsFilterActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsValidationActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsUntilActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsWaitActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsForEachActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsSwitchActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsIfConditionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsControlActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false +// AsBasicActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsBasicActivity() (BasicActivity, bool) { + return &edfa, true +} + +// UnmarshalJSON is the custom unmarshaler for ExecuteDataFlowActivity struct. +func (edfa *ExecuteDataFlowActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var executeDataFlowActivityTypeProperties ExecuteDataFlowActivityTypeProperties + err = json.Unmarshal(*v, &executeDataFlowActivityTypeProperties) + if err != nil { + return err + } + edfa.ExecuteDataFlowActivityTypeProperties = &executeDataFlowActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + edfa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + edfa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if edfa.AdditionalProperties == nil { + edfa.AdditionalProperties = make(map[string]interface{}) + } + edfa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + edfa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + edfa.Description = &description + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + edfa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + edfa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + edfa.Type = typeVar + } + } + } + + return nil } -// AsSalesforceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false +// ExecuteDataFlowActivityTypeProperties execute data flow activity properties. +type ExecuteDataFlowActivityTypeProperties struct { + // DataFlow - Data flow reference. + DataFlow *DataFlowReference `json:"dataFlow,omitempty"` + // Staging - Staging info for execute data flow activity. + Staging *DataFlowStagingInfo `json:"staging,omitempty"` + // IntegrationRuntime - The integration runtime reference. + IntegrationRuntime *IntegrationRuntimeReference `json:"integrationRuntime,omitempty"` + // Compute - Compute properties for data flow activity. + Compute *ExecuteDataFlowActivityTypePropertiesCompute `json:"compute,omitempty"` + // TraceLevel - Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string) + TraceLevel interface{} `json:"traceLevel,omitempty"` + // ContinueOnError - Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean) + ContinueOnError interface{} `json:"continueOnError,omitempty"` + // RunConcurrently - Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. Type: boolean (or Expression with resultType boolean) + RunConcurrently interface{} `json:"runConcurrently,omitempty"` } -// AsOffice365LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false +// ExecuteDataFlowActivityTypePropertiesCompute compute properties for data flow activity. +type ExecuteDataFlowActivityTypePropertiesCompute struct { + // ComputeType - Compute type of the cluster which will execute data flow job. Possible values include: 'General', 'MemoryOptimized', 'ComputeOptimized'. Type: string (or Expression with resultType string) + ComputeType interface{} `json:"computeType,omitempty"` + // CoreCount - Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. Type: integer (or Expression with resultType integer) + CoreCount interface{} `json:"coreCount,omitempty"` } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false +// ExecutePipelineActivity execute pipeline activity. +type ExecutePipelineActivity struct { + // ExecutePipelineActivityTypeProperties - Execute pipeline activity properties. + *ExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) MarshalJSON() ([]byte, error) { + epa.Type = TypeExecutePipeline + objectMap := make(map[string]interface{}) + if epa.ExecutePipelineActivityTypeProperties != nil { + objectMap["typeProperties"] = epa.ExecutePipelineActivityTypeProperties + } + if epa.Name != nil { + objectMap["name"] = epa.Name + } + if epa.Description != nil { + objectMap["description"] = epa.Description + } + if epa.DependsOn != nil { + objectMap["dependsOn"] = epa.DependsOn + } + if epa.UserProperties != nil { + objectMap["userProperties"] = epa.UserProperties + } + if epa.Type != "" { + objectMap["type"] = epa.Type + } + for k, v := range epa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsWebActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsLookupActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsDeleteActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsCustomActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsCopyActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return &fsls, true -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsBasicExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsWebHookActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsSetVariableActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsFilterActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsValidationActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsUntilActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsWaitActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsForEachActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSwitchActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsIfConditionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false +// AsExecutePipelineActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return &epa, true } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsControlActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false +// AsBasicControlActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &epa, true } -// AsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &fsls, true +// AsBasicActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsBasicActivity() (BasicActivity, bool) { + return &epa, true } -// UnmarshalJSON is the custom unmarshaler for FileServerLinkedService struct. -func (fsls *FileServerLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for ExecutePipelineActivity struct. +func (epa *ExecutePipelineActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -96723,12 +94478,12 @@ func (fsls *FileServerLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var fileServerLinkedServiceTypeProperties FileServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &fileServerLinkedServiceTypeProperties) + var executePipelineActivityTypeProperties ExecutePipelineActivityTypeProperties + err = json.Unmarshal(*v, &executePipelineActivityTypeProperties) if err != nil { return err } - fsls.FileServerLinkedServiceTypeProperties = &fileServerLinkedServiceTypeProperties + epa.ExecutePipelineActivityTypeProperties = &executePipelineActivityTypeProperties } default: if v != nil { @@ -96737,19 +94492,19 @@ func (fsls *FileServerLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if fsls.AdditionalProperties == nil { - fsls.AdditionalProperties = make(map[string]interface{}) + if epa.AdditionalProperties == nil { + epa.AdditionalProperties = make(map[string]interface{}) } - fsls.AdditionalProperties[k] = additionalProperties + epa.AdditionalProperties[k] = additionalProperties } - case "connectVia": + case "name": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - fsls.ConnectVia = &connectVia + epa.Name = &name } case "description": if v != nil { @@ -96758,34 +94513,34 @@ func (fsls *FileServerLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - fsls.Description = &description + epa.Description = &description } - case "parameters": + case "dependsOn": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) if err != nil { return err } - fsls.Parameters = parameters + epa.DependsOn = &dependsOn } - case "annotations": + case "userProperties": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) if err != nil { return err } - fsls.Annotations = &annotations + epa.UserProperties = &userProperties } case "type": if v != nil { - var typeVar TypeBasicLinkedService + var typeVar TypeBasicActivity err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - fsls.Type = typeVar + epa.Type = typeVar } } } @@ -96793,381 +94548,289 @@ func (fsls *FileServerLinkedService) UnmarshalJSON(body []byte) error { return nil } -// FileServerLinkedServiceTypeProperties file system linked service properties. -type FileServerLinkedServiceTypeProperties struct { - // Host - Host name of the server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // UserID - User ID to logon the server. Type: string (or Expression with resultType string). - UserID interface{} `json:"userId,omitempty"` - // Password - Password to logon the server. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +// ExecutePipelineActivityTypeProperties execute pipeline activity properties. +type ExecutePipelineActivityTypeProperties struct { + // Pipeline - Pipeline reference. + Pipeline *PipelineReference `json:"pipeline,omitempty"` + // Parameters - Pipeline parameters. + Parameters map[string]interface{} `json:"parameters"` + // WaitOnCompletion - Defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. + WaitOnCompletion *bool `json:"waitOnCompletion,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for FileServerLinkedServiceTypeProperties struct. -func (fslstp *FileServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err +// MarshalJSON is the custom marshaler for ExecutePipelineActivityTypeProperties. +func (epatp ExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if epatp.Pipeline != nil { + objectMap["pipeline"] = epatp.Pipeline } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - fslstp.Host = host - } - case "userId": - if v != nil { - var userID interface{} - err = json.Unmarshal(*v, &userID) - if err != nil { - return err - } - fslstp.UserID = userID - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - fslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - fslstp.EncryptedCredential = encryptedCredential - } - } + if epatp.Parameters != nil { + objectMap["parameters"] = epatp.Parameters } - - return nil + if epatp.WaitOnCompletion != nil { + objectMap["waitOnCompletion"] = epatp.WaitOnCompletion + } + return json.Marshal(objectMap) } -// FileServerLocation the location of file server dataset. -type FileServerLocation struct { +// ExecuteSSISPackageActivity execute SSIS package activity. +type ExecuteSSISPackageActivity struct { + // ExecuteSSISPackageActivityTypeProperties - Execute SSIS package activity properties. + *ExecuteSSISPackageActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for FileServerLocation. -func (fsl FileServerLocation) MarshalJSON() ([]byte, error) { - fsl.Type = TypeFileServerLocation +// MarshalJSON is the custom marshaler for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) MarshalJSON() ([]byte, error) { + espa.Type = TypeExecuteSSISPackage objectMap := make(map[string]interface{}) - if fsl.FolderPath != nil { - objectMap["folderPath"] = fsl.FolderPath + if espa.ExecuteSSISPackageActivityTypeProperties != nil { + objectMap["typeProperties"] = espa.ExecuteSSISPackageActivityTypeProperties } - if fsl.FileName != nil { - objectMap["fileName"] = fsl.FileName + if espa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = espa.LinkedServiceName } - if fsl.Type != "" { - objectMap["type"] = fsl.Type + if espa.Policy != nil { + objectMap["policy"] = espa.Policy } - for k, v := range fsl.AdditionalProperties { + if espa.Name != nil { + objectMap["name"] = espa.Name + } + if espa.Description != nil { + objectMap["description"] = espa.Description + } + if espa.DependsOn != nil { + objectMap["dependsOn"] = espa.DependsOn + } + if espa.UserProperties != nil { + objectMap["userProperties"] = espa.UserProperties + } + if espa.Type != "" { + objectMap["type"] = espa.Type + } + for k, v := range espa.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsHdfsLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsHTTPServerLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsSftpLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsSftpLocation() (*SftpLocation, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsFtpServerLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsFileServerLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return &fsl, true +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false } -// AsAmazonS3Location is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { +// AsWebActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { +// AsLookupActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsDatasetLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { +// AsDeleteActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &fsl, true +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for FileServerLocation struct. -func (fsl *FileServerLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsl.AdditionalProperties == nil { - fsl.AdditionalProperties = make(map[string]interface{}) - } - fsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - fsl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - fsl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsl.Type = typeVar - } - } - } +// AsCustomActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} - return nil +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return &espa, true } -// FileServerReadSettings file server read settings. -type FileServerReadSettings struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // WildcardFolderPath - FileServer wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - FileServer wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // FileFilter - Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression with resultType string). - FileFilter interface{} `json:"fileFilter,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` +// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for FileServerReadSettings. -func (fsrs FileServerReadSettings) MarshalJSON() ([]byte, error) { - fsrs.Type = TypeFileServerReadSettings - objectMap := make(map[string]interface{}) - if fsrs.Recursive != nil { - objectMap["recursive"] = fsrs.Recursive - } - if fsrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = fsrs.WildcardFolderPath - } - if fsrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = fsrs.WildcardFileName - } - if fsrs.FileListPath != nil { - objectMap["fileListPath"] = fsrs.FileListPath - } - if fsrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = fsrs.EnablePartitionDiscovery - } - if fsrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = fsrs.PartitionRootPath - } - if fsrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = fsrs.DeleteFilesAfterCompletion - } - if fsrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = fsrs.ModifiedDatetimeStart - } - if fsrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = fsrs.ModifiedDatetimeEnd - } - if fsrs.FileFilter != nil { - objectMap["fileFilter"] = fsrs.FileFilter - } - if fsrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = fsrs.MaxConcurrentConnections - } - if fsrs.Type != "" { - objectMap["type"] = fsrs.Type - } - for k, v := range fsrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false } -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsSftpReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsFtpReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { +// AsCopyActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { +// AsExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { +// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &espa, true +} + +// AsWebHookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { +// AsSetVariableActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return &fsrs, true +// AsFilterActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false } -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { +// AsValidationActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { +// AsUntilActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { +// AsWaitActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { +// AsForEachActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { +// AsSwitchActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &fsrs, true +// AsIfConditionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for FileServerReadSettings struct. -func (fsrs *FileServerReadSettings) UnmarshalJSON(body []byte) error { +// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsBasicActivity() (BasicActivity, bool) { + return &espa, true +} + +// UnmarshalJSON is the custom unmarshaler for ExecuteSSISPackageActivity struct. +func (espa *ExecuteSSISPackageActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -97175,95 +94838,32 @@ func (fsrs *FileServerReadSettings) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - fsrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - fsrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - fsrs.WildcardFileName = wildcardFileName - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - fsrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery bool - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - fsrs.EnablePartitionDiscovery = &enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - fsrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - fsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": + case "typeProperties": if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) + var executeSSISPackageActivityTypeProperties ExecuteSSISPackageActivityTypeProperties + err = json.Unmarshal(*v, &executeSSISPackageActivityTypeProperties) if err != nil { return err } - fsrs.ModifiedDatetimeStart = modifiedDatetimeStart + espa.ExecuteSSISPackageActivityTypeProperties = &executeSSISPackageActivityTypeProperties } - case "modifiedDatetimeEnd": + case "linkedServiceName": if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - fsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + espa.LinkedServiceName = &linkedServiceName } - case "fileFilter": + case "policy": if v != nil { - var fileFilter interface{} - err = json.Unmarshal(*v, &fileFilter) + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) if err != nil { return err } - fsrs.FileFilter = fileFilter + espa.Policy = &policy } default: if v != nil { @@ -97272,153 +94872,55 @@ func (fsrs *FileServerReadSettings) UnmarshalJSON(body []byte) error { if err != nil { return err } - if fsrs.AdditionalProperties == nil { - fsrs.AdditionalProperties = make(map[string]interface{}) - } - fsrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err + if espa.AdditionalProperties == nil { + espa.AdditionalProperties = make(map[string]interface{}) } - fsrs.MaxConcurrentConnections = maxConcurrentConnections + espa.AdditionalProperties[k] = additionalProperties } - case "type": + case "name": if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - fsrs.Type = typeVar + espa.Name = &name } - } - } - - return nil -} - -// FileServerWriteSettings file server write settings. -type FileServerWriteSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeAzureFileStorageWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings', 'TypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FileServerWriteSettings. -func (fsws FileServerWriteSettings) MarshalJSON() ([]byte, error) { - fsws.Type = TypeFileServerWriteSettings - objectMap := make(map[string]interface{}) - if fsws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = fsws.MaxConcurrentConnections - } - if fsws.CopyBehavior != nil { - objectMap["copyBehavior"] = fsws.CopyBehavior - } - if fsws.Type != "" { - objectMap["type"] = fsws.Type - } - for k, v := range fsws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return nil, false -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return &fsws, true -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return nil, false -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return nil, false -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return nil, false -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &fsws, true -} - -// UnmarshalJSON is the custom unmarshaler for FileServerWriteSettings struct. -func (fsws *FileServerWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: + case "description": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - if fsws.AdditionalProperties == nil { - fsws.AdditionalProperties = make(map[string]interface{}) - } - fsws.AdditionalProperties[k] = additionalProperties + espa.Description = &description } - case "maxConcurrentConnections": + case "dependsOn": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) if err != nil { return err } - fsws.MaxConcurrentConnections = maxConcurrentConnections + espa.DependsOn = &dependsOn } - case "copyBehavior": + case "userProperties": if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) if err != nil { return err } - fsws.CopyBehavior = copyBehavior + espa.UserProperties = &userProperties } case "type": if v != nil { - var typeVar TypeBasicStoreWriteSettings + var typeVar TypeBasicActivity err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - fsws.Type = typeVar + espa.Type = typeVar } } } @@ -97426,544 +94928,1161 @@ func (fsws *FileServerWriteSettings) UnmarshalJSON(body []byte) error { return nil } -// FileShareDataset an on-premises file system dataset. -type FileShareDataset struct { - // FileShareDatasetTypeProperties - On-premises file system dataset properties. - *FileShareDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` +// ExecuteSSISPackageActivityTypeProperties execute SSIS package activity properties. +type ExecuteSSISPackageActivityTypeProperties struct { + // PackageLocation - SSIS package location. + PackageLocation *SSISPackageLocation `json:"packageLocation,omitempty"` + // Runtime - Specifies the runtime to execute SSIS package. The value should be "x86" or "x64". Type: string (or Expression with resultType string). + Runtime interface{} `json:"runtime,omitempty"` + // LoggingLevel - The logging level of SSIS package execution. Type: string (or Expression with resultType string). + LoggingLevel interface{} `json:"loggingLevel,omitempty"` + // EnvironmentPath - The environment path to execute the SSIS package. Type: string (or Expression with resultType string). + EnvironmentPath interface{} `json:"environmentPath,omitempty"` + // ExecutionCredential - The package execution credential. + ExecutionCredential *SSISExecutionCredential `json:"executionCredential,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // ProjectParameters - The project level parameters to execute the SSIS package. + ProjectParameters map[string]*SSISExecutionParameter `json:"projectParameters"` + // PackageParameters - The package level parameters to execute the SSIS package. + PackageParameters map[string]*SSISExecutionParameter `json:"packageParameters"` + // ProjectConnectionManagers - The project level connection managers to execute the SSIS package. + ProjectConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"projectConnectionManagers"` + // PackageConnectionManagers - The package level connection managers to execute the SSIS package. + PackageConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"packageConnectionManagers"` + // PropertyOverrides - The property overrides to execute the SSIS package. + PropertyOverrides map[string]*SSISPropertyOverride `json:"propertyOverrides"` + // LogLocation - SSIS package execution log location. + LogLocation *SSISLogLocation `json:"logLocation,omitempty"` } -// MarshalJSON is the custom marshaler for FileShareDataset. -func (fsd FileShareDataset) MarshalJSON() ([]byte, error) { - fsd.Type = TypeFileShare +// MarshalJSON is the custom marshaler for ExecuteSSISPackageActivityTypeProperties. +func (espatp ExecuteSSISPackageActivityTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if fsd.FileShareDatasetTypeProperties != nil { - objectMap["typeProperties"] = fsd.FileShareDatasetTypeProperties + if espatp.PackageLocation != nil { + objectMap["packageLocation"] = espatp.PackageLocation } - if fsd.Description != nil { - objectMap["description"] = fsd.Description + if espatp.Runtime != nil { + objectMap["runtime"] = espatp.Runtime } - if fsd.Structure != nil { - objectMap["structure"] = fsd.Structure + if espatp.LoggingLevel != nil { + objectMap["loggingLevel"] = espatp.LoggingLevel } - if fsd.Schema != nil { - objectMap["schema"] = fsd.Schema + if espatp.EnvironmentPath != nil { + objectMap["environmentPath"] = espatp.EnvironmentPath } - if fsd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = fsd.LinkedServiceName + if espatp.ExecutionCredential != nil { + objectMap["executionCredential"] = espatp.ExecutionCredential } - if fsd.Parameters != nil { - objectMap["parameters"] = fsd.Parameters + if espatp.ConnectVia != nil { + objectMap["connectVia"] = espatp.ConnectVia } - if fsd.Annotations != nil { - objectMap["annotations"] = fsd.Annotations + if espatp.ProjectParameters != nil { + objectMap["projectParameters"] = espatp.ProjectParameters } - if fsd.Folder != nil { - objectMap["folder"] = fsd.Folder + if espatp.PackageParameters != nil { + objectMap["packageParameters"] = espatp.PackageParameters } - if fsd.Type != "" { - objectMap["type"] = fsd.Type + if espatp.ProjectConnectionManagers != nil { + objectMap["projectConnectionManagers"] = espatp.ProjectConnectionManagers } - for k, v := range fsd.AdditionalProperties { - objectMap[k] = v + if espatp.PackageConnectionManagers != nil { + objectMap["packageConnectionManagers"] = espatp.PackageConnectionManagers + } + if espatp.PropertyOverrides != nil { + objectMap["propertyOverrides"] = espatp.PropertyOverrides + } + if espatp.LogLocation != nil { + objectMap["logLocation"] = espatp.LogLocation } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false +// BasicExecutionActivity base class for all execution activities. +type BasicExecutionActivity interface { + AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) + AsAzureFunctionActivity() (*AzureFunctionActivity, bool) + AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) + AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) + AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) + AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) + AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) + AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) + AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) + AsGetMetadataActivity() (*GetMetadataActivity, bool) + AsWebActivity() (*WebActivity, bool) + AsLookupActivity() (*LookupActivity, bool) + AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) + AsDeleteActivity() (*DeleteActivity, bool) + AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) + AsCustomActivity() (*CustomActivity, bool) + AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) + AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) + AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) + AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) + AsHDInsightPigActivity() (*HDInsightPigActivity, bool) + AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) + AsCopyActivity() (*CopyActivity, bool) + AsExecutionActivity() (*ExecutionActivity, bool) } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false +// ExecutionActivity base class for all execution activities. +type ExecutionActivity struct { + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// AsSnowflakeDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} +func unmarshalBasicExecutionActivity(body []byte) (BasicExecutionActivity, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false + switch m["type"] { + case string(TypeExecuteDataFlow): + var edfa ExecuteDataFlowActivity + err := json.Unmarshal(body, &edfa) + return edfa, err + case string(TypeAzureFunctionActivity): + var afa AzureFunctionActivity + err := json.Unmarshal(body, &afa) + return afa, err + case string(TypeDatabricksSparkPython): + var dspa DatabricksSparkPythonActivity + err := json.Unmarshal(body, &dspa) + return dspa, err + case string(TypeDatabricksSparkJar): + var dsja DatabricksSparkJarActivity + err := json.Unmarshal(body, &dsja) + return dsja, err + case string(TypeDatabricksNotebook): + var dna DatabricksNotebookActivity + err := json.Unmarshal(body, &dna) + return dna, err + case string(TypeDataLakeAnalyticsUSQL): + var dlaua DataLakeAnalyticsUSQLActivity + err := json.Unmarshal(body, &dlaua) + return dlaua, err + case string(TypeAzureMLExecutePipeline): + var amepa AzureMLExecutePipelineActivity + err := json.Unmarshal(body, &amepa) + return amepa, err + case string(TypeAzureMLUpdateResource): + var amura AzureMLUpdateResourceActivity + err := json.Unmarshal(body, &amura) + return amura, err + case string(TypeAzureMLBatchExecution): + var ambea AzureMLBatchExecutionActivity + err := json.Unmarshal(body, &ambea) + return ambea, err + case string(TypeGetMetadata): + var gma GetMetadataActivity + err := json.Unmarshal(body, &gma) + return gma, err + case string(TypeWebActivity): + var wa WebActivity + err := json.Unmarshal(body, &wa) + return wa, err + case string(TypeLookup): + var la LookupActivity + err := json.Unmarshal(body, &la) + return la, err + case string(TypeAzureDataExplorerCommand): + var adeca AzureDataExplorerCommandActivity + err := json.Unmarshal(body, &adeca) + return adeca, err + case string(TypeDelete): + var da DeleteActivity + err := json.Unmarshal(body, &da) + return da, err + case string(TypeSQLServerStoredProcedure): + var ssspa SQLServerStoredProcedureActivity + err := json.Unmarshal(body, &ssspa) + return ssspa, err + case string(TypeCustom): + var ca CustomActivity + err := json.Unmarshal(body, &ca) + return ca, err + case string(TypeExecuteSSISPackage): + var espa ExecuteSSISPackageActivity + err := json.Unmarshal(body, &espa) + return espa, err + case string(TypeHDInsightSpark): + var hisa HDInsightSparkActivity + err := json.Unmarshal(body, &hisa) + return hisa, err + case string(TypeHDInsightStreaming): + var hisa HDInsightStreamingActivity + err := json.Unmarshal(body, &hisa) + return hisa, err + case string(TypeHDInsightMapReduce): + var himra HDInsightMapReduceActivity + err := json.Unmarshal(body, &himra) + return himra, err + case string(TypeHDInsightPig): + var hipa HDInsightPigActivity + err := json.Unmarshal(body, &hipa) + return hipa, err + case string(TypeHDInsightHive): + var hiha HDInsightHiveActivity + err := json.Unmarshal(body, &hiha) + return hiha, err + case string(TypeCopy): + var ca CopyActivity + err := json.Unmarshal(body, &ca) + return ca, err + default: + var ea ExecutionActivity + err := json.Unmarshal(body, &ea) + return ea, err + } } +func unmarshalBasicExecutionActivityArray(body []byte) ([]BasicExecutionActivity, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} + eaArray := make([]BasicExecutionActivity, len(rawMessages)) -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false + for index, rawMessage := range rawMessages { + ea, err := unmarshalBasicExecutionActivity(*rawMessage) + if err != nil { + return nil, err + } + eaArray[index] = ea + } + return eaArray, nil } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for ExecutionActivity. +func (ea ExecutionActivity) MarshalJSON() ([]byte, error) { + ea.Type = TypeExecution + objectMap := make(map[string]interface{}) + if ea.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ea.LinkedServiceName + } + if ea.Policy != nil { + objectMap["policy"] = ea.Policy + } + if ea.Name != nil { + objectMap["name"] = ea.Name + } + if ea.Description != nil { + objectMap["description"] = ea.Description + } + if ea.DependsOn != nil { + objectMap["dependsOn"] = ea.DependsOn + } + if ea.UserProperties != nil { + objectMap["userProperties"] = ea.UserProperties + } + if ea.Type != "" { + objectMap["type"] = ea.Type + } + for k, v := range ea.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsResponsysObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsWebActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsLookupActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsDeleteActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsCustomActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsCopyActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false +// AsExecutionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return &ea, true } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false +// AsBasicExecutionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &ea, true } -// AsEloquaObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsWebHookActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsSetVariableActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsFilterActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsValidationActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsUntilActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsWaitActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsForEachActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsSwitchActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsIfConditionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsControlActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsBasicControlActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false +// AsBasicActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsBasicActivity() (BasicActivity, bool) { + return &ea, true } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for ExecutionActivity struct. +func (ea *ExecutionActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ea.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + ea.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ea.AdditionalProperties == nil { + ea.AdditionalProperties = make(map[string]interface{}) + } + ea.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ea.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ea.Description = &description + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ea.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ea.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ea.Type = typeVar + } + } + } -// AsSapBwCubeDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false + return nil } -// AsSybaseTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false +// BasicExportSettings export command settings. +type BasicExportSettings interface { + AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) + AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) + AsExportSettings() (*ExportSettings, bool) } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false +// ExportSettings export command settings. +type ExportSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeExportSettings', 'TypeSnowflakeExportCopyCommand', 'TypeAzureDatabricksDeltaLakeExportCommand' + Type TypeBasicExportSettings `json:"type,omitempty"` } -// AsSalesforceObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false +func unmarshalBasicExportSettings(body []byte) (BasicExportSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeSnowflakeExportCopyCommand): + var secc SnowflakeExportCopyCommand + err := json.Unmarshal(body, &secc) + return secc, err + case string(TypeAzureDatabricksDeltaLakeExportCommand): + var addlec AzureDatabricksDeltaLakeExportCommand + err := json.Unmarshal(body, &addlec) + return addlec, err + default: + var es ExportSettings + err := json.Unmarshal(body, &es) + return es, err + } } +func unmarshalBasicExportSettingsArray(body []byte) ([]BasicExportSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false + esArray := make([]BasicExportSettings, len(rawMessages)) + + for index, rawMessage := range rawMessages { + es, err := unmarshalBasicExportSettings(*rawMessage) + if err != nil { + return nil, err + } + esArray[index] = es + } + return esArray, nil } -// AsPostgreSQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for ExportSettings. +func (es ExportSettings) MarshalJSON() ([]byte, error) { + es.Type = TypeExportSettings + objectMap := make(map[string]interface{}) + if es.Type != "" { + objectMap["type"] = es.Type + } + for k, v := range es.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsMySQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for ExportSettings. +func (es ExportSettings) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for ExportSettings. +func (es ExportSettings) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false +// AsExportSettings is the BasicExportSettings implementation for ExportSettings. +func (es ExportSettings) AsExportSettings() (*ExportSettings, bool) { + return &es, true } -// AsRelationalTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false +// AsBasicExportSettings is the BasicExportSettings implementation for ExportSettings. +func (es ExportSettings) AsBasicExportSettings() (BasicExportSettings, bool) { + return &es, true } -// AsDb2TableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for ExportSettings struct. +func (es *ExportSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if es.AdditionalProperties == nil { + es.AdditionalProperties = make(map[string]interface{}) + } + es.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicExportSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + es.Type = typeVar + } + } + } + + return nil } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false +// ExposureControlBatchRequest a list of exposure control features. +type ExposureControlBatchRequest struct { + // ExposureControlRequests - List of exposure control features. + ExposureControlRequests *[]ExposureControlRequest `json:"exposureControlRequests,omitempty"` } -// AsAzureMySQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false +// ExposureControlBatchResponse a list of exposure control feature values. +type ExposureControlBatchResponse struct { + autorest.Response `json:"-"` + // ExposureControlResponses - List of exposure control feature values. + ExposureControlResponses *[]ExposureControlResponse `json:"exposureControlResponses,omitempty"` } -// AsTeradataTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false +// ExposureControlRequest the exposure control request. +type ExposureControlRequest struct { + // FeatureName - The feature name. + FeatureName *string `json:"featureName,omitempty"` + // FeatureType - The feature type. + FeatureType *string `json:"featureType,omitempty"` } -// AsOracleTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false +// ExposureControlResponse the exposure control response. +type ExposureControlResponse struct { + autorest.Response `json:"-"` + // FeatureName - READ-ONLY; The feature name. + FeatureName *string `json:"featureName,omitempty"` + // Value - READ-ONLY; The feature value. + Value *string `json:"value,omitempty"` } -// AsODataResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false +// Expression azure Data Factory expression definition. +type Expression struct { + // Type - Expression type. + Type *string `json:"type,omitempty"` + // Value - Expression value. + Value *string `json:"value,omitempty"` } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false +// Factory factory resource type. +type Factory struct { + autorest.Response `json:"-"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Identity - Managed service identity of the factory. + Identity *FactoryIdentity `json:"identity,omitempty"` + // FactoryProperties - Properties of the factory. + *FactoryProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Location - The resource location. + Location *string `json:"location,omitempty"` + // Tags - The resource tags. + Tags map[string]*string `json:"tags"` + // ETag - READ-ONLY; Etag identifies change in the resource. + ETag *string `json:"eTag,omitempty"` } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for Factory. +func (f Factory) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if f.Identity != nil { + objectMap["identity"] = f.Identity + } + if f.FactoryProperties != nil { + objectMap["properties"] = f.FactoryProperties + } + if f.Location != nil { + objectMap["location"] = f.Location + } + if f.Tags != nil { + objectMap["tags"] = f.Tags + } + for k, v := range f.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for Factory struct. +func (f *Factory) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if f.AdditionalProperties == nil { + f.AdditionalProperties = make(map[string]interface{}) + } + f.AdditionalProperties[k] = additionalProperties + } + case "identity": + if v != nil { + var identity FactoryIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + f.Identity = &identity + } + case "properties": + if v != nil { + var factoryProperties FactoryProperties + err = json.Unmarshal(*v, &factoryProperties) + if err != nil { + return err + } + f.FactoryProperties = &factoryProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + f.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + f.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + f.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + f.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + f.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + f.ETag = &eTag + } + } + } + + return nil } -// AsMongoDbCollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false +// FactoryGitHubConfiguration factory's GitHub repo information. +type FactoryGitHubConfiguration struct { + // HostName - GitHub Enterprise host name. For example: https://github.mydomain.com + HostName *string `json:"hostName,omitempty"` + // AccountName - Account name. + AccountName *string `json:"accountName,omitempty"` + // RepositoryName - Repository name. + RepositoryName *string `json:"repositoryName,omitempty"` + // CollaborationBranch - Collaboration branch. + CollaborationBranch *string `json:"collaborationBranch,omitempty"` + // RootFolder - Root folder. + RootFolder *string `json:"rootFolder,omitempty"` + // LastCommitID - Last commit id. + LastCommitID *string `json:"lastCommitId,omitempty"` + // Type - Possible values include: 'TypeFactoryRepoConfiguration', 'TypeFactoryVSTSConfiguration', 'TypeFactoryGitHubConfiguration' + Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` } -// AsFileShareDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return &fsd, true +// MarshalJSON is the custom marshaler for FactoryGitHubConfiguration. +func (fghc FactoryGitHubConfiguration) MarshalJSON() ([]byte, error) { + fghc.Type = TypeFactoryGitHubConfiguration + objectMap := make(map[string]interface{}) + if fghc.HostName != nil { + objectMap["hostName"] = fghc.HostName + } + if fghc.AccountName != nil { + objectMap["accountName"] = fghc.AccountName + } + if fghc.RepositoryName != nil { + objectMap["repositoryName"] = fghc.RepositoryName + } + if fghc.CollaborationBranch != nil { + objectMap["collaborationBranch"] = fghc.CollaborationBranch + } + if fghc.RootFolder != nil { + objectMap["rootFolder"] = fghc.RootFolder + } + if fghc.LastCommitID != nil { + objectMap["lastCommitId"] = fghc.LastCommitID + } + if fghc.Type != "" { + objectMap["type"] = fghc.Type + } + return json.Marshal(objectMap) } -// AsOffice365Dataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. +func (fghc FactoryGitHubConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false +// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. +func (fghc FactoryGitHubConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { + return &fghc, true } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. +func (fghc FactoryGitHubConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false +// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. +func (fghc FactoryGitHubConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { + return &fghc, true } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false +// FactoryIdentity identity properties of the factory resource. +type FactoryIdentity struct { + // Type - The identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssignedUserAssigned' + Type FactoryIdentityType `json:"type,omitempty"` + // PrincipalID - READ-ONLY; The principal id of the identity. + PrincipalID *uuid.UUID `json:"principalId,omitempty"` + // TenantID - READ-ONLY; The client tenant id of the identity. + TenantID *uuid.UUID `json:"tenantId,omitempty"` + // UserAssignedIdentities - List of user assigned identities for the factory. + UserAssignedIdentities map[string]interface{} `json:"userAssignedIdentities"` } -// AsDynamicsEntityDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for FactoryIdentity. +func (fi FactoryIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fi.Type != "" { + objectMap["type"] = fi.Type + } + if fi.UserAssignedIdentities != nil { + objectMap["userAssignedIdentities"] = fi.UserAssignedIdentities + } + return json.Marshal(objectMap) } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false +// FactoryListResponse a list of factory resources. +type FactoryListResponse struct { + autorest.Response `json:"-"` + // Value - List of factories. + Value *[]Factory `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false +// FactoryListResponseIterator provides access to a complete listing of Factory values. +type FactoryListResponseIterator struct { + i int + page FactoryListResponsePage } -// AsCustomDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *FactoryListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FactoryListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil } -// AsCassandraTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *FactoryListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter FactoryListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// AsAzureSQLMITableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false +// Response returns the raw server response from the last page request. +func (iter FactoryListResponseIterator) Response() FactoryListResponse { + return iter.page.Response() } -// AsAzureSQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter FactoryListResponseIterator) Value() Factory { + if !iter.page.NotDone() { + return Factory{} + } + return iter.page.Values()[iter.i] } -// AsAzureTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false +// Creates a new instance of the FactoryListResponseIterator type. +func NewFactoryListResponseIterator(page FactoryListResponsePage) FactoryListResponseIterator { + return FactoryListResponseIterator{page: page} } -// AsAzureBlobDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false +// IsEmpty returns true if the ListResult contains no values. +func (flr FactoryListResponse) IsEmpty() bool { + return flr.Value == nil || len(*flr.Value) == 0 } -// AsBinaryDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false +// hasNextLink returns true if the NextLink is not empty. +func (flr FactoryListResponse) hasNextLink() bool { + return flr.NextLink != nil && len(*flr.NextLink) != 0 } -// AsOrcDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false +// factoryListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (flr FactoryListResponse) factoryListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !flr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(flr.NextLink))) } -// AsXMLDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false +// FactoryListResponsePage contains a page of Factory values. +type FactoryListResponsePage struct { + fn func(context.Context, FactoryListResponse) (FactoryListResponse, error) + flr FactoryListResponse } -// AsJSONDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *FactoryListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FactoryListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.flr) + if err != nil { + return err + } + page.flr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil } -// AsDelimitedTextDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *FactoryListResponsePage) Next() error { + return page.NextWithContext(context.Background()) } -// AsParquetDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page FactoryListResponsePage) NotDone() bool { + return !page.flr.IsEmpty() } -// AsExcelDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false +// Response returns the raw server response from the last page request. +func (page FactoryListResponsePage) Response() FactoryListResponse { + return page.flr } -// AsAvroDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false +// Values returns the slice of values for the current page or nil if there are no values. +func (page FactoryListResponsePage) Values() []Factory { + if page.flr.IsEmpty() { + return nil + } + return *page.flr.Value } -// AsAmazonS3Dataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false +// Creates a new instance of the FactoryListResponsePage type. +func NewFactoryListResponsePage(cur FactoryListResponse, getNextPage func(context.Context, FactoryListResponse) (FactoryListResponse, error)) FactoryListResponsePage { + return FactoryListResponsePage{ + fn: getNextPage, + flr: cur, + } } -// AsDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDataset() (*Dataset, bool) { - return nil, false +// FactoryProperties factory resource properties. +type FactoryProperties struct { + // ProvisioningState - READ-ONLY; Factory provisioning state, example Succeeded. + ProvisioningState *string `json:"provisioningState,omitempty"` + // CreateTime - READ-ONLY; Time the factory was created in ISO8601 format. + CreateTime *date.Time `json:"createTime,omitempty"` + // Version - READ-ONLY; Version of the factory. + Version *string `json:"version,omitempty"` + // RepoConfiguration - Git repo information of the factory. + RepoConfiguration BasicFactoryRepoConfiguration `json:"repoConfiguration,omitempty"` + // GlobalParameters - List of parameters for factory. + GlobalParameters map[string]*GlobalParameterSpecification `json:"globalParameters"` + // Encryption - Properties to enable Customer Managed Key for the factory. + Encryption *EncryptionConfiguration `json:"encryption,omitempty"` + // PublicNetworkAccess - Whether or not public network access is allowed for the data factory. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` } -// AsBasicDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsBasicDataset() (BasicDataset, bool) { - return &fsd, true +// MarshalJSON is the custom marshaler for FactoryProperties. +func (fp FactoryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["repoConfiguration"] = fp.RepoConfiguration + if fp.GlobalParameters != nil { + objectMap["globalParameters"] = fp.GlobalParameters + } + if fp.Encryption != nil { + objectMap["encryption"] = fp.Encryption + } + if fp.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = fp.PublicNetworkAccess + } + return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for FileShareDataset struct. -func (fsd *FileShareDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for FactoryProperties struct. +func (fp *FactoryProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -97971,98 +96090,67 @@ func (fsd *FileShareDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var fileShareDatasetTypeProperties FileShareDatasetTypeProperties - err = json.Unmarshal(*v, &fileShareDatasetTypeProperties) - if err != nil { - return err - } - fsd.FileShareDatasetTypeProperties = &fileShareDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsd.AdditionalProperties == nil { - fsd.AdditionalProperties = make(map[string]interface{}) - } - fsd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fsd.Description = &description - } - case "structure": + case "provisioningState": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var provisioningState string + err = json.Unmarshal(*v, &provisioningState) if err != nil { return err } - fsd.Structure = structure + fp.ProvisioningState = &provisioningState } - case "schema": + case "createTime": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var createTime date.Time + err = json.Unmarshal(*v, &createTime) if err != nil { return err } - fsd.Schema = schema + fp.CreateTime = &createTime } - case "linkedServiceName": + case "version": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var version string + err = json.Unmarshal(*v, &version) if err != nil { return err } - fsd.LinkedServiceName = &linkedServiceName + fp.Version = &version } - case "parameters": + case "repoConfiguration": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + repoConfiguration, err := unmarshalBasicFactoryRepoConfiguration(*v) if err != nil { return err } - fsd.Parameters = parameters + fp.RepoConfiguration = repoConfiguration } - case "annotations": + case "globalParameters": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var globalParameters map[string]*GlobalParameterSpecification + err = json.Unmarshal(*v, &globalParameters) if err != nil { return err } - fsd.Annotations = &annotations + fp.GlobalParameters = globalParameters } - case "folder": + case "encryption": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var encryption EncryptionConfiguration + err = json.Unmarshal(*v, &encryption) if err != nil { return err } - fsd.Folder = &folder + fp.Encryption = &encryption } - case "type": + case "publicNetworkAccess": if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) + var publicNetworkAccess PublicNetworkAccess + err = json.Unmarshal(*v, &publicNetworkAccess) if err != nil { return err } - fsd.Type = typeVar + fp.PublicNetworkAccess = publicNetworkAccess } } } @@ -98070,26 +96158,125 @@ func (fsd *FileShareDataset) UnmarshalJSON(body []byte) error { return nil } -// FileShareDatasetTypeProperties on-premises file system dataset properties. -type FileShareDatasetTypeProperties struct { - // FolderPath - The path of the on-premises file system. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - The name of the on-premises file system. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // Format - The format of the files. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // FileFilter - Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression with resultType string). - FileFilter interface{} `json:"fileFilter,omitempty"` - // Compression - The data compression method used for the file system. - Compression BasicDatasetCompression `json:"compression,omitempty"` +// BasicFactoryRepoConfiguration factory's git repo information. +type BasicFactoryRepoConfiguration interface { + AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) + AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) + AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) } -// UnmarshalJSON is the custom unmarshaler for FileShareDatasetTypeProperties struct. -func (fsdtp *FileShareDatasetTypeProperties) UnmarshalJSON(body []byte) error { +// FactoryRepoConfiguration factory's git repo information. +type FactoryRepoConfiguration struct { + // AccountName - Account name. + AccountName *string `json:"accountName,omitempty"` + // RepositoryName - Repository name. + RepositoryName *string `json:"repositoryName,omitempty"` + // CollaborationBranch - Collaboration branch. + CollaborationBranch *string `json:"collaborationBranch,omitempty"` + // RootFolder - Root folder. + RootFolder *string `json:"rootFolder,omitempty"` + // LastCommitID - Last commit id. + LastCommitID *string `json:"lastCommitId,omitempty"` + // Type - Possible values include: 'TypeFactoryRepoConfiguration', 'TypeFactoryVSTSConfiguration', 'TypeFactoryGitHubConfiguration' + Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` +} + +func unmarshalBasicFactoryRepoConfiguration(body []byte) (BasicFactoryRepoConfiguration, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeFactoryVSTSConfiguration): + var fvc FactoryVSTSConfiguration + err := json.Unmarshal(body, &fvc) + return fvc, err + case string(TypeFactoryGitHubConfiguration): + var fghc FactoryGitHubConfiguration + err := json.Unmarshal(body, &fghc) + return fghc, err + default: + var frc FactoryRepoConfiguration + err := json.Unmarshal(body, &frc) + return frc, err + } +} +func unmarshalBasicFactoryRepoConfigurationArray(body []byte) ([]BasicFactoryRepoConfiguration, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + frcArray := make([]BasicFactoryRepoConfiguration, len(rawMessages)) + + for index, rawMessage := range rawMessages { + frc, err := unmarshalBasicFactoryRepoConfiguration(*rawMessage) + if err != nil { + return nil, err + } + frcArray[index] = frc + } + return frcArray, nil +} + +// MarshalJSON is the custom marshaler for FactoryRepoConfiguration. +func (frc FactoryRepoConfiguration) MarshalJSON() ([]byte, error) { + frc.Type = TypeFactoryRepoConfiguration + objectMap := make(map[string]interface{}) + if frc.AccountName != nil { + objectMap["accountName"] = frc.AccountName + } + if frc.RepositoryName != nil { + objectMap["repositoryName"] = frc.RepositoryName + } + if frc.CollaborationBranch != nil { + objectMap["collaborationBranch"] = frc.CollaborationBranch + } + if frc.RootFolder != nil { + objectMap["rootFolder"] = frc.RootFolder + } + if frc.LastCommitID != nil { + objectMap["lastCommitId"] = frc.LastCommitID + } + if frc.Type != "" { + objectMap["type"] = frc.Type + } + return json.Marshal(objectMap) +} + +// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. +func (frc FactoryRepoConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { + return nil, false +} + +// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. +func (frc FactoryRepoConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { + return nil, false +} + +// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. +func (frc FactoryRepoConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { + return &frc, true +} + +// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. +func (frc FactoryRepoConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { + return &frc, true +} + +// FactoryRepoUpdate factory's git repo information. +type FactoryRepoUpdate struct { + // FactoryResourceID - The factory resource id. + FactoryResourceID *string `json:"factoryResourceId,omitempty"` + // RepoConfiguration - Git repo information of the factory. + RepoConfiguration BasicFactoryRepoConfiguration `json:"repoConfiguration,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for FactoryRepoUpdate struct. +func (fru *FactoryRepoUpdate) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -98097,66 +96284,22 @@ func (fsdtp *FileShareDatasetTypeProperties) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - fsdtp.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - fsdtp.FileName = fileName - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - fsdtp.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - fsdtp.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - fsdtp.Format = formatVar - } - case "fileFilter": + case "factoryResourceId": if v != nil { - var fileFilter interface{} - err = json.Unmarshal(*v, &fileFilter) + var factoryResourceID string + err = json.Unmarshal(*v, &factoryResourceID) if err != nil { return err } - fsdtp.FileFilter = fileFilter + fru.FactoryResourceID = &factoryResourceID } - case "compression": + case "repoConfiguration": if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) + repoConfiguration, err := unmarshalBasicFactoryRepoConfiguration(*v) if err != nil { return err } - fsdtp.Compression = compression + fru.RepoConfiguration = repoConfiguration } } } @@ -98164,870 +96307,1109 @@ func (fsdtp *FileShareDatasetTypeProperties) UnmarshalJSON(body []byte) error { return nil } -// FileSystemSink a copy activity file system sink. -type FileSystemSink struct { - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` +// FactoryUpdateParameters parameters for updating a factory resource. +type FactoryUpdateParameters struct { + // Tags - The resource tags. + Tags map[string]*string `json:"tags"` + // Identity - Managed service identity of the factory. + Identity *FactoryIdentity `json:"identity,omitempty"` +} + +// MarshalJSON is the custom marshaler for FactoryUpdateParameters. +func (fup FactoryUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fup.Tags != nil { + objectMap["tags"] = fup.Tags + } + if fup.Identity != nil { + objectMap["identity"] = fup.Identity + } + return json.Marshal(objectMap) +} + +// FactoryVSTSConfiguration factory's VSTS repo information. +type FactoryVSTSConfiguration struct { + // ProjectName - VSTS project name. + ProjectName *string `json:"projectName,omitempty"` + // TenantID - VSTS tenant id. + TenantID *string `json:"tenantId,omitempty"` + // AccountName - Account name. + AccountName *string `json:"accountName,omitempty"` + // RepositoryName - Repository name. + RepositoryName *string `json:"repositoryName,omitempty"` + // CollaborationBranch - Collaboration branch. + CollaborationBranch *string `json:"collaborationBranch,omitempty"` + // RootFolder - Root folder. + RootFolder *string `json:"rootFolder,omitempty"` + // LastCommitID - Last commit id. + LastCommitID *string `json:"lastCommitId,omitempty"` + // Type - Possible values include: 'TypeFactoryRepoConfiguration', 'TypeFactoryVSTSConfiguration', 'TypeFactoryGitHubConfiguration' + Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FactoryVSTSConfiguration. +func (fvc FactoryVSTSConfiguration) MarshalJSON() ([]byte, error) { + fvc.Type = TypeFactoryVSTSConfiguration + objectMap := make(map[string]interface{}) + if fvc.ProjectName != nil { + objectMap["projectName"] = fvc.ProjectName + } + if fvc.TenantID != nil { + objectMap["tenantId"] = fvc.TenantID + } + if fvc.AccountName != nil { + objectMap["accountName"] = fvc.AccountName + } + if fvc.RepositoryName != nil { + objectMap["repositoryName"] = fvc.RepositoryName + } + if fvc.CollaborationBranch != nil { + objectMap["collaborationBranch"] = fvc.CollaborationBranch + } + if fvc.RootFolder != nil { + objectMap["rootFolder"] = fvc.RootFolder + } + if fvc.LastCommitID != nil { + objectMap["lastCommitId"] = fvc.LastCommitID + } + if fvc.Type != "" { + objectMap["type"] = fvc.Type + } + return json.Marshal(objectMap) +} + +// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. +func (fvc FactoryVSTSConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { + return &fvc, true +} + +// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. +func (fvc FactoryVSTSConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { + return nil, false +} + +// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. +func (fvc FactoryVSTSConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { + return nil, false +} + +// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. +func (fvc FactoryVSTSConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { + return &fvc, true +} + +// FileServerLinkedService file system linked service. +type FileServerLinkedService struct { + // FileServerLinkedServiceTypeProperties - File system linked service properties. + *FileServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for FileSystemSink. -func (fss FileSystemSink) MarshalJSON() ([]byte, error) { - fss.Type = TypeFileSystemSink +// MarshalJSON is the custom marshaler for FileServerLinkedService. +func (fsls FileServerLinkedService) MarshalJSON() ([]byte, error) { + fsls.Type = TypeFileServer objectMap := make(map[string]interface{}) - if fss.CopyBehavior != nil { - objectMap["copyBehavior"] = fss.CopyBehavior - } - if fss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = fss.WriteBatchSize + if fsls.FileServerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = fsls.FileServerLinkedServiceTypeProperties } - if fss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = fss.WriteBatchTimeout + if fsls.ConnectVia != nil { + objectMap["connectVia"] = fsls.ConnectVia } - if fss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = fss.SinkRetryCount + if fsls.Description != nil { + objectMap["description"] = fsls.Description } - if fss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = fss.SinkRetryWait + if fsls.Parameters != nil { + objectMap["parameters"] = fsls.Parameters } - if fss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections + if fsls.Annotations != nil { + objectMap["annotations"] = fsls.Annotations } - if fss.Type != "" { - objectMap["type"] = fss.Type + if fsls.Type != "" { + objectMap["type"] = fsls.Type } - for k, v := range fss.AdditionalProperties { + for k, v := range fsls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsInformixSink() (*InformixSink, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsOdbcSink() (*OdbcSink, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsOracleSink() (*OracleSink, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSQLMISink() (*SQLMISink, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSQLSink() (*SQLSink, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsFileSystemSink() (*FileSystemSink, bool) { - return &fss, true +// AsQuickBooksLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false } -// AsBlobSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsBlobSink() (*BlobSink, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsBinarySink() (*BinarySink, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsParquetSink() (*ParquetSink, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAvroSink() (*AvroSink, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsRestSink() (*RestSink, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsOrcSink() (*OrcSink, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsJSONSink() (*JSONSink, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsCopySink() (*CopySink, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsBasicCopySink() (BasicCopySink, bool) { - return &fss, true +// AsDrillLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for FileSystemSink struct. -func (fss *FileSystemSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - fss.CopyBehavior = copyBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fss.AdditionalProperties == nil { - fss.AdditionalProperties = make(map[string]interface{}) - } - fss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - fss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - fss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - fss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - fss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - fss.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fss.Type = typeVar - } - } - } +// AsCouchbaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} - return nil +// AsConcurLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false } -// FileSystemSource a copy activity file system source. -type FileSystemSource struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for FileSystemSource. -func (fss FileSystemSource) MarshalJSON() ([]byte, error) { - fss.Type = TypeFileSystemSource - objectMap := make(map[string]interface{}) - if fss.Recursive != nil { - objectMap["recursive"] = fss.Recursive - } - if fss.AdditionalColumns != nil { - objectMap["additionalColumns"] = fss.AdditionalColumns - } - if fss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = fss.SourceRetryCount - } - if fss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = fss.SourceRetryWait - } - if fss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections - } - if fss.Type != "" { - objectMap["type"] = fss.Type - } - for k, v := range fss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false } -// AsSharePointOnlineListSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHTTPSource() (*HTTPSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOffice365Source() (*Office365Source, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsWebSource() (*WebSource, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOracleSource() (*OracleSource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHdfsSource() (*HdfsSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsFileSystemSource() (*FileSystemSource, bool) { - return &fss, true +// AsOffice365LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false } -// AsRestSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsRestSource() (*RestSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsODataSource() (*ODataSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsRelationalSource() (*RelationalSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsBlobSource() (*BlobSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsVerticaSource() (*VerticaSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsZohoSource() (*ZohoSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsXeroSource() (*XeroSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSquareSource() (*SquareSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSparkSource() (*SparkSource, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsShopifySource() (*ShopifySource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false +// AsFileServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return &fsls, true } -// AsPrestoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPrestoSource() (*PrestoSource, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPaypalSource() (*PaypalSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMarketoSource() (*MarketoSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMagentoSource() (*MagentoSource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsJiraSource() (*JiraSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHubspotSource() (*HubspotSource, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHiveSource() (*HiveSource, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHBaseSource() (*HBaseSource, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsEloquaSource() (*EloquaSource, bool) { +// AsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDrillSource() (*DrillSource, bool) { - return nil, false +// AsBasicLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &fsls, true } -// AsCouchbaseSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for FileServerLinkedService struct. +func (fsls *FileServerLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var fileServerLinkedServiceTypeProperties FileServerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &fileServerLinkedServiceTypeProperties) + if err != nil { + return err + } + fsls.FileServerLinkedServiceTypeProperties = &fileServerLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsls.AdditionalProperties == nil { + fsls.AdditionalProperties = make(map[string]interface{}) + } + fsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + fsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + fsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + fsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + fsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsls.Type = typeVar + } + } + } + + return nil } -// AsConcurSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false +// FileServerLinkedServiceTypeProperties file system linked service properties. +type FileServerLinkedServiceTypeProperties struct { + // Host - Host name of the server. Type: string (or Expression with resultType string). + Host interface{} `json:"host,omitempty"` + // UserID - User ID to logon the server. Type: string (or Expression with resultType string). + UserID interface{} `json:"userId,omitempty"` + // Password - Password to logon the server. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for FileServerLinkedServiceTypeProperties struct. +func (fslstp *FileServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + fslstp.Host = host + } + case "userId": + if v != nil { + var userID interface{} + err = json.Unmarshal(*v, &userID) + if err != nil { + return err + } + fslstp.UserID = userID + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + fslstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + fslstp.EncryptedCredential = encryptedCredential + } + } + } + + return nil } -// AsAmazonMWSSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false +// FileServerLocation the location of file server dataset. +type FileServerLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` } -// AsCassandraSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for FileServerLocation. +func (fsl FileServerLocation) MarshalJSON() ([]byte, error) { + fsl.Type = TypeFileServerLocation + objectMap := make(map[string]interface{}) + if fsl.FolderPath != nil { + objectMap["folderPath"] = fsl.FolderPath + } + if fsl.FileName != nil { + objectMap["fileName"] = fsl.FileName + } + if fsl.Type != "" { + objectMap["type"] = fsl.Type + } + for k, v := range fsl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsTeradataSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsTeradataSource() (*TeradataSource, bool) { +// AsHdfsLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsHTTPServerLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSftpLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsSftpLocation() (*SftpLocation, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSQLMISource() (*SQLMISource, bool) { +// AsFtpServerLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSQLSource() (*SQLSource, bool) { +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapTableSource() (*SapTableSource, bool) { +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false +// AsFileServerLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return &fsl, true } -// AsSapHanaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAmazonS3Location is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapEccSource() (*SapEccSource, bool) { +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapBwSource() (*SapBwSource, bool) { +// AsDatasetLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &fsl, true } -// AsPostgreSQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for FileServerLocation struct. +func (fsl *FileServerLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsl.AdditionalProperties == nil { + fsl.AdditionalProperties = make(map[string]interface{}) + } + fsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + fsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + fsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsl.Type = typeVar + } + } + } + + return nil } -// AsMySQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false +// FileServerReadSettings file server read settings. +type FileServerReadSettings struct { + // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + Recursive interface{} `json:"recursive,omitempty"` + // WildcardFolderPath - FileServer wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - FileServer wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). + FileListPath interface{} `json:"fileListPath,omitempty"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. + EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // FileFilter - Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression with resultType string). + FileFilter interface{} `json:"fileFilter,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` } -// AsOdbcSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for FileServerReadSettings. +func (fsrs FileServerReadSettings) MarshalJSON() ([]byte, error) { + fsrs.Type = TypeFileServerReadSettings + objectMap := make(map[string]interface{}) + if fsrs.Recursive != nil { + objectMap["recursive"] = fsrs.Recursive + } + if fsrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = fsrs.WildcardFolderPath + } + if fsrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = fsrs.WildcardFileName + } + if fsrs.FileListPath != nil { + objectMap["fileListPath"] = fsrs.FileListPath + } + if fsrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = fsrs.EnablePartitionDiscovery + } + if fsrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = fsrs.PartitionRootPath + } + if fsrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = fsrs.DeleteFilesAfterCompletion + } + if fsrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = fsrs.ModifiedDatetimeStart + } + if fsrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = fsrs.ModifiedDatetimeEnd + } + if fsrs.FileFilter != nil { + objectMap["fileFilter"] = fsrs.FileFilter + } + if fsrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = fsrs.MaxConcurrentConnections + } + if fsrs.Type != "" { + objectMap["type"] = fsrs.Type + } + for k, v := range fsrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsDb2Source is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDb2Source() (*Db2Source, bool) { +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsInformixSource() (*InformixSource, bool) { +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsSftpReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsTabularSource() (*TabularSource, bool) { +// AsFtpReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsBinarySource() (*BinarySource, bool) { +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOrcSource() (*OrcSource, bool) { +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsXMLSource() (*XMLSource, bool) { +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsJSONSource() (*JSONSource, bool) { - return nil, false +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return &fsrs, true } -// AsDelimitedTextSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAvroSource() (*AvroSource, bool) { +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCopySource() (*CopySource, bool) { +// AsStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsBasicCopySource() (BasicCopySource, bool) { - return &fss, true +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &fsrs, true } -// UnmarshalJSON is the custom unmarshaler for FileSystemSource struct. -func (fss *FileSystemSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for FileServerReadSettings struct. +func (fsrs *FileServerReadSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -99042,16 +97424,88 @@ func (fss *FileSystemSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - fss.Recursive = recursive + fsrs.Recursive = recursive } - case "additionalColumns": + case "wildcardFolderPath": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) if err != nil { return err } - fss.AdditionalColumns = &additionalColumns + fsrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + fsrs.WildcardFileName = wildcardFileName + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + fsrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery bool + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + fsrs.EnablePartitionDiscovery = &enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + fsrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + fsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + fsrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + fsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + case "fileFilter": + if v != nil { + var fileFilter interface{} + err = json.Unmarshal(*v, &fileFilter) + if err != nil { + return err + } + fsrs.FileFilter = fileFilter } default: if v != nil { @@ -99060,28 +97514,126 @@ func (fss *FileSystemSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if fss.AdditionalProperties == nil { - fss.AdditionalProperties = make(map[string]interface{}) + if fsrs.AdditionalProperties == nil { + fsrs.AdditionalProperties = make(map[string]interface{}) } - fss.AdditionalProperties[k] = additionalProperties + fsrs.AdditionalProperties[k] = additionalProperties } - case "sourceRetryCount": + case "maxConcurrentConnections": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - fss.SourceRetryCount = sourceRetryCount + fsrs.MaxConcurrentConnections = maxConcurrentConnections } - case "sourceRetryWait": + case "type": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - fss.SourceRetryWait = sourceRetryWait + fsrs.Type = typeVar + } + } + } + + return nil +} + +// FileServerWriteSettings file server write settings. +type FileServerWriteSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeAzureFileStorageWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings', 'TypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileServerWriteSettings. +func (fsws FileServerWriteSettings) MarshalJSON() ([]byte, error) { + fsws.Type = TypeFileServerWriteSettings + objectMap := make(map[string]interface{}) + if fsws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = fsws.MaxConcurrentConnections + } + if fsws.CopyBehavior != nil { + objectMap["copyBehavior"] = fsws.CopyBehavior + } + if fsws.Type != "" { + objectMap["type"] = fsws.Type + } + for k, v := range fsws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { + return nil, false +} + +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return &fsws, true +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &fsws, true +} + +// UnmarshalJSON is the custom unmarshaler for FileServerWriteSettings struct. +func (fsws *FileServerWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsws.AdditionalProperties == nil { + fsws.AdditionalProperties = make(map[string]interface{}) + } + fsws.AdditionalProperties[k] = additionalProperties } case "maxConcurrentConnections": if v != nil { @@ -99090,16 +97642,25 @@ func (fss *FileSystemSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - fss.MaxConcurrentConnections = maxConcurrentConnections + fsws.MaxConcurrentConnections = maxConcurrentConnections + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + fsws.CopyBehavior = copyBehavior } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicStoreWriteSettings err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - fss.Type = typeVar + fsws.Type = typeVar } } } @@ -99107,589 +97668,544 @@ func (fss *FileSystemSource) UnmarshalJSON(body []byte) error { return nil } -// FilterActivity filter and return results from input array based on the conditions. -type FilterActivity struct { - // FilterActivityTypeProperties - Filter activity properties. - *FilterActivityTypeProperties `json:"typeProperties,omitempty"` +// FileShareDataset an on-premises file system dataset. +type FileShareDataset struct { + // FileShareDatasetTypeProperties - On-premises file system dataset properties. + *FileShareDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. + // Description - Dataset description. Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for FilterActivity. -func (fa FilterActivity) MarshalJSON() ([]byte, error) { - fa.Type = TypeFilter +// MarshalJSON is the custom marshaler for FileShareDataset. +func (fsd FileShareDataset) MarshalJSON() ([]byte, error) { + fsd.Type = TypeFileShare objectMap := make(map[string]interface{}) - if fa.FilterActivityTypeProperties != nil { - objectMap["typeProperties"] = fa.FilterActivityTypeProperties + if fsd.FileShareDatasetTypeProperties != nil { + objectMap["typeProperties"] = fsd.FileShareDatasetTypeProperties } - if fa.Name != nil { - objectMap["name"] = fa.Name + if fsd.Description != nil { + objectMap["description"] = fsd.Description } - if fa.Description != nil { - objectMap["description"] = fa.Description + if fsd.Structure != nil { + objectMap["structure"] = fsd.Structure } - if fa.DependsOn != nil { - objectMap["dependsOn"] = fa.DependsOn + if fsd.Schema != nil { + objectMap["schema"] = fsd.Schema } - if fa.UserProperties != nil { - objectMap["userProperties"] = fa.UserProperties + if fsd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = fsd.LinkedServiceName } - if fa.Type != "" { - objectMap["type"] = fa.Type + if fsd.Parameters != nil { + objectMap["parameters"] = fsd.Parameters } - for k, v := range fa.AdditionalProperties { + if fsd.Annotations != nil { + objectMap["annotations"] = fsd.Annotations + } + if fsd.Folder != nil { + objectMap["folder"] = fsd.Folder + } + if fsd.Type != "" { + objectMap["type"] = fsd.Type + } + for k, v := range fsd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsExecuteDataFlowActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsWebActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsWebActivity() (*WebActivity, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecutionActivity() (*ExecutionActivity, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsWebHookActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsFilterActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsFilterActivity() (*FilterActivity, bool) { - return &fa, true +// AsHiveObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false } -// AsValidationActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsValidationActivity() (*ValidationActivity, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsUntilActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsDrillTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsControlActivity() (*ControlActivity, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &fa, true +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false } -// AsActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsActivity() (*Activity, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsBasicActivity() (BasicActivity, bool) { - return &fa, true +// AsSybaseTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for FilterActivity struct. -func (fa *FilterActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var filterActivityTypeProperties FilterActivityTypeProperties - err = json.Unmarshal(*v, &filterActivityTypeProperties) - if err != nil { - return err - } - fa.FilterActivityTypeProperties = &filterActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fa.AdditionalProperties == nil { - fa.AdditionalProperties = make(map[string]interface{}) - } - fa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - fa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - fa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - fa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fa.Type = typeVar - } - } - } - - return nil +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false } -// FilterActivityTypeProperties filter activity properties. -type FilterActivityTypeProperties struct { - // Items - Input array on which filter should be applied. - Items *Expression `json:"items,omitempty"` - // Condition - Condition to be used for filtering the input. - Condition *Expression `json:"condition,omitempty"` +// AsSalesforceObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false } -// ForEachActivity this activity is used for iterating over a collection and execute given activities. -type ForEachActivity struct { - // ForEachActivityTypeProperties - ForEach activity properties. - *ForEachActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for ForEachActivity. -func (fea ForEachActivity) MarshalJSON() ([]byte, error) { - fea.Type = TypeForEach - objectMap := make(map[string]interface{}) - if fea.ForEachActivityTypeProperties != nil { - objectMap["typeProperties"] = fea.ForEachActivityTypeProperties - } - if fea.Name != nil { - objectMap["name"] = fea.Name - } - if fea.Description != nil { - objectMap["description"] = fea.Description - } - if fea.DependsOn != nil { - objectMap["dependsOn"] = fea.DependsOn - } - if fea.UserProperties != nil { - objectMap["userProperties"] = fea.UserProperties - } - if fea.Type != "" { - objectMap["type"] = fea.Type - } - for k, v := range fea.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsPostgreSQLTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false } -// AsExecuteDataFlowActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsInformixTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsDb2TableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { +// AsOracleTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { +// AsODataResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsWebActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsWebActivity() (*WebActivity, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsFileShareDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return &fsd, true +} + +// AsOffice365Dataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsCustomDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecutionActivity() (*ExecutionActivity, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsWebHookActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { +// AsAzureTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsFilterActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsFilterActivity() (*FilterActivity, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsValidationActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsValidationActivity() (*ValidationActivity, bool) { +// AsBinaryDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsUntilActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsOrcDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsXMLDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsForEachActivity() (*ForEachActivity, bool) { - return &fea, true +// AsJSONDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false } -// AsSwitchActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsParquetDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsExcelDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsControlActivity() (*ControlActivity, bool) { +// AsAvroDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &fea, true +// AsAmazonS3Dataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false } -// AsActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsActivity() (*Activity, bool) { +// AsDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsBasicActivity() (BasicActivity, bool) { - return &fea, true +// AsBasicDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsBasicDataset() (BasicDataset, bool) { + return &fsd, true } -// UnmarshalJSON is the custom unmarshaler for ForEachActivity struct. -func (fea *ForEachActivity) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for FileShareDataset struct. +func (fsd *FileShareDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -99699,12 +98215,12 @@ func (fea *ForEachActivity) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var forEachActivityTypeProperties ForEachActivityTypeProperties - err = json.Unmarshal(*v, &forEachActivityTypeProperties) + var fileShareDatasetTypeProperties FileShareDatasetTypeProperties + err = json.Unmarshal(*v, &fileShareDatasetTypeProperties) if err != nil { return err } - fea.ForEachActivityTypeProperties = &forEachActivityTypeProperties + fsd.FileShareDatasetTypeProperties = &fileShareDatasetTypeProperties } default: if v != nil { @@ -99713,55 +98229,82 @@ func (fea *ForEachActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - if fea.AdditionalProperties == nil { - fea.AdditionalProperties = make(map[string]interface{}) + if fsd.AdditionalProperties == nil { + fsd.AdditionalProperties = make(map[string]interface{}) } - fea.AdditionalProperties[k] = additionalProperties + fsd.AdditionalProperties[k] = additionalProperties } - case "name": + case "description": if v != nil { - var name string - err = json.Unmarshal(*v, &name) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - fea.Name = &name + fsd.Description = &description } - case "description": + case "structure": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - fea.Description = &description + fsd.Structure = structure } - case "dependsOn": + case "schema": if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - fea.DependsOn = &dependsOn + fsd.Schema = schema } - case "userProperties": + case "linkedServiceName": if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - fea.UserProperties = &userProperties + fsd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + fsd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + fsd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + fsd.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicActivity + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - fea.Type = typeVar + fsd.Type = typeVar } } } @@ -99769,20 +98312,26 @@ func (fea *ForEachActivity) UnmarshalJSON(body []byte) error { return nil } -// ForEachActivityTypeProperties forEach activity properties. -type ForEachActivityTypeProperties struct { - // IsSequential - Should the loop be executed in sequence or in parallel (max 50) - IsSequential *bool `json:"isSequential,omitempty"` - // BatchCount - Batch count to be used for controlling the number of parallel execution (when isSequential is set to false). - BatchCount *int32 `json:"batchCount,omitempty"` - // Items - Collection to iterate. - Items *Expression `json:"items,omitempty"` - // Activities - List of activities to execute . - Activities *[]BasicActivity `json:"activities,omitempty"` +// FileShareDatasetTypeProperties on-premises file system dataset properties. +type FileShareDatasetTypeProperties struct { + // FolderPath - The path of the on-premises file system. Type: string (or Expression with resultType string). + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - The name of the on-premises file system. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // Format - The format of the files. + Format BasicDatasetStorageFormat `json:"format,omitempty"` + // FileFilter - Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression with resultType string). + FileFilter interface{} `json:"fileFilter,omitempty"` + // Compression - The data compression method used for the file system. + Compression BasicDatasetCompression `json:"compression,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for ForEachActivityTypeProperties struct. -func (featp *ForEachActivityTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for FileShareDatasetTypeProperties struct. +func (fsdtp *FileShareDatasetTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -99790,40 +98339,66 @@ func (featp *ForEachActivityTypeProperties) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "isSequential": + case "folderPath": if v != nil { - var isSequential bool - err = json.Unmarshal(*v, &isSequential) + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) if err != nil { return err } - featp.IsSequential = &isSequential + fsdtp.FolderPath = folderPath } - case "batchCount": + case "fileName": if v != nil { - var batchCount int32 - err = json.Unmarshal(*v, &batchCount) + var fileName interface{} + err = json.Unmarshal(*v, &fileName) if err != nil { return err } - featp.BatchCount = &batchCount + fsdtp.FileName = fileName } - case "items": + case "modifiedDatetimeStart": if v != nil { - var items Expression - err = json.Unmarshal(*v, &items) + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) if err != nil { return err } - featp.Items = &items + fsdtp.ModifiedDatetimeStart = modifiedDatetimeStart } - case "activities": + case "modifiedDatetimeEnd": if v != nil { - activities, err := unmarshalBasicActivityArray(*v) + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) if err != nil { return err } - featp.Activities = &activities + fsdtp.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + case "format": + if v != nil { + formatVar, err := unmarshalBasicDatasetStorageFormat(*v) + if err != nil { + return err + } + fsdtp.Format = formatVar + } + case "fileFilter": + if v != nil { + var fileFilter interface{} + err = json.Unmarshal(*v, &fileFilter) + if err != nil { + return err + } + fsdtp.FileFilter = fileFilter + } + case "compression": + if v != nil { + compression, err := unmarshalBasicDatasetCompression(*v) + if err != nil { + return err + } + fsdtp.Compression = compression } } } @@ -99831,449 +98406,264 @@ func (featp *ForEachActivityTypeProperties) UnmarshalJSON(body []byte) error { return nil } -// BasicFormatReadSettings format read settings. -type BasicFormatReadSettings interface { - AsBinaryReadSettings() (*BinaryReadSettings, bool) - AsXMLReadSettings() (*XMLReadSettings, bool) - AsJSONReadSettings() (*JSONReadSettings, bool) - AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) - AsFormatReadSettings() (*FormatReadSettings, bool) -} - -// FormatReadSettings format read settings. -type FormatReadSettings struct { +// FileSystemSink a copy activity file system sink. +type FileSystemSink struct { + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeFormatReadSettings', 'TypeBinaryReadSettings', 'TypeXMLReadSettings', 'TypeJSONReadSettings', 'TypeDelimitedTextReadSettings' - Type TypeBasicFormatReadSettings `json:"type,omitempty"` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -func unmarshalBasicFormatReadSettings(body []byte) (BasicFormatReadSettings, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err +// MarshalJSON is the custom marshaler for FileSystemSink. +func (fss FileSystemSink) MarshalJSON() ([]byte, error) { + fss.Type = TypeFileSystemSink + objectMap := make(map[string]interface{}) + if fss.CopyBehavior != nil { + objectMap["copyBehavior"] = fss.CopyBehavior } - - switch m["type"] { - case string(TypeBinaryReadSettings): - var brs BinaryReadSettings - err := json.Unmarshal(body, &brs) - return brs, err - case string(TypeXMLReadSettings): - var xrs XMLReadSettings - err := json.Unmarshal(body, &xrs) - return xrs, err - case string(TypeJSONReadSettings): - var jrs JSONReadSettings - err := json.Unmarshal(body, &jrs) - return jrs, err - case string(TypeDelimitedTextReadSettings): - var dtrs DelimitedTextReadSettings - err := json.Unmarshal(body, &dtrs) - return dtrs, err - default: - var frs FormatReadSettings - err := json.Unmarshal(body, &frs) - return frs, err + if fss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = fss.WriteBatchSize } -} -func unmarshalBasicFormatReadSettingsArray(body []byte) ([]BasicFormatReadSettings, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err + if fss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = fss.WriteBatchTimeout } - - frsArray := make([]BasicFormatReadSettings, len(rawMessages)) - - for index, rawMessage := range rawMessages { - frs, err := unmarshalBasicFormatReadSettings(*rawMessage) - if err != nil { - return nil, err - } - frsArray[index] = frs + if fss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = fss.SinkRetryCount } - return frsArray, nil -} - -// MarshalJSON is the custom marshaler for FormatReadSettings. -func (frs FormatReadSettings) MarshalJSON() ([]byte, error) { - frs.Type = TypeFormatReadSettings - objectMap := make(map[string]interface{}) - if frs.Type != "" { - objectMap["type"] = frs.Type + if fss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = fss.SinkRetryWait } - for k, v := range frs.AdditionalProperties { + if fss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections + } + if fss.Type != "" { + objectMap["type"] = fss.Type + } + for k, v := range fss.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsBinaryReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsXMLReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsJSONReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsFormatReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { - return &frs, true +// AsSalesforceSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false } -// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { - return &frs, true +// AsAzureDataExplorerSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for FormatReadSettings struct. -func (frs *FormatReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if frs.AdditionalProperties == nil { - frs.AdditionalProperties = make(map[string]interface{}) - } - frs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - frs.Type = typeVar - } - } - } +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} - return nil +// AsDynamicsCrmSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false } -// BasicFormatWriteSettings format write settings. -type BasicFormatWriteSettings interface { - AsJSONWriteSettings() (*JSONWriteSettings, bool) - AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) - AsOrcWriteSettings() (*OrcWriteSettings, bool) - AsAvroWriteSettings() (*AvroWriteSettings, bool) - AsParquetWriteSettings() (*ParquetWriteSettings, bool) - AsFormatWriteSettings() (*FormatWriteSettings, bool) +// AsDynamicsSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false } -// FormatWriteSettings format write settings. -type FormatWriteSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeFormatWriteSettings', 'TypeJSONWriteSettings', 'TypeDelimitedTextWriteSettings', 'TypeOrcWriteSettings', 'TypeAvroWriteSettings', 'TypeParquetWriteSettings' - Type TypeBasicFormatWriteSettings `json:"type,omitempty"` +// AsMicrosoftAccessSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false } -func unmarshalBasicFormatWriteSettings(body []byte) (BasicFormatWriteSettings, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } +// AsInformixSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} - switch m["type"] { - case string(TypeJSONWriteSettings): - var jws JSONWriteSettings - err := json.Unmarshal(body, &jws) - return jws, err - case string(TypeDelimitedTextWriteSettings): - var dtws DelimitedTextWriteSettings - err := json.Unmarshal(body, &dtws) - return dtws, err - case string(TypeOrcWriteSettings): - var ows OrcWriteSettings - err := json.Unmarshal(body, &ows) - return ows, err - case string(TypeAvroWriteSettings): - var aws AvroWriteSettings - err := json.Unmarshal(body, &aws) - return aws, err - case string(TypeParquetWriteSettings): - var pws ParquetWriteSettings - err := json.Unmarshal(body, &pws) - return pws, err - default: - var fws FormatWriteSettings - err := json.Unmarshal(body, &fws) - return fws, err - } +// AsOdbcSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false } -func unmarshalBasicFormatWriteSettingsArray(body []byte) ([]BasicFormatWriteSettings, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - fwsArray := make([]BasicFormatWriteSettings, len(rawMessages)) +// AsAzureSearchIndexSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} - for index, rawMessage := range rawMessages { - fws, err := unmarshalBasicFormatWriteSettings(*rawMessage) - if err != nil { - return nil, err - } - fwsArray[index] = fws - } - return fwsArray, nil +// AsAzureBlobFSSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for FormatWriteSettings. -func (fws FormatWriteSettings) MarshalJSON() ([]byte, error) { - fws.Type = TypeFormatWriteSettings - objectMap := make(map[string]interface{}) - if fws.Type != "" { - objectMap["type"] = fws.Type - } - for k, v := range fws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false } -// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { +// AsOracleSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { +// AsSQLDWSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { +// AsSQLMISink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { - return &fws, true +// AsSQLServerSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false } -// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { - return &fws, true +// AsSQLSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSQLSink() (*SQLSink, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for FormatWriteSettings struct. -func (fws *FormatWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fws.AdditionalProperties == nil { - fws.AdditionalProperties = make(map[string]interface{}) - } - fws.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fws.Type = typeVar - } - } - } +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} - return nil +// AsDocumentDbCollectionSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false } -// FtpReadSettings ftp read settings. -type FtpReadSettings struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // WildcardFolderPath - Ftp wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Ftp wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` - // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` - // UseBinaryTransfer - Specify whether to use binary transfer mode for FTP stores. - UseBinaryTransfer *bool `json:"useBinaryTransfer,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` +// AsFileSystemSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsFileSystemSink() (*FileSystemSink, bool) { + return &fss, true } -// MarshalJSON is the custom marshaler for FtpReadSettings. -func (frs FtpReadSettings) MarshalJSON() ([]byte, error) { - frs.Type = TypeFtpReadSettings - objectMap := make(map[string]interface{}) - if frs.Recursive != nil { - objectMap["recursive"] = frs.Recursive - } - if frs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = frs.WildcardFolderPath - } - if frs.WildcardFileName != nil { - objectMap["wildcardFileName"] = frs.WildcardFileName - } - if frs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = frs.EnablePartitionDiscovery - } - if frs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = frs.PartitionRootPath - } - if frs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = frs.DeleteFilesAfterCompletion - } - if frs.FileListPath != nil { - objectMap["fileListPath"] = frs.FileListPath - } - if frs.UseBinaryTransfer != nil { - objectMap["useBinaryTransfer"] = frs.UseBinaryTransfer - } - if frs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = frs.MaxConcurrentConnections - } - if frs.Type != "" { - objectMap["type"] = frs.Type - } - for k, v := range frs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsBlobSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsBlobSink() (*BlobSink, bool) { + return nil, false } -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { +// AsBinarySink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { +// AsParquetSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsSftpReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { +// AsAvroSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsFtpReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return &frs, true +// AsAzureTableSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false } -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { +// AsRestSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { +// AsOrcSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { +// AsJSONSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { +// AsCopySink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &frs, true +// AsBasicCopySink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsBasicCopySink() (BasicCopySink, bool) { + return &fss, true } -// UnmarshalJSON is the custom unmarshaler for FtpReadSettings struct. -func (frs *FtpReadSettings) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for FileSystemSink struct. +func (fss *FileSystemSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -100281,89 +98671,62 @@ func (frs *FtpReadSettings) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - frs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - frs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": + case "copyBehavior": if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) if err != nil { return err } - frs.WildcardFileName = wildcardFileName + fss.CopyBehavior = copyBehavior } - case "enablePartitionDiscovery": + default: if v != nil { - var enablePartitionDiscovery bool - err = json.Unmarshal(*v, &enablePartitionDiscovery) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - frs.EnablePartitionDiscovery = &enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err + if fss.AdditionalProperties == nil { + fss.AdditionalProperties = make(map[string]interface{}) } - frs.PartitionRootPath = partitionRootPath + fss.AdditionalProperties[k] = additionalProperties } - case "deleteFilesAfterCompletion": + case "writeBatchSize": if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - frs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + fss.WriteBatchSize = writeBatchSize } - case "fileListPath": + case "writeBatchTimeout": if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - frs.FileListPath = fileListPath + fss.WriteBatchTimeout = writeBatchTimeout } - case "useBinaryTransfer": + case "sinkRetryCount": if v != nil { - var useBinaryTransfer bool - err = json.Unmarshal(*v, &useBinaryTransfer) + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) if err != nil { return err } - frs.UseBinaryTransfer = &useBinaryTransfer + fss.SinkRetryCount = sinkRetryCount } - default: + case "sinkRetryWait": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) if err != nil { return err } - if frs.AdditionalProperties == nil { - frs.AdditionalProperties = make(map[string]interface{}) - } - frs.AdditionalProperties[k] = additionalProperties + fss.SinkRetryWait = sinkRetryWait } case "maxConcurrentConnections": if v != nil { @@ -100372,16 +98735,16 @@ func (frs *FtpReadSettings) UnmarshalJSON(body []byte) error { if err != nil { return err } - frs.MaxConcurrentConnections = maxConcurrentConnections + fss.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicStoreReadSettings + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - frs.Type = typeVar + fss.Type = typeVar } } } @@ -100389,665 +98752,534 @@ func (frs *FtpReadSettings) UnmarshalJSON(body []byte) error { return nil } -// FtpServerLinkedService a FTP server Linked Service. -type FtpServerLinkedService struct { - // FtpServerLinkedServiceTypeProperties - Properties specific to this linked service type. - *FtpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// FileSystemSource a copy activity file system source. +type FileSystemSource struct { + // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + Recursive interface{} `json:"recursive,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for FtpServerLinkedService. -func (fsls FtpServerLinkedService) MarshalJSON() ([]byte, error) { - fsls.Type = TypeFtpServer +// MarshalJSON is the custom marshaler for FileSystemSource. +func (fss FileSystemSource) MarshalJSON() ([]byte, error) { + fss.Type = TypeFileSystemSource objectMap := make(map[string]interface{}) - if fsls.FtpServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = fsls.FtpServerLinkedServiceTypeProperties + if fss.Recursive != nil { + objectMap["recursive"] = fss.Recursive } - if fsls.ConnectVia != nil { - objectMap["connectVia"] = fsls.ConnectVia + if fss.AdditionalColumns != nil { + objectMap["additionalColumns"] = fss.AdditionalColumns } - if fsls.Description != nil { - objectMap["description"] = fsls.Description + if fss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = fss.SourceRetryCount } - if fsls.Parameters != nil { - objectMap["parameters"] = fsls.Parameters + if fss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = fss.SourceRetryWait } - if fsls.Annotations != nil { - objectMap["annotations"] = fsls.Annotations + if fss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections } - if fsls.Type != "" { - objectMap["type"] = fsls.Type + if fss.Type != "" { + objectMap["type"] = fss.Type } - for k, v := range fsls.AdditionalProperties { + for k, v := range fss.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false +// AsFileSystemSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsFileSystemSource() (*FileSystemSource, bool) { + return &fss, true } -// AsServiceNowLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsRestSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsVerticaSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsNetezzaSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsZohoSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsXeroSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsSquareSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSparkSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsShopifySource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsServiceNowSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return &fsls, true -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsPrestoSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsPhoenixSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsPaypalSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsMarketoSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsMariaDBSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsMagentoSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsJiraSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsImpalaSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsHubspotSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsHiveSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsHBaseSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsGreenplumSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsEloquaSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsDrillSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsConcurSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsCassandraSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsTeradataSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsSQLDWSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsSQLMISource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsSQLServerSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsSQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSapTableSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsSapHanaSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsSapEccSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsSalesforceSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSapBwSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsSybaseSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsMySQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsOdbcSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsDb2Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsInformixSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsTabularSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsBinarySource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsOrcSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsXMLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsJSONSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsParquetSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsExcelSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAvroSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsCopySource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &fsls, true -} - -// UnmarshalJSON is the custom unmarshaler for FtpServerLinkedService struct. -func (fsls *FtpServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var ftpServerLinkedServiceTypeProperties FtpServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &ftpServerLinkedServiceTypeProperties) - if err != nil { - return err - } - fsls.FtpServerLinkedServiceTypeProperties = &ftpServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsls.AdditionalProperties == nil { - fsls.AdditionalProperties = make(map[string]interface{}) - } - fsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - fsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - fsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - fsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsls.Type = typeVar - } - } - } - - return nil -} - -// FtpServerLinkedServiceTypeProperties properties specific to this linked service type. -type FtpServerLinkedServiceTypeProperties struct { - // Host - Host name of the FTP server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // Port - 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. - Port interface{} `json:"port,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the FTP server. Possible values include: 'FtpAuthenticationTypeBasic', 'FtpAuthenticationTypeAnonymous' - AuthenticationType FtpAuthenticationType `json:"authenticationType,omitempty"` - // UserName - Username to logon the FTP server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to logon the FTP server. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - // EnableSsl - If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). - EnableSsl interface{} `json:"enableSsl,omitempty"` - // EnableServerCertificateValidation - 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). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` +// AsBasicCopySource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsBasicCopySource() (BasicCopySource, bool) { + return &fss, true } -// UnmarshalJSON is the custom unmarshaler for FtpServerLinkedServiceTypeProperties struct. -func (fslstp *FtpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for FileSystemSource struct. +func (fss *FileSystemSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -101055,198 +99287,24 @@ func (fslstp *FtpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) e } for k, v := range m { switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - fslstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - fslstp.Port = port - } - case "authenticationType": - if v != nil { - var authenticationType FtpAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - fslstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - fslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - fslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - fslstp.EncryptedCredential = encryptedCredential - } - case "enableSsl": + case "recursive": if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) + var recursive interface{} + err = json.Unmarshal(*v, &recursive) if err != nil { return err } - fslstp.EnableSsl = enableSsl + fss.Recursive = recursive } - case "enableServerCertificateValidation": + case "additionalColumns": if v != nil { - var enableServerCertificateValidation interface{} - err = json.Unmarshal(*v, &enableServerCertificateValidation) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - fslstp.EnableServerCertificateValidation = enableServerCertificateValidation + fss.AdditionalColumns = &additionalColumns } - } - } - - return nil -} - -// FtpServerLocation the location of ftp server dataset. -type FtpServerLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FtpServerLocation. -func (fsl FtpServerLocation) MarshalJSON() ([]byte, error) { - fsl.Type = TypeFtpServerLocation - objectMap := make(map[string]interface{}) - if fsl.FolderPath != nil { - objectMap["folderPath"] = fsl.FolderPath - } - if fsl.FileName != nil { - objectMap["fileName"] = fsl.FileName - } - if fsl.Type != "" { - objectMap["type"] = fsl.Type - } - for k, v := range fsl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return &fsl, true -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &fsl, true -} - -// UnmarshalJSON is the custom unmarshaler for FtpServerLocation struct. -func (fsl *FtpServerLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { default: if v != nil { var additionalProperties interface{} @@ -101254,99 +99312,46 @@ func (fsl *FtpServerLocation) UnmarshalJSON(body []byte) error { if err != nil { return err } - if fsl.AdditionalProperties == nil { - fsl.AdditionalProperties = make(map[string]interface{}) - } - fsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err + if fss.AdditionalProperties == nil { + fss.AdditionalProperties = make(map[string]interface{}) } - fsl.FolderPath = folderPath + fss.AdditionalProperties[k] = additionalProperties } - case "fileName": + case "sourceRetryCount": if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - fsl.FileName = fileName + fss.SourceRetryCount = sourceRetryCount } - case "type": + case "sourceRetryWait": if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - fsl.Type = typeVar + fss.SourceRetryWait = sourceRetryWait } - } - } - - return nil -} - -// GenericDatasetTypeProperties properties specific to this dataset type. -type GenericDatasetTypeProperties struct { - // TableName - The table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// GetDataFactoryOperationStatusResponse response body structure for get data factory operation status. -type GetDataFactoryOperationStatusResponse struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Status - Status of the operation. - Status *string `json:"status,omitempty"` -} - -// MarshalJSON is the custom marshaler for GetDataFactoryOperationStatusResponse. -func (gdfosr GetDataFactoryOperationStatusResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if gdfosr.Status != nil { - objectMap["status"] = gdfosr.Status - } - for k, v := range gdfosr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for GetDataFactoryOperationStatusResponse struct. -func (gdfosr *GetDataFactoryOperationStatusResponse) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: + case "maxConcurrentConnections": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - if gdfosr.AdditionalProperties == nil { - gdfosr.AdditionalProperties = make(map[string]interface{}) - } - gdfosr.AdditionalProperties[k] = additionalProperties + fss.MaxConcurrentConnections = maxConcurrentConnections } - case "status": + case "type": if v != nil { - var status string - err = json.Unmarshal(*v, &status) + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - gdfosr.Status = &status + fss.Type = typeVar } } } @@ -101354,14 +99359,10 @@ func (gdfosr *GetDataFactoryOperationStatusResponse) UnmarshalJSON(body []byte) return nil } -// GetMetadataActivity activity to get metadata of dataset -type GetMetadataActivity struct { - // GetMetadataActivityTypeProperties - GetMetadata activity properties. - *GetMetadataActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` +// FilterActivity filter and return results from input array based on the conditions. +type FilterActivity struct { + // FilterActivityTypeProperties - Filter activity properties. + *FilterActivityTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Name - Activity name. @@ -101376,242 +99377,236 @@ type GetMetadataActivity struct { Type TypeBasicActivity `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for GetMetadataActivity. -func (gma GetMetadataActivity) MarshalJSON() ([]byte, error) { - gma.Type = TypeGetMetadata +// MarshalJSON is the custom marshaler for FilterActivity. +func (fa FilterActivity) MarshalJSON() ([]byte, error) { + fa.Type = TypeFilter objectMap := make(map[string]interface{}) - if gma.GetMetadataActivityTypeProperties != nil { - objectMap["typeProperties"] = gma.GetMetadataActivityTypeProperties - } - if gma.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gma.LinkedServiceName - } - if gma.Policy != nil { - objectMap["policy"] = gma.Policy + if fa.FilterActivityTypeProperties != nil { + objectMap["typeProperties"] = fa.FilterActivityTypeProperties } - if gma.Name != nil { - objectMap["name"] = gma.Name + if fa.Name != nil { + objectMap["name"] = fa.Name } - if gma.Description != nil { - objectMap["description"] = gma.Description + if fa.Description != nil { + objectMap["description"] = fa.Description } - if gma.DependsOn != nil { - objectMap["dependsOn"] = gma.DependsOn + if fa.DependsOn != nil { + objectMap["dependsOn"] = fa.DependsOn } - if gma.UserProperties != nil { - objectMap["userProperties"] = gma.UserProperties + if fa.UserProperties != nil { + objectMap["userProperties"] = fa.UserProperties } - if gma.Type != "" { - objectMap["type"] = gma.Type + if fa.Type != "" { + objectMap["type"] = fa.Type } - for k, v := range gma.AdditionalProperties { + for k, v := range fa.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsExecuteDataFlowActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return &gma, true +// AsGetMetadataActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false } -// AsWebActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsWebActivity() (*WebActivity, bool) { +// AsWebActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsLookupActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsDeleteActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsCustomActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsCopyActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecutionActivity() (*ExecutionActivity, bool) { +// AsExecutionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &gma, true +// AsBasicExecutionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false } -// AsWebHookActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsWebHookActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { +// AsSetVariableActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsFilterActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false +// AsFilterActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsFilterActivity() (*FilterActivity, bool) { + return &fa, true } -// AsValidationActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsValidationActivity() (*ValidationActivity, bool) { +// AsValidationActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsUntilActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsUntilActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsWaitActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsForEachActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsSwitchActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsIfConditionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsControlActivity() (*ControlActivity, bool) { +// AsControlActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false +// AsBasicControlActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &fa, true } -// AsActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsActivity() (*Activity, bool) { +// AsActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsBasicActivity() (BasicActivity, bool) { - return &gma, true +// AsBasicActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsBasicActivity() (BasicActivity, bool) { + return &fa, true } -// UnmarshalJSON is the custom unmarshaler for GetMetadataActivity struct. -func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for FilterActivity struct. +func (fa *FilterActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -101621,30 +99616,12 @@ func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var getMetadataActivityTypeProperties GetMetadataActivityTypeProperties - err = json.Unmarshal(*v, &getMetadataActivityTypeProperties) - if err != nil { - return err - } - gma.GetMetadataActivityTypeProperties = &getMetadataActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - gma.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) + var filterActivityTypeProperties FilterActivityTypeProperties + err = json.Unmarshal(*v, &filterActivityTypeProperties) if err != nil { return err } - gma.Policy = &policy + fa.FilterActivityTypeProperties = &filterActivityTypeProperties } default: if v != nil { @@ -101653,10 +99630,10 @@ func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - if gma.AdditionalProperties == nil { - gma.AdditionalProperties = make(map[string]interface{}) + if fa.AdditionalProperties == nil { + fa.AdditionalProperties = make(map[string]interface{}) } - gma.AdditionalProperties[k] = additionalProperties + fa.AdditionalProperties[k] = additionalProperties } case "name": if v != nil { @@ -101665,7 +99642,7 @@ func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - gma.Name = &name + fa.Name = &name } case "description": if v != nil { @@ -101674,7 +99651,7 @@ func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - gma.Description = &description + fa.Description = &description } case "dependsOn": if v != nil { @@ -101683,7 +99660,7 @@ func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - gma.DependsOn = &dependsOn + fa.DependsOn = &dependsOn } case "userProperties": if v != nil { @@ -101692,7 +99669,7 @@ func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - gma.UserProperties = &userProperties + fa.UserProperties = &userProperties } case "type": if v != nil { @@ -101701,68 +99678,7 @@ func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { if err != nil { return err } - gma.Type = typeVar - } - } - } - - return nil -} - -// GetMetadataActivityTypeProperties getMetadata activity properties. -type GetMetadataActivityTypeProperties struct { - // Dataset - GetMetadata activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // FieldList - Fields of metadata to get from dataset. - FieldList *[]interface{} `json:"fieldList,omitempty"` - // StoreSettings - GetMetadata activity store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // FormatSettings - GetMetadata activity format settings. - FormatSettings BasicFormatReadSettings `json:"formatSettings,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for GetMetadataActivityTypeProperties struct. -func (gmatp *GetMetadataActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "dataset": - if v != nil { - var dataset DatasetReference - err = json.Unmarshal(*v, &dataset) - if err != nil { - return err - } - gmatp.Dataset = &dataset - } - case "fieldList": - if v != nil { - var fieldList []interface{} - err = json.Unmarshal(*v, &fieldList) - if err != nil { - return err - } - gmatp.FieldList = &fieldList - } - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - gmatp.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - formatSettings, err := unmarshalBasicFormatReadSettings(*v) - if err != nil { - return err - } - gmatp.FormatSettings = formatSettings + fa.Type = typeVar } } } @@ -101770,595 +99686,846 @@ func (gmatp *GetMetadataActivityTypeProperties) UnmarshalJSON(body []byte) error return nil } -// GetSsisObjectMetadataRequest the request payload of get SSIS object metadata. -type GetSsisObjectMetadataRequest struct { - // MetadataPath - Metadata path. - MetadataPath *string `json:"metadataPath,omitempty"` -} - -// GitHubAccessTokenRequest get GitHub access token request definition. -type GitHubAccessTokenRequest struct { - // GitHubAccessCode - GitHub access code. - GitHubAccessCode *string `json:"gitHubAccessCode,omitempty"` - // GitHubClientID - GitHub application client ID. - GitHubClientID *string `json:"gitHubClientId,omitempty"` - // GitHubAccessTokenBaseURL - GitHub access token base URL. - GitHubAccessTokenBaseURL *string `json:"gitHubAccessTokenBaseUrl,omitempty"` -} - -// GitHubAccessTokenResponse get GitHub access token response definition. -type GitHubAccessTokenResponse struct { - autorest.Response `json:"-"` - // GitHubAccessToken - GitHub access token. - GitHubAccessToken *string `json:"gitHubAccessToken,omitempty"` -} - -// GlobalParameterSpecification definition of a single parameter for an entity. -type GlobalParameterSpecification struct { - // Type - Global Parameter type. Possible values include: 'Object', 'String', 'Int', 'Float', 'Bool', 'Array' - Type GlobalParameterType `json:"type,omitempty"` - // Value - Value of parameter. - Value interface{} `json:"value,omitempty"` +// FilterActivityTypeProperties filter activity properties. +type FilterActivityTypeProperties struct { + // Items - Input array on which filter should be applied. + Items *Expression `json:"items,omitempty"` + // Condition - Condition to be used for filtering the input. + Condition *Expression `json:"condition,omitempty"` } -// GoogleAdWordsLinkedService google AdWords service linked service. -type GoogleAdWordsLinkedService struct { - // GoogleAdWordsLinkedServiceTypeProperties - Google AdWords service linked service properties. - *GoogleAdWordsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// ForEachActivity this activity is used for iterating over a collection and execute given activities. +type ForEachActivity struct { + // ForEachActivityTypeProperties - ForEach activity properties. + *ForEachActivityTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) MarshalJSON() ([]byte, error) { - gawls.Type = TypeGoogleAdWords +// MarshalJSON is the custom marshaler for ForEachActivity. +func (fea ForEachActivity) MarshalJSON() ([]byte, error) { + fea.Type = TypeForEach objectMap := make(map[string]interface{}) - if gawls.GoogleAdWordsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gawls.GoogleAdWordsLinkedServiceTypeProperties + if fea.ForEachActivityTypeProperties != nil { + objectMap["typeProperties"] = fea.ForEachActivityTypeProperties } - if gawls.ConnectVia != nil { - objectMap["connectVia"] = gawls.ConnectVia + if fea.Name != nil { + objectMap["name"] = fea.Name } - if gawls.Description != nil { - objectMap["description"] = gawls.Description + if fea.Description != nil { + objectMap["description"] = fea.Description } - if gawls.Parameters != nil { - objectMap["parameters"] = gawls.Parameters + if fea.DependsOn != nil { + objectMap["dependsOn"] = fea.DependsOn } - if gawls.Annotations != nil { - objectMap["annotations"] = gawls.Annotations + if fea.UserProperties != nil { + objectMap["userProperties"] = fea.UserProperties } - if gawls.Type != "" { - objectMap["type"] = gawls.Type + if fea.Type != "" { + objectMap["type"] = fea.Type } - for k, v := range gawls.AdditionalProperties { + for k, v := range fea.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return &gawls, true -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsWebActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsLookupActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsDeleteActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsCustomActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsCopyActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsExecutionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsBasicExecutionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsWebHookActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsSetVariableActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsFilterActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsValidationActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsUntilActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsWaitActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false +// AsForEachActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsForEachActivity() (*ForEachActivity, bool) { + return &fea, true } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsSwitchActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsIfConditionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsControlActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false +// AsBasicControlActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &fea, true } -// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false +// AsBasicActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsBasicActivity() (BasicActivity, bool) { + return &fea, true } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for ForEachActivity struct. +func (fea *ForEachActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var forEachActivityTypeProperties ForEachActivityTypeProperties + err = json.Unmarshal(*v, &forEachActivityTypeProperties) + if err != nil { + return err + } + fea.ForEachActivityTypeProperties = &forEachActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fea.AdditionalProperties == nil { + fea.AdditionalProperties = make(map[string]interface{}) + } + fea.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fea.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + fea.Description = &description + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + fea.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + fea.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fea.Type = typeVar + } + } + } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false + return nil } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false +// ForEachActivityTypeProperties forEach activity properties. +type ForEachActivityTypeProperties struct { + // IsSequential - Should the loop be executed in sequence or in parallel (max 50) + IsSequential *bool `json:"isSequential,omitempty"` + // BatchCount - Batch count to be used for controlling the number of parallel execution (when isSequential is set to false). + BatchCount *int32 `json:"batchCount,omitempty"` + // Items - Collection to iterate. + Items *Expression `json:"items,omitempty"` + // Activities - List of activities to execute . + Activities *[]BasicActivity `json:"activities,omitempty"` } -// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for ForEachActivityTypeProperties struct. +func (featp *ForEachActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "isSequential": + if v != nil { + var isSequential bool + err = json.Unmarshal(*v, &isSequential) + if err != nil { + return err + } + featp.IsSequential = &isSequential + } + case "batchCount": + if v != nil { + var batchCount int32 + err = json.Unmarshal(*v, &batchCount) + if err != nil { + return err + } + featp.BatchCount = &batchCount + } + case "items": + if v != nil { + var items Expression + err = json.Unmarshal(*v, &items) + if err != nil { + return err + } + featp.Items = &items + } + case "activities": + if v != nil { + activities, err := unmarshalBasicActivityArray(*v) + if err != nil { + return err + } + featp.Activities = &activities + } + } + } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false + return nil } -// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false +// BasicFormatReadSettings format read settings. +type BasicFormatReadSettings interface { + AsBinaryReadSettings() (*BinaryReadSettings, bool) + AsXMLReadSettings() (*XMLReadSettings, bool) + AsJSONReadSettings() (*JSONReadSettings, bool) + AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) + AsFormatReadSettings() (*FormatReadSettings, bool) } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false +// FormatReadSettings format read settings. +type FormatReadSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeFormatReadSettings', 'TypeBinaryReadSettings', 'TypeXMLReadSettings', 'TypeJSONReadSettings', 'TypeDelimitedTextReadSettings' + Type TypeBasicFormatReadSettings `json:"type,omitempty"` } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} +func unmarshalBasicFormatReadSettings(body []byte) (BasicFormatReadSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } -// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false + switch m["type"] { + case string(TypeBinaryReadSettings): + var brs BinaryReadSettings + err := json.Unmarshal(body, &brs) + return brs, err + case string(TypeXMLReadSettings): + var xrs XMLReadSettings + err := json.Unmarshal(body, &xrs) + return xrs, err + case string(TypeJSONReadSettings): + var jrs JSONReadSettings + err := json.Unmarshal(body, &jrs) + return jrs, err + case string(TypeDelimitedTextReadSettings): + var dtrs DelimitedTextReadSettings + err := json.Unmarshal(body, &dtrs) + return dtrs, err + default: + var frs FormatReadSettings + err := json.Unmarshal(body, &frs) + return frs, err + } } +func unmarshalBasicFormatReadSettingsArray(body []byte) ([]BasicFormatReadSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } -// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} + frsArray := make([]BasicFormatReadSettings, len(rawMessages)) -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false + for index, rawMessage := range rawMessages { + frs, err := unmarshalBasicFormatReadSettings(*rawMessage) + if err != nil { + return nil, err + } + frsArray[index] = frs + } + return frsArray, nil } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for FormatReadSettings. +func (frs FormatReadSettings) MarshalJSON() ([]byte, error) { + frs.Type = TypeFormatReadSettings + objectMap := make(map[string]interface{}) + if frs.Type != "" { + objectMap["type"] = frs.Type + } + for k, v := range frs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsBinaryReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsXMLReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsJSONReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false +// AsFormatReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { + return &frs, true } -// AsWebLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false +// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { + return &frs, true } -// AsODataLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for FormatReadSettings struct. +func (frs *FormatReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if frs.AdditionalProperties == nil { + frs.AdditionalProperties = make(map[string]interface{}) + } + frs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + frs.Type = typeVar + } + } + } -// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false + return nil } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false +// BasicFormatWriteSettings format write settings. +type BasicFormatWriteSettings interface { + AsJSONWriteSettings() (*JSONWriteSettings, bool) + AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) + AsOrcWriteSettings() (*OrcWriteSettings, bool) + AsAvroWriteSettings() (*AvroWriteSettings, bool) + AsParquetWriteSettings() (*ParquetWriteSettings, bool) + AsFormatWriteSettings() (*FormatWriteSettings, bool) } -// AsInformixLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false +// FormatWriteSettings format write settings. +type FormatWriteSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeFormatWriteSettings', 'TypeJSONWriteSettings', 'TypeDelimitedTextWriteSettings', 'TypeOrcWriteSettings', 'TypeAvroWriteSettings', 'TypeParquetWriteSettings' + Type TypeBasicFormatWriteSettings `json:"type,omitempty"` } -// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} +func unmarshalBasicFormatWriteSettings(body []byte) (BasicFormatWriteSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false + switch m["type"] { + case string(TypeJSONWriteSettings): + var jws JSONWriteSettings + err := json.Unmarshal(body, &jws) + return jws, err + case string(TypeDelimitedTextWriteSettings): + var dtws DelimitedTextWriteSettings + err := json.Unmarshal(body, &dtws) + return dtws, err + case string(TypeOrcWriteSettings): + var ows OrcWriteSettings + err := json.Unmarshal(body, &ows) + return ows, err + case string(TypeAvroWriteSettings): + var aws AvroWriteSettings + err := json.Unmarshal(body, &aws) + return aws, err + case string(TypeParquetWriteSettings): + var pws ParquetWriteSettings + err := json.Unmarshal(body, &pws) + return pws, err + default: + var fws FormatWriteSettings + err := json.Unmarshal(body, &fws) + return fws, err + } } +func unmarshalBasicFormatWriteSettingsArray(body []byte) ([]BasicFormatWriteSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } -// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} + fwsArray := make([]BasicFormatWriteSettings, len(rawMessages)) -// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false + for index, rawMessage := range rawMessages { + fws, err := unmarshalBasicFormatWriteSettings(*rawMessage) + if err != nil { + return nil, err + } + fwsArray[index] = fws + } + return fwsArray, nil } -// AsDb2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for FormatWriteSettings. +func (fws FormatWriteSettings) MarshalJSON() ([]byte, error) { + fws.Type = TypeFormatWriteSettings + objectMap := make(map[string]interface{}) + if fws.Type != "" { + objectMap["type"] = fws.Type + } + for k, v := range fws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false +// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { + return &fws, true } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false +// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { + return &fws, true } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for FormatWriteSettings struct. +func (fws *FormatWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fws.AdditionalProperties == nil { + fws.AdditionalProperties = make(map[string]interface{}) + } + fws.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fws.Type = typeVar + } + } + } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false + return nil } -// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false +// FtpReadSettings ftp read settings. +type FtpReadSettings struct { + // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + Recursive interface{} `json:"recursive,omitempty"` + // WildcardFolderPath - Ftp wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Ftp wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. + EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). + FileListPath interface{} `json:"fileListPath,omitempty"` + // UseBinaryTransfer - Specify whether to use binary transfer mode for FTP stores. + UseBinaryTransfer *bool `json:"useBinaryTransfer,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` } -// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for FtpReadSettings. +func (frs FtpReadSettings) MarshalJSON() ([]byte, error) { + frs.Type = TypeFtpReadSettings + objectMap := make(map[string]interface{}) + if frs.Recursive != nil { + objectMap["recursive"] = frs.Recursive + } + if frs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = frs.WildcardFolderPath + } + if frs.WildcardFileName != nil { + objectMap["wildcardFileName"] = frs.WildcardFileName + } + if frs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = frs.EnablePartitionDiscovery + } + if frs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = frs.PartitionRootPath + } + if frs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = frs.DeleteFilesAfterCompletion + } + if frs.FileListPath != nil { + objectMap["fileListPath"] = frs.FileListPath + } + if frs.UseBinaryTransfer != nil { + objectMap["useBinaryTransfer"] = frs.UseBinaryTransfer + } + if frs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = frs.MaxConcurrentConnections + } + if frs.Type != "" { + objectMap["type"] = frs.Type + } + for k, v := range frs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsSftpReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false +// AsFtpReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return &frs, true } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gawls, true +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &frs, true } -// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsLinkedService struct. -func (gawls *GoogleAdWordsLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for FtpReadSettings struct. +func (frs *FtpReadSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -102366,208 +100533,107 @@ func (gawls *GoogleAdWordsLinkedService) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var googleAdWordsLinkedServiceTypeProperties GoogleAdWordsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &googleAdWordsLinkedServiceTypeProperties) - if err != nil { - return err - } - gawls.GoogleAdWordsLinkedServiceTypeProperties = &googleAdWordsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gawls.AdditionalProperties == nil { - gawls.AdditionalProperties = make(map[string]interface{}) - } - gawls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - gawls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gawls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gawls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gawls.Annotations = &annotations - } - case "type": + case "recursive": if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) + var recursive interface{} + err = json.Unmarshal(*v, &recursive) if err != nil { return err } - gawls.Type = typeVar + frs.Recursive = recursive } - } - } - - return nil -} - -// GoogleAdWordsLinkedServiceTypeProperties google AdWords service linked service properties. -type GoogleAdWordsLinkedServiceTypeProperties struct { - // ClientCustomerID - The Client customer ID of the AdWords account that you want to fetch report data for. - ClientCustomerID interface{} `json:"clientCustomerID,omitempty"` - // DeveloperToken - The developer token associated with the manager account that you use to grant access to the AdWords API. - DeveloperToken BasicSecretBase `json:"developerToken,omitempty"` - // AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'ServiceAuthentication', 'UserAuthentication' - AuthenticationType GoogleAdWordsAuthenticationType `json:"authenticationType,omitempty"` - // RefreshToken - The refresh token obtained from Google for authorizing access to AdWords for UserAuthentication. - RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` - // ClientID - The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret of the google application used to acquire the refresh token. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // Email - The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. - Email interface{} `json:"email,omitempty"` - // KeyFilePath - 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. - KeyFilePath interface{} `json:"keyFilePath,omitempty"` - // TrustedCertPath - 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. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsLinkedServiceTypeProperties struct. -func (gawlstp *GoogleAdWordsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "clientCustomerID": + case "wildcardFolderPath": if v != nil { - var clientCustomerID interface{} - err = json.Unmarshal(*v, &clientCustomerID) + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) if err != nil { return err } - gawlstp.ClientCustomerID = clientCustomerID + frs.WildcardFolderPath = wildcardFolderPath } - case "developerToken": + case "wildcardFileName": if v != nil { - developerToken, err := unmarshalBasicSecretBase(*v) + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) if err != nil { return err } - gawlstp.DeveloperToken = developerToken + frs.WildcardFileName = wildcardFileName } - case "authenticationType": + case "enablePartitionDiscovery": if v != nil { - var authenticationType GoogleAdWordsAuthenticationType - err = json.Unmarshal(*v, &authenticationType) + var enablePartitionDiscovery bool + err = json.Unmarshal(*v, &enablePartitionDiscovery) if err != nil { return err } - gawlstp.AuthenticationType = authenticationType + frs.EnablePartitionDiscovery = &enablePartitionDiscovery } - case "refreshToken": + case "partitionRootPath": if v != nil { - refreshToken, err := unmarshalBasicSecretBase(*v) + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) if err != nil { return err } - gawlstp.RefreshToken = refreshToken + frs.PartitionRootPath = partitionRootPath } - case "clientId": + case "deleteFilesAfterCompletion": if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) if err != nil { return err } - gawlstp.ClientID = clientID + frs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion } - case "clientSecret": + case "fileListPath": if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) if err != nil { return err } - gawlstp.ClientSecret = clientSecret + frs.FileListPath = fileListPath } - case "email": + case "useBinaryTransfer": if v != nil { - var email interface{} - err = json.Unmarshal(*v, &email) + var useBinaryTransfer bool + err = json.Unmarshal(*v, &useBinaryTransfer) if err != nil { return err } - gawlstp.Email = email + frs.UseBinaryTransfer = &useBinaryTransfer } - case "keyFilePath": + default: if v != nil { - var keyFilePath interface{} - err = json.Unmarshal(*v, &keyFilePath) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - gawlstp.KeyFilePath = keyFilePath - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err + if frs.AdditionalProperties == nil { + frs.AdditionalProperties = make(map[string]interface{}) } - gawlstp.TrustedCertPath = trustedCertPath + frs.AdditionalProperties[k] = additionalProperties } - case "useSystemTrustStore": + case "maxConcurrentConnections": if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - gawlstp.UseSystemTrustStore = useSystemTrustStore + frs.MaxConcurrentConnections = maxConcurrentConnections } - case "encryptedCredential": + case "type": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - gawlstp.EncryptedCredential = encryptedCredential + frs.Type = typeVar } } } @@ -102575,544 +100641,564 @@ func (gawlstp *GoogleAdWordsLinkedServiceTypeProperties) UnmarshalJSON(body []by return nil } -// GoogleAdWordsObjectDataset google AdWords service dataset. -type GoogleAdWordsObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` +// FtpServerLinkedService a FTP server Linked Service. +type FtpServerLinkedService struct { + // FtpServerLinkedServiceTypeProperties - Properties specific to this linked service type. + *FtpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. + // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) MarshalJSON() ([]byte, error) { - gawod.Type = TypeGoogleAdWordsObject +// MarshalJSON is the custom marshaler for FtpServerLinkedService. +func (fsls FtpServerLinkedService) MarshalJSON() ([]byte, error) { + fsls.Type = TypeFtpServer objectMap := make(map[string]interface{}) - if gawod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = gawod.GenericDatasetTypeProperties - } - if gawod.Description != nil { - objectMap["description"] = gawod.Description - } - if gawod.Structure != nil { - objectMap["structure"] = gawod.Structure - } - if gawod.Schema != nil { - objectMap["schema"] = gawod.Schema + if fsls.FtpServerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = fsls.FtpServerLinkedServiceTypeProperties } - if gawod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gawod.LinkedServiceName + if fsls.ConnectVia != nil { + objectMap["connectVia"] = fsls.ConnectVia } - if gawod.Parameters != nil { - objectMap["parameters"] = gawod.Parameters + if fsls.Description != nil { + objectMap["description"] = fsls.Description } - if gawod.Annotations != nil { - objectMap["annotations"] = gawod.Annotations + if fsls.Parameters != nil { + objectMap["parameters"] = fsls.Parameters } - if gawod.Folder != nil { - objectMap["folder"] = gawod.Folder + if fsls.Annotations != nil { + objectMap["annotations"] = fsls.Annotations } - if gawod.Type != "" { - objectMap["type"] = gawod.Type + if fsls.Type != "" { + objectMap["type"] = fsls.Type } - for k, v := range gawod.AdditionalProperties { + for k, v := range fsls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return &gawod, true +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return &fsls, true +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDataset() (*Dataset, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &gawod, true +// AsSQLServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsObjectDataset struct. -func (gawod *GoogleAdWordsObjectDataset) UnmarshalJSON(body []byte) error { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &fsls, true +} + +// UnmarshalJSON is the custom unmarshaler for FtpServerLinkedService struct. +func (fsls *FtpServerLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -103122,12 +101208,12 @@ func (gawod *GoogleAdWordsObjectDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) + var ftpServerLinkedServiceTypeProperties FtpServerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &ftpServerLinkedServiceTypeProperties) if err != nil { return err } - gawod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + fsls.FtpServerLinkedServiceTypeProperties = &ftpServerLinkedServiceTypeProperties } default: if v != nil { @@ -103136,46 +101222,28 @@ func (gawod *GoogleAdWordsObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if gawod.AdditionalProperties == nil { - gawod.AdditionalProperties = make(map[string]interface{}) - } - gawod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gawod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err + if fsls.AdditionalProperties == nil { + fsls.AdditionalProperties = make(map[string]interface{}) } - gawod.Structure = structure + fsls.AdditionalProperties[k] = additionalProperties } - case "schema": + case "connectVia": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - gawod.Schema = schema + fsls.ConnectVia = &connectVia } - case "linkedServiceName": + case "description": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - gawod.LinkedServiceName = &linkedServiceName + fsls.Description = &description } case "parameters": if v != nil { @@ -103183,575 +101251,619 @@ func (gawod *GoogleAdWordsObjectDataset) UnmarshalJSON(body []byte) error { err = json.Unmarshal(*v, ¶meters) if err != nil { return err - } - gawod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gawod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - gawod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gawod.Type = typeVar - } - } - } - - return nil -} - -// GoogleAdWordsSource a copy activity Google AdWords service source. -type GoogleAdWordsSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) MarshalJSON() ([]byte, error) { - gaws.Type = TypeGoogleAdWordsSource - objectMap := make(map[string]interface{}) - if gaws.Query != nil { - objectMap["query"] = gaws.Query - } - if gaws.QueryTimeout != nil { - objectMap["queryTimeout"] = gaws.QueryTimeout - } - if gaws.AdditionalColumns != nil { - objectMap["additionalColumns"] = gaws.AdditionalColumns - } - if gaws.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = gaws.SourceRetryCount - } - if gaws.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = gaws.SourceRetryWait - } - if gaws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = gaws.MaxConcurrentConnections - } - if gaws.Type != "" { - objectMap["type"] = gaws.Type - } - for k, v := range gaws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} + } + fsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + fsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsls.Type = typeVar + } + } + } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false + return nil } -// AsBlobSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsBlobSource() (*BlobSource, bool) { - return nil, false +// FtpServerLinkedServiceTypeProperties properties specific to this linked service type. +type FtpServerLinkedServiceTypeProperties struct { + // Host - Host name of the FTP server. Type: string (or Expression with resultType string). + Host interface{} `json:"host,omitempty"` + // Port - 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. + Port interface{} `json:"port,omitempty"` + // AuthenticationType - The authentication type to be used to connect to the FTP server. Possible values include: 'FtpAuthenticationTypeBasic', 'FtpAuthenticationTypeAnonymous' + AuthenticationType FtpAuthenticationType `json:"authenticationType,omitempty"` + // UserName - Username to logon the FTP server. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to logon the FTP server. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // EnableSsl - If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). + EnableSsl interface{} `json:"enableSsl,omitempty"` + // EnableServerCertificateValidation - 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). + EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` } -// AsAmazonRedshiftSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for FtpServerLinkedServiceTypeProperties struct. +func (fslstp *FtpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + fslstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + fslstp.Port = port + } + case "authenticationType": + if v != nil { + var authenticationType FtpAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + fslstp.AuthenticationType = authenticationType + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + fslstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + fslstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + fslstp.EncryptedCredential = encryptedCredential + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + fslstp.EnableSsl = enableSsl + } + case "enableServerCertificateValidation": + if v != nil { + var enableServerCertificateValidation interface{} + err = json.Unmarshal(*v, &enableServerCertificateValidation) + if err != nil { + return err + } + fslstp.EnableServerCertificateValidation = enableServerCertificateValidation + } + } + } -// AsGoogleAdWordsSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return &gaws, true + return nil } -// AsOracleServiceCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false +// FtpServerLocation the location of ftp server dataset. +type FtpServerLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` } -// AsDynamicsAXSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for FtpServerLocation. +func (fsl FtpServerLocation) MarshalJSON() ([]byte, error) { + fsl.Type = TypeFtpServerLocation + objectMap := make(map[string]interface{}) + if fsl.FolderPath != nil { + objectMap["folderPath"] = fsl.FolderPath + } + if fsl.FileName != nil { + objectMap["fileName"] = fsl.FileName + } + if fsl.Type != "" { + objectMap["type"] = fsl.Type + } + for k, v := range fsl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsResponsysSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsHdfsLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsHTTPServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsVerticaSource() (*VerticaSource, bool) { +// AsSftpLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsSftpLocation() (*SftpLocation, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false +// AsFtpServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return &fsl, true } -// AsZohoSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsZohoSource() (*ZohoSource, bool) { +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsXeroSource() (*XeroSource, bool) { +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSquareSource() (*SquareSource, bool) { +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSparkSource() (*SparkSource, bool) { +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsShopifySource() (*ShopifySource, bool) { +// AsFileServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAmazonS3Location is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsPrestoSource() (*PrestoSource, bool) { +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsPaypalSource() (*PaypalSource, bool) { +// AsDatasetLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &fsl, true } -// AsAzureMariaDBSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for FtpServerLocation struct. +func (fsl *FtpServerLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsl.AdditionalProperties == nil { + fsl.AdditionalProperties = make(map[string]interface{}) + } + fsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + fsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + fsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsl.Type = typeVar + } + } + } -// AsMariaDBSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false + return nil } -// AsMagentoSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false +// GenericDatasetTypeProperties properties specific to this dataset type. +type GenericDatasetTypeProperties struct { + // TableName - The table name. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` } -// AsJiraSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsJiraSource() (*JiraSource, bool) { - return nil, false +// GetDataFactoryOperationStatusResponse response body structure for get data factory operation status. +type GetDataFactoryOperationStatusResponse struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Status - Status of the operation. + Status *string `json:"status,omitempty"` } -// AsImpalaSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for GetDataFactoryOperationStatusResponse. +func (gdfosr GetDataFactoryOperationStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if gdfosr.Status != nil { + objectMap["status"] = gdfosr.Status + } + for k, v := range gdfosr.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsHubspotSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for GetDataFactoryOperationStatusResponse struct. +func (gdfosr *GetDataFactoryOperationStatusResponse) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gdfosr.AdditionalProperties == nil { + gdfosr.AdditionalProperties = make(map[string]interface{}) + } + gdfosr.AdditionalProperties[k] = additionalProperties + } + case "status": + if v != nil { + var status string + err = json.Unmarshal(*v, &status) + if err != nil { + return err + } + gdfosr.Status = &status + } + } + } -// AsHiveSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsHiveSource() (*HiveSource, bool) { - return nil, false + return nil } -// AsHBaseSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false +// GetMetadataActivity activity to get metadata of dataset +type GetMetadataActivity struct { + // GetMetadataActivityTypeProperties - GetMetadata activity properties. + *GetMetadataActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// AsGreenplumSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for GetMetadataActivity. +func (gma GetMetadataActivity) MarshalJSON() ([]byte, error) { + gma.Type = TypeGetMetadata + objectMap := make(map[string]interface{}) + if gma.GetMetadataActivityTypeProperties != nil { + objectMap["typeProperties"] = gma.GetMetadataActivityTypeProperties + } + if gma.LinkedServiceName != nil { + objectMap["linkedServiceName"] = gma.LinkedServiceName + } + if gma.Policy != nil { + objectMap["policy"] = gma.Policy + } + if gma.Name != nil { + objectMap["name"] = gma.Name + } + if gma.Description != nil { + objectMap["description"] = gma.Description + } + if gma.DependsOn != nil { + objectMap["dependsOn"] = gma.DependsOn + } + if gma.UserProperties != nil { + objectMap["userProperties"] = gma.UserProperties + } + if gma.Type != "" { + objectMap["type"] = gma.Type + } + for k, v := range gma.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsGoogleBigQuerySource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsEloquaSource() (*EloquaSource, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDrillSource() (*DrillSource, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsConcurSource() (*ConcurSource, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCassandraSource() (*CassandraSource, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsTeradataSource() (*TeradataSource, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false +// AsGetMetadataActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return &gma, true } -// AsSQLDWSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsWebActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSQLMISource() (*SQLMISource, bool) { +// AsLookupActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsDeleteActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapTableSource() (*SapTableSource, bool) { +// AsCustomActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapEccSource() (*SapEccSource, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapBwSource() (*SapBwSource, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSybaseSource() (*SybaseSource, bool) { +// AsCopyActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsExecutionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false +// AsBasicExecutionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &gma, true } -// AsOdbcSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsOdbcSource() (*OdbcSource, bool) { +// AsWebHookActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDb2Source() (*Db2Source, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsInformixSource() (*InformixSource, bool) { +// AsSetVariableActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsFilterActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsTabularSource() (*TabularSource, bool) { +// AsValidationActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &gaws, true -} - -// AsBinarySource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsBinarySource() (*BinarySource, bool) { +// AsUntilActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsOrcSource() (*OrcSource, bool) { +// AsWaitActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsXMLSource() (*XMLSource, bool) { +// AsForEachActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsJSONSource() (*JSONSource, bool) { +// AsSwitchActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsIfConditionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsParquetSource() (*ParquetSource, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsExcelSource() (*ExcelSource, bool) { +// AsControlActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAvroSource() (*AvroSource, bool) { +// AsBasicControlActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsBasicControlActivity() (BasicControlActivity, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCopySource() (*CopySource, bool) { +// AsActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsBasicCopySource() (BasicCopySource, bool) { - return &gaws, true +// AsBasicActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsBasicActivity() (BasicActivity, bool) { + return &gma, true } -// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsSource struct. -func (gaws *GoogleAdWordsSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GetMetadataActivity struct. +func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -103759,32 +101871,32 @@ func (gaws *GoogleAdWordsSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var getMetadataActivityTypeProperties GetMetadataActivityTypeProperties + err = json.Unmarshal(*v, &getMetadataActivityTypeProperties) if err != nil { return err } - gaws.Query = query + gma.GetMetadataActivityTypeProperties = &getMetadataActivityTypeProperties } - case "queryTimeout": + case "linkedServiceName": if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - gaws.QueryTimeout = queryTimeout + gma.LinkedServiceName = &linkedServiceName } - case "additionalColumns": + case "policy": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) if err != nil { return err } - gaws.AdditionalColumns = &additionalColumns + gma.Policy = &policy } default: if v != nil { @@ -103793,46 +101905,55 @@ func (gaws *GoogleAdWordsSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if gaws.AdditionalProperties == nil { - gaws.AdditionalProperties = make(map[string]interface{}) + if gma.AdditionalProperties == nil { + gma.AdditionalProperties = make(map[string]interface{}) } - gaws.AdditionalProperties[k] = additionalProperties + gma.AdditionalProperties[k] = additionalProperties } - case "sourceRetryCount": + case "name": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - gaws.SourceRetryCount = sourceRetryCount + gma.Name = &name } - case "sourceRetryWait": + case "description": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - gaws.SourceRetryWait = sourceRetryWait + gma.Description = &description } - case "maxConcurrentConnections": + case "dependsOn": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) if err != nil { return err } - gaws.MaxConcurrentConnections = maxConcurrentConnections + gma.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + gma.UserProperties = &userProperties } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicActivity err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - gaws.Type = typeVar + gma.Type = typeVar } } } @@ -103840,20 +101961,102 @@ func (gaws *GoogleAdWordsSource) UnmarshalJSON(body []byte) error { return nil } -// GoogleBigQueryDatasetTypeProperties google BigQuery Dataset Properties -type GoogleBigQueryDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using database + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Google BigQuery. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Dataset - The database name of the Google BigQuery. Type: string (or Expression with resultType string). - Dataset interface{} `json:"dataset,omitempty"` +// GetMetadataActivityTypeProperties getMetadata activity properties. +type GetMetadataActivityTypeProperties struct { + // Dataset - GetMetadata activity dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` + // FieldList - Fields of metadata to get from dataset. + FieldList *[]interface{} `json:"fieldList,omitempty"` + // StoreSettings - GetMetadata activity store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // FormatSettings - GetMetadata activity format settings. + FormatSettings BasicFormatReadSettings `json:"formatSettings,omitempty"` } -// GoogleBigQueryLinkedService google BigQuery service linked service. -type GoogleBigQueryLinkedService struct { - // GoogleBigQueryLinkedServiceTypeProperties - Google BigQuery service linked service properties. - *GoogleBigQueryLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// UnmarshalJSON is the custom unmarshaler for GetMetadataActivityTypeProperties struct. +func (gmatp *GetMetadataActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "dataset": + if v != nil { + var dataset DatasetReference + err = json.Unmarshal(*v, &dataset) + if err != nil { + return err + } + gmatp.Dataset = &dataset + } + case "fieldList": + if v != nil { + var fieldList []interface{} + err = json.Unmarshal(*v, &fieldList) + if err != nil { + return err + } + gmatp.FieldList = &fieldList + } + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + gmatp.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + formatSettings, err := unmarshalBasicFormatReadSettings(*v) + if err != nil { + return err + } + gmatp.FormatSettings = formatSettings + } + } + } + + return nil +} + +// GetSsisObjectMetadataRequest the request payload of get SSIS object metadata. +type GetSsisObjectMetadataRequest struct { + // MetadataPath - Metadata path. + MetadataPath *string `json:"metadataPath,omitempty"` +} + +// GitHubAccessTokenRequest get GitHub access token request definition. +type GitHubAccessTokenRequest struct { + // GitHubAccessCode - GitHub access code. + GitHubAccessCode *string `json:"gitHubAccessCode,omitempty"` + // GitHubClientID - GitHub application client ID. + GitHubClientID *string `json:"gitHubClientId,omitempty"` + // GitHubAccessTokenBaseURL - GitHub access token base URL. + GitHubAccessTokenBaseURL *string `json:"gitHubAccessTokenBaseUrl,omitempty"` +} + +// GitHubAccessTokenResponse get GitHub access token response definition. +type GitHubAccessTokenResponse struct { + autorest.Response `json:"-"` + // GitHubAccessToken - GitHub access token. + GitHubAccessToken *string `json:"gitHubAccessToken,omitempty"` +} + +// GlobalParameterSpecification definition of a single parameter for an entity. +type GlobalParameterSpecification struct { + // Type - Global Parameter type. Possible values include: 'Object', 'String', 'Int', 'Float', 'Bool', 'Array' + Type GlobalParameterType `json:"type,omitempty"` + // Value - Value of parameter. + Value interface{} `json:"value,omitempty"` +} + +// GoogleAdWordsLinkedService google AdWords service linked service. +type GoogleAdWordsLinkedService struct { + // GoogleAdWordsLinkedServiceTypeProperties - Google AdWords service linked service properties. + *GoogleAdWordsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -103868,546 +102071,546 @@ type GoogleBigQueryLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) MarshalJSON() ([]byte, error) { - gbqls.Type = TypeGoogleBigQuery +// MarshalJSON is the custom marshaler for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) MarshalJSON() ([]byte, error) { + gawls.Type = TypeGoogleAdWords objectMap := make(map[string]interface{}) - if gbqls.GoogleBigQueryLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gbqls.GoogleBigQueryLinkedServiceTypeProperties + if gawls.GoogleAdWordsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = gawls.GoogleAdWordsLinkedServiceTypeProperties } - if gbqls.ConnectVia != nil { - objectMap["connectVia"] = gbqls.ConnectVia + if gawls.ConnectVia != nil { + objectMap["connectVia"] = gawls.ConnectVia } - if gbqls.Description != nil { - objectMap["description"] = gbqls.Description + if gawls.Description != nil { + objectMap["description"] = gawls.Description } - if gbqls.Parameters != nil { - objectMap["parameters"] = gbqls.Parameters + if gawls.Parameters != nil { + objectMap["parameters"] = gawls.Parameters } - if gbqls.Annotations != nil { - objectMap["annotations"] = gbqls.Annotations + if gawls.Annotations != nil { + objectMap["annotations"] = gawls.Annotations } - if gbqls.Type != "" { - objectMap["type"] = gbqls.Type + if gawls.Type != "" { + objectMap["type"] = gawls.Type } - for k, v := range gbqls.AdditionalProperties { + for k, v := range gawls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return &gawls, true } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return &gbqls, true +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gbqls, true +// AsBasicLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &gawls, true } -// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryLinkedService struct. -func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsLinkedService struct. +func (gawls *GoogleAdWordsLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -104417,12 +102620,12 @@ func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var googleBigQueryLinkedServiceTypeProperties GoogleBigQueryLinkedServiceTypeProperties - err = json.Unmarshal(*v, &googleBigQueryLinkedServiceTypeProperties) + var googleAdWordsLinkedServiceTypeProperties GoogleAdWordsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &googleAdWordsLinkedServiceTypeProperties) if err != nil { return err } - gbqls.GoogleBigQueryLinkedServiceTypeProperties = &googleBigQueryLinkedServiceTypeProperties + gawls.GoogleAdWordsLinkedServiceTypeProperties = &googleAdWordsLinkedServiceTypeProperties } default: if v != nil { @@ -104431,10 +102634,10 @@ func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if gbqls.AdditionalProperties == nil { - gbqls.AdditionalProperties = make(map[string]interface{}) + if gawls.AdditionalProperties == nil { + gawls.AdditionalProperties = make(map[string]interface{}) } - gbqls.AdditionalProperties[k] = additionalProperties + gawls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -104443,7 +102646,7 @@ func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqls.ConnectVia = &connectVia + gawls.ConnectVia = &connectVia } case "description": if v != nil { @@ -104452,7 +102655,7 @@ func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqls.Description = &description + gawls.Description = &description } case "parameters": if v != nil { @@ -104461,7 +102664,7 @@ func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqls.Parameters = parameters + gawls.Parameters = parameters } case "annotations": if v != nil { @@ -104470,7 +102673,7 @@ func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqls.Annotations = &annotations + gawls.Annotations = &annotations } case "type": if v != nil { @@ -104479,7 +102682,7 @@ func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqls.Type = typeVar + gawls.Type = typeVar } } } @@ -104487,17 +102690,15 @@ func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { return nil } -// GoogleBigQueryLinkedServiceTypeProperties google BigQuery service linked service properties. -type GoogleBigQueryLinkedServiceTypeProperties struct { - // Project - The default BigQuery project to query against. - Project interface{} `json:"project,omitempty"` - // AdditionalProjects - A comma-separated list of public BigQuery projects to access. - AdditionalProjects interface{} `json:"additionalProjects,omitempty"` - // RequestGoogleDriveScope - 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. - RequestGoogleDriveScope interface{} `json:"requestGoogleDriveScope,omitempty"` - // AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'GoogleBigQueryAuthenticationTypeServiceAuthentication', 'GoogleBigQueryAuthenticationTypeUserAuthentication' - AuthenticationType GoogleBigQueryAuthenticationType `json:"authenticationType,omitempty"` - // RefreshToken - The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. +// GoogleAdWordsLinkedServiceTypeProperties google AdWords service linked service properties. +type GoogleAdWordsLinkedServiceTypeProperties struct { + // ClientCustomerID - The Client customer ID of the AdWords account that you want to fetch report data for. + ClientCustomerID interface{} `json:"clientCustomerID,omitempty"` + // DeveloperToken - The developer token associated with the manager account that you use to grant access to the AdWords API. + DeveloperToken BasicSecretBase `json:"developerToken,omitempty"` + // AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'ServiceAuthentication', 'UserAuthentication' + AuthenticationType GoogleAdWordsAuthenticationType `json:"authenticationType,omitempty"` + // RefreshToken - The refresh token obtained from Google for authorizing access to AdWords for UserAuthentication. RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` // ClientID - The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` @@ -104515,8 +102716,8 @@ type GoogleBigQueryLinkedServiceTypeProperties struct { EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryLinkedServiceTypeProperties struct. -func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsLinkedServiceTypeProperties struct. +func (gawlstp *GoogleAdWordsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -104524,41 +102725,31 @@ func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []b } for k, v := range m { switch k { - case "project": - if v != nil { - var project interface{} - err = json.Unmarshal(*v, &project) - if err != nil { - return err - } - gbqlstp.Project = project - } - case "additionalProjects": + case "clientCustomerID": if v != nil { - var additionalProjects interface{} - err = json.Unmarshal(*v, &additionalProjects) + var clientCustomerID interface{} + err = json.Unmarshal(*v, &clientCustomerID) if err != nil { return err } - gbqlstp.AdditionalProjects = additionalProjects + gawlstp.ClientCustomerID = clientCustomerID } - case "requestGoogleDriveScope": + case "developerToken": if v != nil { - var requestGoogleDriveScope interface{} - err = json.Unmarshal(*v, &requestGoogleDriveScope) + developerToken, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - gbqlstp.RequestGoogleDriveScope = requestGoogleDriveScope + gawlstp.DeveloperToken = developerToken } case "authenticationType": if v != nil { - var authenticationType GoogleBigQueryAuthenticationType + var authenticationType GoogleAdWordsAuthenticationType err = json.Unmarshal(*v, &authenticationType) if err != nil { return err } - gbqlstp.AuthenticationType = authenticationType + gawlstp.AuthenticationType = authenticationType } case "refreshToken": if v != nil { @@ -104566,7 +102757,7 @@ func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []b if err != nil { return err } - gbqlstp.RefreshToken = refreshToken + gawlstp.RefreshToken = refreshToken } case "clientId": if v != nil { @@ -104575,7 +102766,7 @@ func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []b if err != nil { return err } - gbqlstp.ClientID = clientID + gawlstp.ClientID = clientID } case "clientSecret": if v != nil { @@ -104583,7 +102774,7 @@ func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []b if err != nil { return err } - gbqlstp.ClientSecret = clientSecret + gawlstp.ClientSecret = clientSecret } case "email": if v != nil { @@ -104592,7 +102783,7 @@ func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []b if err != nil { return err } - gbqlstp.Email = email + gawlstp.Email = email } case "keyFilePath": if v != nil { @@ -104601,7 +102792,7 @@ func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []b if err != nil { return err } - gbqlstp.KeyFilePath = keyFilePath + gawlstp.KeyFilePath = keyFilePath } case "trustedCertPath": if v != nil { @@ -104610,7 +102801,7 @@ func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []b if err != nil { return err } - gbqlstp.TrustedCertPath = trustedCertPath + gawlstp.TrustedCertPath = trustedCertPath } case "useSystemTrustStore": if v != nil { @@ -104619,7 +102810,7 @@ func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []b if err != nil { return err } - gbqlstp.UseSystemTrustStore = useSystemTrustStore + gawlstp.UseSystemTrustStore = useSystemTrustStore } case "encryptedCredential": if v != nil { @@ -104628,7 +102819,7 @@ func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []b if err != nil { return err } - gbqlstp.EncryptedCredential = encryptedCredential + gawlstp.EncryptedCredential = encryptedCredential } } } @@ -104636,10 +102827,10 @@ func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []b return nil } -// GoogleBigQueryObjectDataset google BigQuery service dataset. -type GoogleBigQueryObjectDataset struct { - // GoogleBigQueryDatasetTypeProperties - Properties specific to this dataset type. - *GoogleBigQueryDatasetTypeProperties `json:"typeProperties,omitempty"` +// GoogleAdWordsObjectDataset google AdWords service dataset. +type GoogleAdWordsObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -104660,520 +102851,520 @@ type GoogleBigQueryObjectDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) MarshalJSON() ([]byte, error) { - gbqod.Type = TypeGoogleBigQueryObject +// MarshalJSON is the custom marshaler for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) MarshalJSON() ([]byte, error) { + gawod.Type = TypeGoogleAdWordsObject objectMap := make(map[string]interface{}) - if gbqod.GoogleBigQueryDatasetTypeProperties != nil { - objectMap["typeProperties"] = gbqod.GoogleBigQueryDatasetTypeProperties + if gawod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = gawod.GenericDatasetTypeProperties } - if gbqod.Description != nil { - objectMap["description"] = gbqod.Description + if gawod.Description != nil { + objectMap["description"] = gawod.Description } - if gbqod.Structure != nil { - objectMap["structure"] = gbqod.Structure + if gawod.Structure != nil { + objectMap["structure"] = gawod.Structure } - if gbqod.Schema != nil { - objectMap["schema"] = gbqod.Schema + if gawod.Schema != nil { + objectMap["schema"] = gawod.Schema } - if gbqod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gbqod.LinkedServiceName + if gawod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = gawod.LinkedServiceName } - if gbqod.Parameters != nil { - objectMap["parameters"] = gbqod.Parameters + if gawod.Parameters != nil { + objectMap["parameters"] = gawod.Parameters } - if gbqod.Annotations != nil { - objectMap["annotations"] = gbqod.Annotations + if gawod.Annotations != nil { + objectMap["annotations"] = gawod.Annotations } - if gbqod.Folder != nil { - objectMap["folder"] = gbqod.Folder + if gawod.Folder != nil { + objectMap["folder"] = gawod.Folder } - if gbqod.Type != "" { - objectMap["type"] = gbqod.Type + if gawod.Type != "" { + objectMap["type"] = gawod.Type } - for k, v := range gbqod.AdditionalProperties { + for k, v := range gawod.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return &gawod, true } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return &gbqod, true +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &gbqod, true +// AsBasicDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &gawod, true } -// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryObjectDataset struct. -func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsObjectDataset struct. +func (gawod *GoogleAdWordsObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -105183,12 +103374,12 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var googleBigQueryDatasetTypeProperties GoogleBigQueryDatasetTypeProperties - err = json.Unmarshal(*v, &googleBigQueryDatasetTypeProperties) + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) if err != nil { return err } - gbqod.GoogleBigQueryDatasetTypeProperties = &googleBigQueryDatasetTypeProperties + gawod.GenericDatasetTypeProperties = &genericDatasetTypeProperties } default: if v != nil { @@ -105197,10 +103388,10 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if gbqod.AdditionalProperties == nil { - gbqod.AdditionalProperties = make(map[string]interface{}) + if gawod.AdditionalProperties == nil { + gawod.AdditionalProperties = make(map[string]interface{}) } - gbqod.AdditionalProperties[k] = additionalProperties + gawod.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -105209,7 +103400,7 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqod.Description = &description + gawod.Description = &description } case "structure": if v != nil { @@ -105218,7 +103409,7 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqod.Structure = structure + gawod.Structure = structure } case "schema": if v != nil { @@ -105227,7 +103418,7 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqod.Schema = schema + gawod.Schema = schema } case "linkedServiceName": if v != nil { @@ -105236,7 +103427,7 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqod.LinkedServiceName = &linkedServiceName + gawod.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -105245,7 +103436,7 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqod.Parameters = parameters + gawod.Parameters = parameters } case "annotations": if v != nil { @@ -105254,7 +103445,7 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqod.Annotations = &annotations + gawod.Annotations = &annotations } case "folder": if v != nil { @@ -105263,7 +103454,7 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqod.Folder = &folder + gawod.Folder = &folder } case "type": if v != nil { @@ -105272,7 +103463,7 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqod.Type = typeVar + gawod.Type = typeVar } } } @@ -105280,8 +103471,8 @@ func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { return nil } -// GoogleBigQuerySource a copy activity Google BigQuery service source. -type GoogleBigQuerySource struct { +// GoogleAdWordsSource a copy activity Google AdWords service source. +type GoogleAdWordsSource struct { // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). @@ -105300,519 +103491,519 @@ type GoogleBigQuerySource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) MarshalJSON() ([]byte, error) { - gbqs.Type = TypeGoogleBigQuerySource +// MarshalJSON is the custom marshaler for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) MarshalJSON() ([]byte, error) { + gaws.Type = TypeGoogleAdWordsSource objectMap := make(map[string]interface{}) - if gbqs.Query != nil { - objectMap["query"] = gbqs.Query + if gaws.Query != nil { + objectMap["query"] = gaws.Query } - if gbqs.QueryTimeout != nil { - objectMap["queryTimeout"] = gbqs.QueryTimeout + if gaws.QueryTimeout != nil { + objectMap["queryTimeout"] = gaws.QueryTimeout } - if gbqs.AdditionalColumns != nil { - objectMap["additionalColumns"] = gbqs.AdditionalColumns + if gaws.AdditionalColumns != nil { + objectMap["additionalColumns"] = gaws.AdditionalColumns } - if gbqs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = gbqs.SourceRetryCount + if gaws.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = gaws.SourceRetryCount } - if gbqs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = gbqs.SourceRetryWait + if gaws.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = gaws.SourceRetryWait } - if gbqs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = gbqs.MaxConcurrentConnections + if gaws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = gaws.MaxConcurrentConnections } - if gbqs.Type != "" { - objectMap["type"] = gbqs.Type + if gaws.Type != "" { + objectMap["type"] = gaws.Type } - for k, v := range gbqs.AdditionalProperties { + for k, v := range gaws.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false +// AsGoogleAdWordsSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return &gaws, true } -// AsOracleServiceCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return &gbqs, true +// AsGoogleBigQuerySource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false } -// AsEloquaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &gbqs, true +// AsBasicTabularSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &gaws, true } -// AsBinarySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsBasicCopySource() (BasicCopySource, bool) { - return &gbqs, true +// AsBasicCopySource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsBasicCopySource() (BasicCopySource, bool) { + return &gaws, true } -// UnmarshalJSON is the custom unmarshaler for GoogleBigQuerySource struct. -func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsSource struct. +func (gaws *GoogleAdWordsSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -105827,7 +104018,7 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqs.Query = query + gaws.Query = query } case "queryTimeout": if v != nil { @@ -105836,7 +104027,7 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqs.QueryTimeout = queryTimeout + gaws.QueryTimeout = queryTimeout } case "additionalColumns": if v != nil { @@ -105845,7 +104036,7 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqs.AdditionalColumns = &additionalColumns + gaws.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -105854,10 +104045,10 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if gbqs.AdditionalProperties == nil { - gbqs.AdditionalProperties = make(map[string]interface{}) + if gaws.AdditionalProperties == nil { + gaws.AdditionalProperties = make(map[string]interface{}) } - gbqs.AdditionalProperties[k] = additionalProperties + gaws.AdditionalProperties[k] = additionalProperties } case "sourceRetryCount": if v != nil { @@ -105866,7 +104057,7 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqs.SourceRetryCount = sourceRetryCount + gaws.SourceRetryCount = sourceRetryCount } case "sourceRetryWait": if v != nil { @@ -105875,7 +104066,7 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqs.SourceRetryWait = sourceRetryWait + gaws.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -105884,7 +104075,7 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqs.MaxConcurrentConnections = maxConcurrentConnections + gaws.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { @@ -105893,7 +104084,7 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gbqs.Type = typeVar + gaws.Type = typeVar } } } @@ -105901,10 +104092,20 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { return nil } -// GoogleCloudStorageLinkedService linked service for Google Cloud Storage. -type GoogleCloudStorageLinkedService struct { - // GoogleCloudStorageLinkedServiceTypeProperties - Google Cloud Storage linked service properties. - *GoogleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// GoogleBigQueryDatasetTypeProperties google BigQuery Dataset Properties +type GoogleBigQueryDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using database + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Google BigQuery. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Dataset - The database name of the Google BigQuery. Type: string (or Expression with resultType string). + Dataset interface{} `json:"dataset,omitempty"` +} + +// GoogleBigQueryLinkedService google BigQuery service linked service. +type GoogleBigQueryLinkedService struct { + // GoogleBigQueryLinkedServiceTypeProperties - Google BigQuery service linked service properties. + *GoogleBigQueryLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -105919,1028 +104120,546 @@ type GoogleCloudStorageLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { - gcsls.Type = TypeGoogleCloudStorage +// MarshalJSON is the custom marshaler for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) MarshalJSON() ([]byte, error) { + gbqls.Type = TypeGoogleBigQuery objectMap := make(map[string]interface{}) - if gcsls.GoogleCloudStorageLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gcsls.GoogleCloudStorageLinkedServiceTypeProperties + if gbqls.GoogleBigQueryLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = gbqls.GoogleBigQueryLinkedServiceTypeProperties } - if gcsls.ConnectVia != nil { - objectMap["connectVia"] = gcsls.ConnectVia + if gbqls.ConnectVia != nil { + objectMap["connectVia"] = gbqls.ConnectVia } - if gcsls.Description != nil { - objectMap["description"] = gcsls.Description + if gbqls.Description != nil { + objectMap["description"] = gbqls.Description } - if gcsls.Parameters != nil { - objectMap["parameters"] = gcsls.Parameters + if gbqls.Parameters != nil { + objectMap["parameters"] = gbqls.Parameters } - if gcsls.Annotations != nil { - objectMap["annotations"] = gcsls.Annotations + if gbqls.Annotations != nil { + objectMap["annotations"] = gbqls.Annotations } - if gcsls.Type != "" { - objectMap["type"] = gcsls.Type + if gbqls.Type != "" { + objectMap["type"] = gbqls.Type } - for k, v := range gcsls.AdditionalProperties { + for k, v := range gbqls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return &gbqls, true } -// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return &gcsls, true -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gcsls, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLinkedService struct. -func (gcsls *GoogleCloudStorageLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var googleCloudStorageLinkedServiceTypeProperties GoogleCloudStorageLinkedServiceTypeProperties - err = json.Unmarshal(*v, &googleCloudStorageLinkedServiceTypeProperties) - if err != nil { - return err - } - gcsls.GoogleCloudStorageLinkedServiceTypeProperties = &googleCloudStorageLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gcsls.AdditionalProperties == nil { - gcsls.AdditionalProperties = make(map[string]interface{}) - } - gcsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - gcsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gcsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gcsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gcsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gcsls.Type = typeVar - } - } - } - - return nil -} - -// GoogleCloudStorageLinkedServiceTypeProperties google Cloud Storage linked service properties. -type GoogleCloudStorageLinkedServiceTypeProperties struct { - // AccessKeyID - The access key identifier of the Google Cloud Storage Identity and Access Management (IAM) user. Type: string (or Expression with resultType string). - AccessKeyID interface{} `json:"accessKeyId,omitempty"` - // SecretAccessKey - The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user. - SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` - // ServiceURL - 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). - ServiceURL interface{} `json:"serviceUrl,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLinkedServiceTypeProperties struct. -func (gcslstp *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accessKeyId": - if v != nil { - var accessKeyID interface{} - err = json.Unmarshal(*v, &accessKeyID) - if err != nil { - return err - } - gcslstp.AccessKeyID = accessKeyID - } - case "secretAccessKey": - if v != nil { - secretAccessKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gcslstp.SecretAccessKey = secretAccessKey - } - case "serviceUrl": - if v != nil { - var serviceURL interface{} - err = json.Unmarshal(*v, &serviceURL) - if err != nil { - return err - } - gcslstp.ServiceURL = serviceURL - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - gcslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// GoogleCloudStorageLocation the location of Google Cloud Storage dataset. -type GoogleCloudStorageLocation struct { - // BucketName - Specify the bucketName of Google Cloud Storage. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` - // Version - Specify the version of Google Cloud Storage. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) MarshalJSON() ([]byte, error) { - gcsl.Type = TypeGoogleCloudStorageLocation - objectMap := make(map[string]interface{}) - if gcsl.BucketName != nil { - objectMap["bucketName"] = gcsl.BucketName - } - if gcsl.Version != nil { - objectMap["version"] = gcsl.Version - } - if gcsl.FolderPath != nil { - objectMap["folderPath"] = gcsl.FolderPath - } - if gcsl.FileName != nil { - objectMap["fileName"] = gcsl.FileName - } - if gcsl.Type != "" { - objectMap["type"] = gcsl.Type - } - for k, v := range gcsl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsHdfsLocation() (*HdfsLocation, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsHTTPServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsSftpLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsSftpLocation() (*SftpLocation, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsFtpServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return &gcsl, true -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsFileServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsFileServerLocation() (*FileServerLocation, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAmazonS3Location is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsDatasetLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsDatasetLocation() (*DatasetLocation, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &gcsl, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLocation struct. -func (gcsl *GoogleCloudStorageLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "bucketName": - if v != nil { - var bucketName interface{} - err = json.Unmarshal(*v, &bucketName) - if err != nil { - return err - } - gcsl.BucketName = bucketName - } - case "version": - if v != nil { - var version interface{} - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - gcsl.Version = version - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gcsl.AdditionalProperties == nil { - gcsl.AdditionalProperties = make(map[string]interface{}) - } - gcsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - gcsl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - gcsl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gcsl.Type = typeVar - } - } - } - - return nil -} - -// GoogleCloudStorageReadSettings google Cloud Storage read settings. -type GoogleCloudStorageReadSettings struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // WildcardFolderPath - Google Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Google Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // Prefix - The prefix filter for the Google Cloud Storage object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` - // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` +// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { - gcsrs.Type = TypeGoogleCloudStorageReadSettings - objectMap := make(map[string]interface{}) - if gcsrs.Recursive != nil { - objectMap["recursive"] = gcsrs.Recursive - } - if gcsrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = gcsrs.WildcardFolderPath - } - if gcsrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = gcsrs.WildcardFileName - } - if gcsrs.Prefix != nil { - objectMap["prefix"] = gcsrs.Prefix - } - if gcsrs.FileListPath != nil { - objectMap["fileListPath"] = gcsrs.FileListPath - } - if gcsrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = gcsrs.EnablePartitionDiscovery - } - if gcsrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = gcsrs.PartitionRootPath - } - if gcsrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = gcsrs.DeleteFilesAfterCompletion - } - if gcsrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = gcsrs.ModifiedDatetimeStart - } - if gcsrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = gcsrs.ModifiedDatetimeEnd - } - if gcsrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = gcsrs.MaxConcurrentConnections - } - if gcsrs.Type != "" { - objectMap["type"] = gcsrs.Type - } - for k, v := range gcsrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false } -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsSftpReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsFtpReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return &gcsrs, true +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false } -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { +// AsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &gcsrs, true +// AsBasicLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &gbqls, true } -// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageReadSettings struct. -func (gcsrs *GoogleCloudStorageReadSettings) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryLinkedService struct. +func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -106948,125 +104667,220 @@ func (gcsrs *GoogleCloudStorageReadSettings) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "recursive": + case "typeProperties": if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) + var googleBigQueryLinkedServiceTypeProperties GoogleBigQueryLinkedServiceTypeProperties + err = json.Unmarshal(*v, &googleBigQueryLinkedServiceTypeProperties) if err != nil { return err } - gcsrs.Recursive = recursive + gbqls.GoogleBigQueryLinkedServiceTypeProperties = &googleBigQueryLinkedServiceTypeProperties } - case "wildcardFolderPath": + default: if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - gcsrs.WildcardFolderPath = wildcardFolderPath + if gbqls.AdditionalProperties == nil { + gbqls.AdditionalProperties = make(map[string]interface{}) + } + gbqls.AdditionalProperties[k] = additionalProperties } - case "wildcardFileName": + case "connectVia": if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - gcsrs.WildcardFileName = wildcardFileName + gbqls.ConnectVia = &connectVia } - case "prefix": + case "description": if v != nil { - var prefix interface{} - err = json.Unmarshal(*v, &prefix) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - gcsrs.Prefix = prefix + gbqls.Description = &description } - case "fileListPath": + case "parameters": if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - gcsrs.FileListPath = fileListPath + gbqls.Parameters = parameters } - case "enablePartitionDiscovery": + case "annotations": if v != nil { - var enablePartitionDiscovery bool - err = json.Unmarshal(*v, &enablePartitionDiscovery) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - gcsrs.EnablePartitionDiscovery = &enablePartitionDiscovery + gbqls.Annotations = &annotations } - case "partitionRootPath": + case "type": if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - gcsrs.PartitionRootPath = partitionRootPath + gbqls.Type = typeVar } - case "deleteFilesAfterCompletion": + } + } + + return nil +} + +// GoogleBigQueryLinkedServiceTypeProperties google BigQuery service linked service properties. +type GoogleBigQueryLinkedServiceTypeProperties struct { + // Project - The default BigQuery project to query against. + Project interface{} `json:"project,omitempty"` + // AdditionalProjects - A comma-separated list of public BigQuery projects to access. + AdditionalProjects interface{} `json:"additionalProjects,omitempty"` + // RequestGoogleDriveScope - 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. + RequestGoogleDriveScope interface{} `json:"requestGoogleDriveScope,omitempty"` + // AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'GoogleBigQueryAuthenticationTypeServiceAuthentication', 'GoogleBigQueryAuthenticationTypeUserAuthentication' + AuthenticationType GoogleBigQueryAuthenticationType `json:"authenticationType,omitempty"` + // RefreshToken - The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. + RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` + // ClientID - The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType string). + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret of the google application used to acquire the refresh token. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // Email - The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. + Email interface{} `json:"email,omitempty"` + // KeyFilePath - 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. + KeyFilePath interface{} `json:"keyFilePath,omitempty"` + // TrustedCertPath - 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. + TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryLinkedServiceTypeProperties struct. +func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "project": if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + var project interface{} + err = json.Unmarshal(*v, &project) if err != nil { return err } - gcsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + gbqlstp.Project = project } - case "modifiedDatetimeStart": + case "additionalProjects": if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) + var additionalProjects interface{} + err = json.Unmarshal(*v, &additionalProjects) if err != nil { return err } - gcsrs.ModifiedDatetimeStart = modifiedDatetimeStart + gbqlstp.AdditionalProjects = additionalProjects } - case "modifiedDatetimeEnd": + case "requestGoogleDriveScope": if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) + var requestGoogleDriveScope interface{} + err = json.Unmarshal(*v, &requestGoogleDriveScope) if err != nil { return err } - gcsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + gbqlstp.RequestGoogleDriveScope = requestGoogleDriveScope } - default: + case "authenticationType": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var authenticationType GoogleBigQueryAuthenticationType + err = json.Unmarshal(*v, &authenticationType) if err != nil { return err } - if gcsrs.AdditionalProperties == nil { - gcsrs.AdditionalProperties = make(map[string]interface{}) + gbqlstp.AuthenticationType = authenticationType + } + case "refreshToken": + if v != nil { + refreshToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err } - gcsrs.AdditionalProperties[k] = additionalProperties + gbqlstp.RefreshToken = refreshToken } - case "maxConcurrentConnections": + case "clientId": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var clientID interface{} + err = json.Unmarshal(*v, &clientID) if err != nil { return err } - gcsrs.MaxConcurrentConnections = maxConcurrentConnections + gbqlstp.ClientID = clientID } - case "type": + case "clientSecret": if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) + clientSecret, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - gcsrs.Type = typeVar + gbqlstp.ClientSecret = clientSecret + } + case "email": + if v != nil { + var email interface{} + err = json.Unmarshal(*v, &email) + if err != nil { + return err + } + gbqlstp.Email = email + } + case "keyFilePath": + if v != nil { + var keyFilePath interface{} + err = json.Unmarshal(*v, &keyFilePath) + if err != nil { + return err + } + gbqlstp.KeyFilePath = keyFilePath + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + gbqlstp.TrustedCertPath = trustedCertPath + } + case "useSystemTrustStore": + if v != nil { + var useSystemTrustStore interface{} + err = json.Unmarshal(*v, &useSystemTrustStore) + if err != nil { + return err + } + gbqlstp.UseSystemTrustStore = useSystemTrustStore + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + gbqlstp.EncryptedCredential = encryptedCredential } } } @@ -107074,574 +104888,544 @@ func (gcsrs *GoogleCloudStorageReadSettings) UnmarshalJSON(body []byte) error { return nil } -// GreenplumDatasetTypeProperties greenplum Dataset Properties -type GreenplumDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of Greenplum. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of Greenplum. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// GreenplumLinkedService greenplum Database linked service. -type GreenplumLinkedService struct { - // GreenplumLinkedServiceTypeProperties - Greenplum Database linked service properties. - *GreenplumLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// GoogleBigQueryObjectDataset google BigQuery service dataset. +type GoogleBigQueryObjectDataset struct { + // GoogleBigQueryDatasetTypeProperties - Properties specific to this dataset type. + *GoogleBigQueryDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. + // Description - Dataset description. Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. + // Annotations - List of tags that can be used for describing the Dataset. Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for GreenplumLinkedService. -func (gls GreenplumLinkedService) MarshalJSON() ([]byte, error) { - gls.Type = TypeGreenplum +// MarshalJSON is the custom marshaler for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) MarshalJSON() ([]byte, error) { + gbqod.Type = TypeGoogleBigQueryObject objectMap := make(map[string]interface{}) - if gls.GreenplumLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gls.GreenplumLinkedServiceTypeProperties + if gbqod.GoogleBigQueryDatasetTypeProperties != nil { + objectMap["typeProperties"] = gbqod.GoogleBigQueryDatasetTypeProperties } - if gls.ConnectVia != nil { - objectMap["connectVia"] = gls.ConnectVia + if gbqod.Description != nil { + objectMap["description"] = gbqod.Description } - if gls.Description != nil { - objectMap["description"] = gls.Description + if gbqod.Structure != nil { + objectMap["structure"] = gbqod.Structure } - if gls.Parameters != nil { - objectMap["parameters"] = gls.Parameters + if gbqod.Schema != nil { + objectMap["schema"] = gbqod.Schema } - if gls.Annotations != nil { - objectMap["annotations"] = gls.Annotations + if gbqod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = gbqod.LinkedServiceName } - if gls.Type != "" { - objectMap["type"] = gls.Type + if gbqod.Parameters != nil { + objectMap["parameters"] = gbqod.Parameters } - for k, v := range gls.AdditionalProperties { + if gbqod.Annotations != nil { + objectMap["annotations"] = gbqod.Annotations + } + if gbqod.Folder != nil { + objectMap["folder"] = gbqod.Folder + } + if gbqod.Type != "" { + objectMap["type"] = gbqod.Type + } + for k, v := range gbqod.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return &gls, true -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return &gbqod, true } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsDrillTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsHTTPDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsWebTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsRestResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsInformixTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsDb2TableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsOracleTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsODataResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsFileShareDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsOffice365Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCustomDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBinaryDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsOrcDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsXMLDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsJSONDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsParquetDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsExcelDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAvroDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gls, true +// AsBasicDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &gbqod, true } -// UnmarshalJSON is the custom unmarshaler for GreenplumLinkedService struct. -func (gls *GreenplumLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryObjectDataset struct. +func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -107651,12 +105435,12 @@ func (gls *GreenplumLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var greenplumLinkedServiceTypeProperties GreenplumLinkedServiceTypeProperties - err = json.Unmarshal(*v, &greenplumLinkedServiceTypeProperties) + var googleBigQueryDatasetTypeProperties GoogleBigQueryDatasetTypeProperties + err = json.Unmarshal(*v, &googleBigQueryDatasetTypeProperties) if err != nil { return err } - gls.GreenplumLinkedServiceTypeProperties = &greenplumLinkedServiceTypeProperties + gbqod.GoogleBigQueryDatasetTypeProperties = &googleBigQueryDatasetTypeProperties } default: if v != nil { @@ -107665,28 +105449,46 @@ func (gls *GreenplumLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if gls.AdditionalProperties == nil { - gls.AdditionalProperties = make(map[string]interface{}) + if gbqod.AdditionalProperties == nil { + gbqod.AdditionalProperties = make(map[string]interface{}) } - gls.AdditionalProperties[k] = additionalProperties + gbqod.AdditionalProperties[k] = additionalProperties } - case "connectVia": + case "description": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - gls.ConnectVia = &connectVia + gbqod.Description = &description } - case "description": + case "structure": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - gls.Description = &description + gbqod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + gbqod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + gbqod.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -107695,7 +105497,7 @@ func (gls *GreenplumLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - gls.Parameters = parameters + gbqod.Parameters = parameters } case "annotations": if v != nil { @@ -107704,16 +105506,25 @@ func (gls *GreenplumLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - gls.Annotations = &annotations + gbqod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + gbqod.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicLinkedService + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - gls.Type = typeVar + gbqod.Type = typeVar } } } @@ -107721,18 +105532,8 @@ func (gls *GreenplumLinkedService) UnmarshalJSON(body []byte) error { return nil } -// GreenplumLinkedServiceTypeProperties greenplum Database linked service properties. -type GreenplumLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Pwd - The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// GreenplumSource a copy activity Greenplum Database source. -type GreenplumSource struct { +// GoogleBigQuerySource a copy activity Google BigQuery service source. +type GoogleBigQuerySource struct { // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). @@ -107751,519 +105552,519 @@ type GreenplumSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for GreenplumSource. -func (gs GreenplumSource) MarshalJSON() ([]byte, error) { - gs.Type = TypeGreenplumSource +// MarshalJSON is the custom marshaler for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) MarshalJSON() ([]byte, error) { + gbqs.Type = TypeGoogleBigQuerySource objectMap := make(map[string]interface{}) - if gs.Query != nil { - objectMap["query"] = gs.Query + if gbqs.Query != nil { + objectMap["query"] = gbqs.Query } - if gs.QueryTimeout != nil { - objectMap["queryTimeout"] = gs.QueryTimeout + if gbqs.QueryTimeout != nil { + objectMap["queryTimeout"] = gbqs.QueryTimeout } - if gs.AdditionalColumns != nil { - objectMap["additionalColumns"] = gs.AdditionalColumns + if gbqs.AdditionalColumns != nil { + objectMap["additionalColumns"] = gbqs.AdditionalColumns } - if gs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = gs.SourceRetryCount + if gbqs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = gbqs.SourceRetryCount } - if gs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = gs.SourceRetryWait + if gbqs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = gbqs.SourceRetryWait } - if gs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = gs.MaxConcurrentConnections + if gbqs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = gbqs.MaxConcurrentConnections } - if gs.Type != "" { - objectMap["type"] = gs.Type + if gbqs.Type != "" { + objectMap["type"] = gbqs.Type } - for k, v := range gs.AdditionalProperties { + for k, v := range gbqs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsGreenplumSource() (*GreenplumSource, bool) { - return &gs, true +// AsGreenplumSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false +// AsGoogleBigQuerySource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return &gbqs, true } -// AsEloquaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &gs, true +// AsBasicTabularSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &gbqs, true } -// AsBinarySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsBasicCopySource() (BasicCopySource, bool) { - return &gs, true +// AsBasicCopySource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsBasicCopySource() (BasicCopySource, bool) { + return &gbqs, true } -// UnmarshalJSON is the custom unmarshaler for GreenplumSource struct. -func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GoogleBigQuerySource struct. +func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -108278,7 +106079,7 @@ func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gs.Query = query + gbqs.Query = query } case "queryTimeout": if v != nil { @@ -108287,7 +106088,7 @@ func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gs.QueryTimeout = queryTimeout + gbqs.QueryTimeout = queryTimeout } case "additionalColumns": if v != nil { @@ -108296,7 +106097,7 @@ func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gs.AdditionalColumns = &additionalColumns + gbqs.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -108305,10 +106106,10 @@ func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if gs.AdditionalProperties == nil { - gs.AdditionalProperties = make(map[string]interface{}) + if gbqs.AdditionalProperties == nil { + gbqs.AdditionalProperties = make(map[string]interface{}) } - gs.AdditionalProperties[k] = additionalProperties + gbqs.AdditionalProperties[k] = additionalProperties } case "sourceRetryCount": if v != nil { @@ -108317,7 +106118,7 @@ func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gs.SourceRetryCount = sourceRetryCount + gbqs.SourceRetryCount = sourceRetryCount } case "sourceRetryWait": if v != nil { @@ -108326,7 +106127,7 @@ func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gs.SourceRetryWait = sourceRetryWait + gbqs.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -108335,7 +106136,7 @@ func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gs.MaxConcurrentConnections = maxConcurrentConnections + gbqs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { @@ -108344,7 +106145,7 @@ func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - gs.Type = typeVar + gbqs.Type = typeVar } } } @@ -108352,544 +106153,1046 @@ func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { return nil } -// GreenplumTableDataset greenplum Database dataset. -type GreenplumTableDataset struct { - // GreenplumDatasetTypeProperties - Properties specific to this dataset type. - *GreenplumDatasetTypeProperties `json:"typeProperties,omitempty"` +// GoogleCloudStorageLinkedService linked service for Google Cloud Storage. +type GoogleCloudStorageLinkedService struct { + // GoogleCloudStorageLinkedServiceTypeProperties - Google Cloud Storage linked service properties. + *GoogleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. + // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for GreenplumTableDataset. -func (gtd GreenplumTableDataset) MarshalJSON() ([]byte, error) { - gtd.Type = TypeGreenplumTable +// MarshalJSON is the custom marshaler for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { + gcsls.Type = TypeGoogleCloudStorage objectMap := make(map[string]interface{}) - if gtd.GreenplumDatasetTypeProperties != nil { - objectMap["typeProperties"] = gtd.GreenplumDatasetTypeProperties - } - if gtd.Description != nil { - objectMap["description"] = gtd.Description - } - if gtd.Structure != nil { - objectMap["structure"] = gtd.Structure - } - if gtd.Schema != nil { - objectMap["schema"] = gtd.Schema + if gcsls.GoogleCloudStorageLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = gcsls.GoogleCloudStorageLinkedServiceTypeProperties } - if gtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gtd.LinkedServiceName + if gcsls.ConnectVia != nil { + objectMap["connectVia"] = gcsls.ConnectVia } - if gtd.Parameters != nil { - objectMap["parameters"] = gtd.Parameters + if gcsls.Description != nil { + objectMap["description"] = gcsls.Description } - if gtd.Annotations != nil { - objectMap["annotations"] = gtd.Annotations + if gcsls.Parameters != nil { + objectMap["parameters"] = gcsls.Parameters } - if gtd.Folder != nil { - objectMap["folder"] = gtd.Folder + if gcsls.Annotations != nil { + objectMap["annotations"] = gcsls.Annotations } - if gtd.Type != "" { - objectMap["type"] = gtd.Type + if gcsls.Type != "" { + objectMap["type"] = gcsls.Type } - for k, v := range gtd.AdditionalProperties { + for k, v := range gcsls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return >d, true +// AsJiraLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return &gcsls, true +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsBasicLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &gcsls, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLinkedService struct. +func (gcsls *GoogleCloudStorageLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var googleCloudStorageLinkedServiceTypeProperties GoogleCloudStorageLinkedServiceTypeProperties + err = json.Unmarshal(*v, &googleCloudStorageLinkedServiceTypeProperties) + if err != nil { + return err + } + gcsls.GoogleCloudStorageLinkedServiceTypeProperties = &googleCloudStorageLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gcsls.AdditionalProperties == nil { + gcsls.AdditionalProperties = make(map[string]interface{}) + } + gcsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + gcsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gcsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gcsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gcsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gcsls.Type = typeVar + } + } + } + + return nil +} + +// GoogleCloudStorageLinkedServiceTypeProperties google Cloud Storage linked service properties. +type GoogleCloudStorageLinkedServiceTypeProperties struct { + // AccessKeyID - The access key identifier of the Google Cloud Storage Identity and Access Management (IAM) user. Type: string (or Expression with resultType string). + AccessKeyID interface{} `json:"accessKeyId,omitempty"` + // SecretAccessKey - The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user. + SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` + // ServiceURL - 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). + ServiceURL interface{} `json:"serviceUrl,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLinkedServiceTypeProperties struct. +func (gcslstp *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "accessKeyId": + if v != nil { + var accessKeyID interface{} + err = json.Unmarshal(*v, &accessKeyID) + if err != nil { + return err + } + gcslstp.AccessKeyID = accessKeyID + } + case "secretAccessKey": + if v != nil { + secretAccessKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gcslstp.SecretAccessKey = secretAccessKey + } + case "serviceUrl": + if v != nil { + var serviceURL interface{} + err = json.Unmarshal(*v, &serviceURL) + if err != nil { + return err + } + gcslstp.ServiceURL = serviceURL + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + gcslstp.EncryptedCredential = encryptedCredential + } + } + } + + return nil +} + +// GoogleCloudStorageLocation the location of Google Cloud Storage dataset. +type GoogleCloudStorageLocation struct { + // BucketName - Specify the bucketName of Google Cloud Storage. Type: string (or Expression with resultType string) + BucketName interface{} `json:"bucketName,omitempty"` + // Version - Specify the version of Google Cloud Storage. Type: string (or Expression with resultType string). + Version interface{} `json:"version,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) MarshalJSON() ([]byte, error) { + gcsl.Type = TypeGoogleCloudStorageLocation + objectMap := make(map[string]interface{}) + if gcsl.BucketName != nil { + objectMap["bucketName"] = gcsl.BucketName + } + if gcsl.Version != nil { + objectMap["version"] = gcsl.Version + } + if gcsl.FolderPath != nil { + objectMap["folderPath"] = gcsl.FolderPath + } + if gcsl.FileName != nil { + objectMap["fileName"] = gcsl.FileName + } + if gcsl.Type != "" { + objectMap["type"] = gcsl.Type + } + for k, v := range gcsl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsHdfsLocation() (*HdfsLocation, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsHTTPServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsSftpLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsSftpLocation() (*SftpLocation, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsFtpServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return &gcsl, true } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsFileServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsFileServerLocation() (*FileServerLocation, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAmazonS3Location is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDatasetLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsDatasetLocation() (*DatasetLocation, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &gcsl, true } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLocation struct. +func (gcsl *GoogleCloudStorageLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "bucketName": + if v != nil { + var bucketName interface{} + err = json.Unmarshal(*v, &bucketName) + if err != nil { + return err + } + gcsl.BucketName = bucketName + } + case "version": + if v != nil { + var version interface{} + err = json.Unmarshal(*v, &version) + if err != nil { + return err + } + gcsl.Version = version + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gcsl.AdditionalProperties == nil { + gcsl.AdditionalProperties = make(map[string]interface{}) + } + gcsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + gcsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + gcsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gcsl.Type = typeVar + } + } + } -// AsCustomDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false + return nil } -// AsCassandraTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false +// GoogleCloudStorageReadSettings google Cloud Storage read settings. +type GoogleCloudStorageReadSettings struct { + // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + Recursive interface{} `json:"recursive,omitempty"` + // WildcardFolderPath - Google Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Google Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // Prefix - The prefix filter for the Google Cloud Storage object name. Type: string (or Expression with resultType string). + Prefix interface{} `json:"prefix,omitempty"` + // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). + FileListPath interface{} `json:"fileListPath,omitempty"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. + EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { + gcsrs.Type = TypeGoogleCloudStorageReadSettings + objectMap := make(map[string]interface{}) + if gcsrs.Recursive != nil { + objectMap["recursive"] = gcsrs.Recursive + } + if gcsrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = gcsrs.WildcardFolderPath + } + if gcsrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = gcsrs.WildcardFileName + } + if gcsrs.Prefix != nil { + objectMap["prefix"] = gcsrs.Prefix + } + if gcsrs.FileListPath != nil { + objectMap["fileListPath"] = gcsrs.FileListPath + } + if gcsrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = gcsrs.EnablePartitionDiscovery + } + if gcsrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = gcsrs.PartitionRootPath + } + if gcsrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = gcsrs.DeleteFilesAfterCompletion + } + if gcsrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = gcsrs.ModifiedDatetimeStart + } + if gcsrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = gcsrs.ModifiedDatetimeEnd + } + if gcsrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = gcsrs.MaxConcurrentConnections + } + if gcsrs.Type != "" { + objectMap["type"] = gcsrs.Type + } + for k, v := range gcsrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsAzureSQLMITableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsSftpReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsFtpReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return &gcsrs, true } -// AsOrcDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDataset() (*Dataset, bool) { +// AsStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsBasicDataset() (BasicDataset, bool) { - return >d, true +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &gcsrs, true } -// UnmarshalJSON is the custom unmarshaler for GreenplumTableDataset struct. -func (gtd *GreenplumTableDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageReadSettings struct. +func (gcsrs *GoogleCloudStorageReadSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -108897,98 +107200,125 @@ func (gtd *GreenplumTableDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "recursive": if v != nil { - var greenplumDatasetTypeProperties GreenplumDatasetTypeProperties - err = json.Unmarshal(*v, &greenplumDatasetTypeProperties) + var recursive interface{} + err = json.Unmarshal(*v, &recursive) if err != nil { return err } - gtd.GreenplumDatasetTypeProperties = &greenplumDatasetTypeProperties + gcsrs.Recursive = recursive } - default: + case "wildcardFolderPath": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) if err != nil { return err } - if gtd.AdditionalProperties == nil { - gtd.AdditionalProperties = make(map[string]interface{}) + gcsrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err } - gtd.AdditionalProperties[k] = additionalProperties + gcsrs.WildcardFileName = wildcardFileName } - case "description": + case "prefix": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var prefix interface{} + err = json.Unmarshal(*v, &prefix) if err != nil { return err } - gtd.Description = &description + gcsrs.Prefix = prefix } - case "structure": + case "fileListPath": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) if err != nil { return err } - gtd.Structure = structure + gcsrs.FileListPath = fileListPath } - case "schema": + case "enablePartitionDiscovery": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var enablePartitionDiscovery bool + err = json.Unmarshal(*v, &enablePartitionDiscovery) if err != nil { return err } - gtd.Schema = schema + gcsrs.EnablePartitionDiscovery = &enablePartitionDiscovery } - case "linkedServiceName": + case "partitionRootPath": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) if err != nil { return err } - gtd.LinkedServiceName = &linkedServiceName + gcsrs.PartitionRootPath = partitionRootPath } - case "parameters": + case "deleteFilesAfterCompletion": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) if err != nil { return err } - gtd.Parameters = parameters + gcsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion } - case "annotations": + case "modifiedDatetimeStart": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) if err != nil { return err } - gtd.Annotations = &annotations + gcsrs.ModifiedDatetimeStart = modifiedDatetimeStart } - case "folder": + case "modifiedDatetimeEnd": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) if err != nil { return err } - gtd.Folder = &folder + gcsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gcsrs.AdditionalProperties == nil { + gcsrs.AdditionalProperties = make(map[string]interface{}) + } + gcsrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + gcsrs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicStoreReadSettings err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - gtd.Type = typeVar + gcsrs.Type = typeVar } } } @@ -108996,10 +107326,20 @@ func (gtd *GreenplumTableDataset) UnmarshalJSON(body []byte) error { return nil } -// HBaseLinkedService hBase server linked service. -type HBaseLinkedService struct { - // HBaseLinkedServiceTypeProperties - HBase server linked service properties. - *HBaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// GreenplumDatasetTypeProperties greenplum Dataset Properties +type GreenplumDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of Greenplum. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of Greenplum. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// GreenplumLinkedService greenplum Database linked service. +type GreenplumLinkedService struct { + // GreenplumLinkedServiceTypeProperties - Greenplum Database linked service properties. + *GreenplumLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -109014,546 +107354,546 @@ type HBaseLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for HBaseLinkedService. -func (hbls HBaseLinkedService) MarshalJSON() ([]byte, error) { - hbls.Type = TypeHBase +// MarshalJSON is the custom marshaler for GreenplumLinkedService. +func (gls GreenplumLinkedService) MarshalJSON() ([]byte, error) { + gls.Type = TypeGreenplum objectMap := make(map[string]interface{}) - if hbls.HBaseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hbls.HBaseLinkedServiceTypeProperties + if gls.GreenplumLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = gls.GreenplumLinkedServiceTypeProperties } - if hbls.ConnectVia != nil { - objectMap["connectVia"] = hbls.ConnectVia + if gls.ConnectVia != nil { + objectMap["connectVia"] = gls.ConnectVia } - if hbls.Description != nil { - objectMap["description"] = hbls.Description + if gls.Description != nil { + objectMap["description"] = gls.Description } - if hbls.Parameters != nil { - objectMap["parameters"] = hbls.Parameters + if gls.Parameters != nil { + objectMap["parameters"] = gls.Parameters } - if hbls.Annotations != nil { - objectMap["annotations"] = hbls.Annotations + if gls.Annotations != nil { + objectMap["annotations"] = gls.Annotations } - if hbls.Type != "" { - objectMap["type"] = hbls.Type + if gls.Type != "" { + objectMap["type"] = gls.Type } - for k, v := range hbls.AdditionalProperties { + for k, v := range gls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return &hbls, true +// AsHBaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false +// AsGreenplumLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return &gls, true } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hbls, true +// AsBasicLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &gls, true } -// UnmarshalJSON is the custom unmarshaler for HBaseLinkedService struct. -func (hbls *HBaseLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GreenplumLinkedService struct. +func (gls *GreenplumLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -109563,12 +107903,12 @@ func (hbls *HBaseLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var hBaseLinkedServiceTypeProperties HBaseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hBaseLinkedServiceTypeProperties) + var greenplumLinkedServiceTypeProperties GreenplumLinkedServiceTypeProperties + err = json.Unmarshal(*v, &greenplumLinkedServiceTypeProperties) if err != nil { return err } - hbls.HBaseLinkedServiceTypeProperties = &hBaseLinkedServiceTypeProperties + gls.GreenplumLinkedServiceTypeProperties = &greenplumLinkedServiceTypeProperties } default: if v != nil { @@ -109577,10 +107917,10 @@ func (hbls *HBaseLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if hbls.AdditionalProperties == nil { - hbls.AdditionalProperties = make(map[string]interface{}) + if gls.AdditionalProperties == nil { + gls.AdditionalProperties = make(map[string]interface{}) } - hbls.AdditionalProperties[k] = additionalProperties + gls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -109589,7 +107929,7 @@ func (hbls *HBaseLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - hbls.ConnectVia = &connectVia + gls.ConnectVia = &connectVia } case "description": if v != nil { @@ -109598,173 +107938,34 @@ func (hbls *HBaseLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - hbls.Description = &description + gls.Description = &description } case "parameters": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hbls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hbls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hbls.Type = typeVar - } - } - } - - return nil -} - -// HBaseLinkedServiceTypeProperties hBase server linked service properties. -type HBaseLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the HBase server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the HBase instance uses to listen for client connections. The default value is 9090. - Port interface{} `json:"port,omitempty"` - // HTTPPath - The partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version) - HTTPPath interface{} `json:"httpPath,omitempty"` - // AuthenticationType - The authentication mechanism to use to connect to the HBase server. Possible values include: 'HBaseAuthenticationTypeAnonymous', 'HBaseAuthenticationTypeBasic' - AuthenticationType HBaseAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to connect to the HBase instance. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name. - Password BasicSecretBase `json:"password,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - 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. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // AllowHostNameCNMismatch - 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. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for HBaseLinkedServiceTypeProperties struct. -func (hblstp *HBaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - hblstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - hblstp.Port = port - } - case "httpPath": - if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) - if err != nil { - return err - } - hblstp.HTTPPath = HTTPPath - } - case "authenticationType": - if v != nil { - var authenticationType HBaseAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hblstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - hblstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hblstp.Password = password - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - hblstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - hblstp.TrustedCertPath = trustedCertPath - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - hblstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + gls.Parameters = parameters } - case "allowSelfSignedServerCert": + case "annotations": if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - hblstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + gls.Annotations = &annotations } - case "encryptedCredential": + case "type": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - hblstp.EncryptedCredential = encryptedCredential + gls.Type = typeVar } } } @@ -109772,544 +107973,549 @@ func (hblstp *HBaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error return nil } -// HBaseObjectDataset hBase server dataset. -type HBaseObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` +// GreenplumLinkedServiceTypeProperties greenplum Database linked service properties. +type GreenplumLinkedServiceTypeProperties struct { + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Pwd - The Azure key vault secret reference of password in connection string. + Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// GreenplumSource a copy activity Greenplum Database source. +type GreenplumSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for HBaseObjectDataset. -func (hbod HBaseObjectDataset) MarshalJSON() ([]byte, error) { - hbod.Type = TypeHBaseObject +// MarshalJSON is the custom marshaler for GreenplumSource. +func (gs GreenplumSource) MarshalJSON() ([]byte, error) { + gs.Type = TypeGreenplumSource objectMap := make(map[string]interface{}) - if hbod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = hbod.GenericDatasetTypeProperties - } - if hbod.Description != nil { - objectMap["description"] = hbod.Description - } - if hbod.Structure != nil { - objectMap["structure"] = hbod.Structure + if gs.Query != nil { + objectMap["query"] = gs.Query } - if hbod.Schema != nil { - objectMap["schema"] = hbod.Schema + if gs.QueryTimeout != nil { + objectMap["queryTimeout"] = gs.QueryTimeout } - if hbod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hbod.LinkedServiceName + if gs.AdditionalColumns != nil { + objectMap["additionalColumns"] = gs.AdditionalColumns } - if hbod.Parameters != nil { - objectMap["parameters"] = hbod.Parameters + if gs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = gs.SourceRetryCount } - if hbod.Annotations != nil { - objectMap["annotations"] = hbod.Annotations + if gs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = gs.SourceRetryWait } - if hbod.Folder != nil { - objectMap["folder"] = hbod.Folder + if gs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = gs.MaxConcurrentConnections } - if hbod.Type != "" { - objectMap["type"] = hbod.Type + if gs.Type != "" { + objectMap["type"] = gs.Type } - for k, v := range hbod.AdditionalProperties { + for k, v := range gs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsHTTPSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOffice365Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsMongoDbSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsWebSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsOracleSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsHdfsSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsFileSystemSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsRestSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsODataSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsRelationalSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsDynamicsSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsBlobSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return &hbod, true +// AsOracleServiceCloudSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsResponsysSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsVerticaSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsNetezzaSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsZohoSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsXeroSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSquareSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsSparkSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsShopifySource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsServiceNowSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsPrestoSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsPhoenixSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsPaypalSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false +// AsGreenplumSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsGreenplumSource() (*GreenplumSource, bool) { + return &gs, true } -// AsOdbcTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &gs, true +} + +// AsBinarySource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAvroSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDataset() (*Dataset, bool) { +// AsCopySource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &hbod, true +// AsBasicCopySource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsBasicCopySource() (BasicCopySource, bool) { + return &gs, true } -// UnmarshalJSON is the custom unmarshaler for HBaseObjectDataset struct. -func (hbod *HBaseObjectDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GreenplumSource struct. +func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -110317,98 +108523,80 @@ func (hbod *HBaseObjectDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - hbod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: + case "query": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - if hbod.AdditionalProperties == nil { - hbod.AdditionalProperties = make(map[string]interface{}) - } - hbod.AdditionalProperties[k] = additionalProperties + gs.Query = query } - case "description": + case "queryTimeout": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - hbod.Description = &description + gs.QueryTimeout = queryTimeout } - case "structure": + case "additionalColumns": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - hbod.Structure = structure + gs.AdditionalColumns = &additionalColumns } - case "schema": + default: if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - hbod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err + if gs.AdditionalProperties == nil { + gs.AdditionalProperties = make(map[string]interface{}) } - hbod.LinkedServiceName = &linkedServiceName + gs.AdditionalProperties[k] = additionalProperties } - case "parameters": + case "sourceRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - hbod.Parameters = parameters + gs.SourceRetryCount = sourceRetryCount } - case "annotations": + case "sourceRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - hbod.Annotations = &annotations + gs.SourceRetryWait = sourceRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - hbod.Folder = &folder + gs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - hbod.Type = typeVar + gs.Type = typeVar } } } @@ -110416,539 +108604,544 @@ func (hbod *HBaseObjectDataset) UnmarshalJSON(body []byte) error { return nil } -// HBaseSource a copy activity HBase server source. -type HBaseSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// GreenplumTableDataset greenplum Database dataset. +type GreenplumTableDataset struct { + // GreenplumDatasetTypeProperties - Properties specific to this dataset type. + *GreenplumDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for HBaseSource. -func (hbs HBaseSource) MarshalJSON() ([]byte, error) { - hbs.Type = TypeHBaseSource +// MarshalJSON is the custom marshaler for GreenplumTableDataset. +func (gtd GreenplumTableDataset) MarshalJSON() ([]byte, error) { + gtd.Type = TypeGreenplumTable objectMap := make(map[string]interface{}) - if hbs.Query != nil { - objectMap["query"] = hbs.Query + if gtd.GreenplumDatasetTypeProperties != nil { + objectMap["typeProperties"] = gtd.GreenplumDatasetTypeProperties } - if hbs.QueryTimeout != nil { - objectMap["queryTimeout"] = hbs.QueryTimeout + if gtd.Description != nil { + objectMap["description"] = gtd.Description } - if hbs.AdditionalColumns != nil { - objectMap["additionalColumns"] = hbs.AdditionalColumns + if gtd.Structure != nil { + objectMap["structure"] = gtd.Structure } - if hbs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = hbs.SourceRetryCount + if gtd.Schema != nil { + objectMap["schema"] = gtd.Schema } - if hbs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = hbs.SourceRetryWait + if gtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = gtd.LinkedServiceName } - if hbs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hbs.MaxConcurrentConnections + if gtd.Parameters != nil { + objectMap["parameters"] = gtd.Parameters } - if hbs.Type != "" { - objectMap["type"] = hbs.Type + if gtd.Annotations != nil { + objectMap["annotations"] = gtd.Annotations } - for k, v := range hbs.AdditionalProperties { + if gtd.Folder != nil { + objectMap["folder"] = gtd.Folder + } + if gtd.Type != "" { + objectMap["type"] = gtd.Type + } + for k, v := range gtd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHTTPSource() (*HTTPSource, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOffice365Source() (*Office365Source, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsWebSource() (*WebSource, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOracleSource() (*OracleSource, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHdfsSource() (*HdfsSource, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsRestSource() (*RestSource, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsODataSource() (*ODataSource, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsRelationalSource() (*RelationalSource, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsBlobSource() (*BlobSource, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false +// AsGreenplumTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return >d, true } -// AsResponsysSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsVerticaSource() (*VerticaSource, bool) { +// AsDrillTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsZohoSource() (*ZohoSource, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsXeroSource() (*XeroSource, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSquareSource() (*SquareSource, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSparkSource() (*SparkSource, bool) { +// AsHTTPDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsShopifySource() (*ShopifySource, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsWebTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPrestoSource() (*PrestoSource, bool) { +// AsRestResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMagentoSource() (*MagentoSource, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsJiraSource() (*JiraSource, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHubspotSource() (*HubspotSource, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHiveSource() (*HiveSource, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHBaseSource() (*HBaseSource, bool) { - return &hbs, true -} - -// AsGreenplumSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsEloquaSource() (*EloquaSource, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDrillSource() (*DrillSource, bool) { +// AsInformixTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsConcurSource() (*ConcurSource, bool) { +// AsDb2TableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCassandraSource() (*CassandraSource, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsTeradataSource() (*TeradataSource, bool) { +// AsOracleTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsODataResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSQLMISource() (*SQLMISource, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSQLSource() (*SQLSource, bool) { +// AsFileShareDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapTableSource() (*SapTableSource, bool) { +// AsOffice365Dataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapEccSource() (*SapEccSource, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapBwSource() (*SapBwSource, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSybaseSource() (*SybaseSource, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsCustomDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMySQLSource() (*MySQLSource, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOdbcSource() (*OdbcSource, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDb2Source() (*Db2Source, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsInformixSource() (*InformixSource, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &hbs, true +// AsBinaryDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsBinarySource() (*BinarySource, bool) { +// AsOrcDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOrcSource() (*OrcSource, bool) { +// AsXMLDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsXMLSource() (*XMLSource, bool) { +// AsJSONDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsJSONSource() (*JSONSource, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsParquetDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsParquetSource() (*ParquetSource, bool) { +// AsExcelDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsExcelSource() (*ExcelSource, bool) { +// AsAvroDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAvroSource() (*AvroSource, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCopySource() (*CopySource, bool) { +// AsDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hbs, true +// AsBasicDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsBasicDataset() (BasicDataset, bool) { + return >d, true } -// UnmarshalJSON is the custom unmarshaler for HBaseSource struct. -func (hbs *HBaseSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for GreenplumTableDataset struct. +func (gtd *GreenplumTableDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -110956,80 +109149,98 @@ func (hbs *HBaseSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var greenplumDatasetTypeProperties GreenplumDatasetTypeProperties + err = json.Unmarshal(*v, &greenplumDatasetTypeProperties) if err != nil { return err } - hbs.Query = query + gtd.GreenplumDatasetTypeProperties = &greenplumDatasetTypeProperties } - case "queryTimeout": + default: if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - hbs.QueryTimeout = queryTimeout + if gtd.AdditionalProperties == nil { + gtd.AdditionalProperties = make(map[string]interface{}) + } + gtd.AdditionalProperties[k] = additionalProperties } - case "additionalColumns": + case "description": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - hbs.AdditionalColumns = &additionalColumns + gtd.Description = &description } - default: + case "structure": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - if hbs.AdditionalProperties == nil { - hbs.AdditionalProperties = make(map[string]interface{}) + gtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err } - hbs.AdditionalProperties[k] = additionalProperties + gtd.Schema = schema } - case "sourceRetryCount": + case "linkedServiceName": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - hbs.SourceRetryCount = sourceRetryCount + gtd.LinkedServiceName = &linkedServiceName } - case "sourceRetryWait": + case "parameters": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - hbs.SourceRetryWait = sourceRetryWait + gtd.Parameters = parameters } - case "maxConcurrentConnections": + case "annotations": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - hbs.MaxConcurrentConnections = maxConcurrentConnections + gtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + gtd.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - hbs.Type = typeVar + gtd.Type = typeVar } } } @@ -111037,10 +109248,10 @@ func (hbs *HBaseSource) UnmarshalJSON(body []byte) error { return nil } -// HdfsLinkedService hadoop Distributed File System (HDFS) linked service. -type HdfsLinkedService struct { - // HdfsLinkedServiceTypeProperties - HDFS linked service properties. - *HdfsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// HBaseLinkedService hBase server linked service. +type HBaseLinkedService struct { + // HBaseLinkedServiceTypeProperties - HBase server linked service properties. + *HBaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -111055,546 +109266,546 @@ type HdfsLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for HdfsLinkedService. -func (hls HdfsLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeHdfs +// MarshalJSON is the custom marshaler for HBaseLinkedService. +func (hbls HBaseLinkedService) MarshalJSON() ([]byte, error) { + hbls.Type = TypeHBase objectMap := make(map[string]interface{}) - if hls.HdfsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HdfsLinkedServiceTypeProperties + if hbls.HBaseLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hbls.HBaseLinkedServiceTypeProperties } - if hls.ConnectVia != nil { - objectMap["connectVia"] = hls.ConnectVia + if hbls.ConnectVia != nil { + objectMap["connectVia"] = hbls.ConnectVia } - if hls.Description != nil { - objectMap["description"] = hls.Description + if hbls.Description != nil { + objectMap["description"] = hbls.Description } - if hls.Parameters != nil { - objectMap["parameters"] = hls.Parameters + if hbls.Parameters != nil { + objectMap["parameters"] = hbls.Parameters } - if hls.Annotations != nil { - objectMap["annotations"] = hls.Annotations + if hbls.Annotations != nil { + objectMap["annotations"] = hbls.Annotations } - if hls.Type != "" { - objectMap["type"] = hls.Type + if hbls.Type != "" { + objectMap["type"] = hbls.Type } - for k, v := range hls.AdditionalProperties { + for k, v := range hbls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false +// AsHBaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return &hbls, true } -// AsGreenplumLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return &hls, true +// AsHdfsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hls, true +// AsBasicLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &hbls, true } -// UnmarshalJSON is the custom unmarshaler for HdfsLinkedService struct. -func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for HBaseLinkedService struct. +func (hbls *HBaseLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -111604,12 +109815,12 @@ func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var hdfsLinkedServiceTypeProperties HdfsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hdfsLinkedServiceTypeProperties) + var hBaseLinkedServiceTypeProperties HBaseLinkedServiceTypeProperties + err = json.Unmarshal(*v, &hBaseLinkedServiceTypeProperties) if err != nil { return err } - hls.HdfsLinkedServiceTypeProperties = &hdfsLinkedServiceTypeProperties + hbls.HBaseLinkedServiceTypeProperties = &hBaseLinkedServiceTypeProperties } default: if v != nil { @@ -111618,10 +109829,10 @@ func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if hls.AdditionalProperties == nil { - hls.AdditionalProperties = make(map[string]interface{}) + if hbls.AdditionalProperties == nil { + hbls.AdditionalProperties = make(map[string]interface{}) } - hls.AdditionalProperties[k] = additionalProperties + hbls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -111630,7 +109841,7 @@ func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - hls.ConnectVia = &connectVia + hbls.ConnectVia = &connectVia } case "description": if v != nil { @@ -111639,7 +109850,7 @@ func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - hls.Description = &description + hbls.Description = &description } case "parameters": if v != nil { @@ -111648,7 +109859,7 @@ func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - hls.Parameters = parameters + hbls.Parameters = parameters } case "annotations": if v != nil { @@ -111657,7 +109868,7 @@ func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - hls.Annotations = &annotations + hbls.Annotations = &annotations } case "type": if v != nil { @@ -111666,400 +109877,691 @@ func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - hls.Type = typeVar + hbls.Type = typeVar + } + } + } + + return nil +} + +// HBaseLinkedServiceTypeProperties hBase server linked service properties. +type HBaseLinkedServiceTypeProperties struct { + // Host - The IP address or host name of the HBase server. (i.e. 192.168.222.160) + Host interface{} `json:"host,omitempty"` + // Port - The TCP port that the HBase instance uses to listen for client connections. The default value is 9090. + Port interface{} `json:"port,omitempty"` + // HTTPPath - The partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version) + HTTPPath interface{} `json:"httpPath,omitempty"` + // AuthenticationType - The authentication mechanism to use to connect to the HBase server. Possible values include: 'HBaseAuthenticationTypeAnonymous', 'HBaseAuthenticationTypeBasic' + AuthenticationType HBaseAuthenticationType `json:"authenticationType,omitempty"` + // Username - The user name used to connect to the HBase instance. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name. + Password BasicSecretBase `json:"password,omitempty"` + // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. + EnableSsl interface{} `json:"enableSsl,omitempty"` + // TrustedCertPath - 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. + TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + // AllowHostNameCNMismatch - 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. + AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. + AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HBaseLinkedServiceTypeProperties struct. +func (hblstp *HBaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + hblstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + hblstp.Port = port + } + case "httpPath": + if v != nil { + var HTTPPath interface{} + err = json.Unmarshal(*v, &HTTPPath) + if err != nil { + return err + } + hblstp.HTTPPath = HTTPPath + } + case "authenticationType": + if v != nil { + var authenticationType HBaseAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + hblstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + hblstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hblstp.Password = password + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + hblstp.EnableSsl = enableSsl + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + hblstp.TrustedCertPath = trustedCertPath + } + case "allowHostNameCNMismatch": + if v != nil { + var allowHostNameCNMismatch interface{} + err = json.Unmarshal(*v, &allowHostNameCNMismatch) + if err != nil { + return err + } + hblstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + } + case "allowSelfSignedServerCert": + if v != nil { + var allowSelfSignedServerCert interface{} + err = json.Unmarshal(*v, &allowSelfSignedServerCert) + if err != nil { + return err + } + hblstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + hblstp.EncryptedCredential = encryptedCredential } } } - return nil + return nil +} + +// HBaseObjectDataset hBase server dataset. +type HBaseObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HBaseObjectDataset. +func (hbod HBaseObjectDataset) MarshalJSON() ([]byte, error) { + hbod.Type = TypeHBaseObject + objectMap := make(map[string]interface{}) + if hbod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = hbod.GenericDatasetTypeProperties + } + if hbod.Description != nil { + objectMap["description"] = hbod.Description + } + if hbod.Structure != nil { + objectMap["structure"] = hbod.Structure + } + if hbod.Schema != nil { + objectMap["schema"] = hbod.Schema + } + if hbod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hbod.LinkedServiceName + } + if hbod.Parameters != nil { + objectMap["parameters"] = hbod.Parameters + } + if hbod.Annotations != nil { + objectMap["annotations"] = hbod.Annotations + } + if hbod.Folder != nil { + objectMap["folder"] = hbod.Folder + } + if hbod.Type != "" { + objectMap["type"] = hbod.Type + } + for k, v := range hbod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return &hbod, true +} + +// AsGreenplumTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false } -// HdfsLinkedServiceTypeProperties HDFS linked service properties. -type HdfsLinkedServiceTypeProperties struct { - // URL - The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AuthenticationType - Type of authentication used to connect to the HDFS. Possible values are: Anonymous and Windows. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - // UserName - User name for Windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for Windows authentication. - Password BasicSecretBase `json:"password,omitempty"` +// AsSapEccResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for HdfsLinkedServiceTypeProperties struct. -func (hlstp *HdfsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - hlstp.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hlstp.AuthenticationType = authenticationType - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hlstp.EncryptedCredential = encryptedCredential - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - hlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.Password = password - } - } - } +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} - return nil +// AsSapBwCubeDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false } -// HdfsLocation the location of HDFS. -type HdfsLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` +// AsSybaseTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for HdfsLocation. -func (hl HdfsLocation) MarshalJSON() ([]byte, error) { - hl.Type = TypeHdfsLocation - objectMap := make(map[string]interface{}) - if hl.FolderPath != nil { - objectMap["folderPath"] = hl.FolderPath - } - if hl.FileName != nil { - objectMap["fileName"] = hl.FileName - } - if hl.Type != "" { - objectMap["type"] = hl.Type - } - for k, v := range hl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false } -// AsHdfsLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return &hl, true +// AsSalesforceObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false } -// AsHTTPServerLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsSftpLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsSftpLocation() (*SftpLocation, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsFtpServerLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { +// AsInformixTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { +// AsDb2TableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsFileServerLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsFileServerLocation() (*FileServerLocation, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAmazonS3Location is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { +// AsOracleTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { +// AsODataResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsDatasetLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsDatasetLocation() (*DatasetLocation, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &hl, true +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for HdfsLocation struct. -func (hl *HdfsLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hl.AdditionalProperties == nil { - hl.AdditionalProperties = make(map[string]interface{}) - } - hl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - hl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - hl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hl.Type = typeVar - } - } - } +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} - return nil +// AsMongoDbCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false } -// HdfsReadSettings HDFS read settings. -type HdfsReadSettings struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // WildcardFolderPath - HDFS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - HDFS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // DistcpSettings - Specifies Distcp-related settings. - DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` - // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` +// AsFileShareDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for HdfsReadSettings. -func (hrs HdfsReadSettings) MarshalJSON() ([]byte, error) { - hrs.Type = TypeHdfsReadSettings - objectMap := make(map[string]interface{}) - if hrs.Recursive != nil { - objectMap["recursive"] = hrs.Recursive - } - if hrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = hrs.WildcardFolderPath - } - if hrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = hrs.WildcardFileName - } - if hrs.FileListPath != nil { - objectMap["fileListPath"] = hrs.FileListPath - } - if hrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = hrs.EnablePartitionDiscovery - } - if hrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = hrs.PartitionRootPath - } - if hrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = hrs.ModifiedDatetimeStart - } - if hrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = hrs.ModifiedDatetimeEnd - } - if hrs.DistcpSettings != nil { - objectMap["distcpSettings"] = hrs.DistcpSettings - } - if hrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = hrs.DeleteFilesAfterCompletion - } - if hrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hrs.MaxConcurrentConnections - } - if hrs.Type != "" { - objectMap["type"] = hrs.Type - } - for k, v := range hrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsOffice365Dataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false } -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return &hrs, true +// AsAzureBlobFSDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false } -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsSftpReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsFtpReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { +// AsCustomDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { +// AsAzureTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &hrs, true +// AsBinaryDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for HdfsReadSettings struct. -func (hrs *HdfsReadSettings) UnmarshalJSON(body []byte) error { +// AsOrcDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &hbod, true +} + +// UnmarshalJSON is the custom unmarshaler for HBaseObjectDataset struct. +func (hbod *HBaseObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -112067,125 +110569,98 @@ func (hrs *HdfsReadSettings) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - hrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - hrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": + case "typeProperties": if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) if err != nil { return err } - hrs.WildcardFileName = wildcardFileName + hbod.GenericDatasetTypeProperties = &genericDatasetTypeProperties } - case "fileListPath": + default: if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - hrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery bool - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err + if hbod.AdditionalProperties == nil { + hbod.AdditionalProperties = make(map[string]interface{}) } - hrs.EnablePartitionDiscovery = &enablePartitionDiscovery + hbod.AdditionalProperties[k] = additionalProperties } - case "partitionRootPath": + case "description": if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - hrs.PartitionRootPath = partitionRootPath + hbod.Description = &description } - case "modifiedDatetimeStart": + case "structure": if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - hrs.ModifiedDatetimeStart = modifiedDatetimeStart + hbod.Structure = structure } - case "modifiedDatetimeEnd": + case "schema": if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - hrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + hbod.Schema = schema } - case "distcpSettings": + case "linkedServiceName": if v != nil { - var distcpSettings DistcpSettings - err = json.Unmarshal(*v, &distcpSettings) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - hrs.DistcpSettings = &distcpSettings + hbod.LinkedServiceName = &linkedServiceName } - case "deleteFilesAfterCompletion": + case "parameters": if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - hrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + hbod.Parameters = parameters } - default: + case "annotations": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - if hrs.AdditionalProperties == nil { - hrs.AdditionalProperties = make(map[string]interface{}) - } - hrs.AdditionalProperties[k] = additionalProperties + hbod.Annotations = &annotations } - case "maxConcurrentConnections": + case "folder": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - hrs.MaxConcurrentConnections = maxConcurrentConnections + hbod.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicStoreReadSettings + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - hrs.Type = typeVar + hbod.Type = typeVar } } } @@ -112193,12 +110668,14 @@ func (hrs *HdfsReadSettings) UnmarshalJSON(body []byte) error { return nil } -// HdfsSource a copy activity HDFS source. -type HdfsSource struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // DistcpSettings - Specifies Distcp-related settings. - DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` +// HBaseSource a copy activity HBase server source. +type HBaseSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). @@ -112211,516 +110688,519 @@ type HdfsSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for HdfsSource. -func (hs HdfsSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeHdfsSource +// MarshalJSON is the custom marshaler for HBaseSource. +func (hbs HBaseSource) MarshalJSON() ([]byte, error) { + hbs.Type = TypeHBaseSource objectMap := make(map[string]interface{}) - if hs.Recursive != nil { - objectMap["recursive"] = hs.Recursive + if hbs.Query != nil { + objectMap["query"] = hbs.Query } - if hs.DistcpSettings != nil { - objectMap["distcpSettings"] = hs.DistcpSettings + if hbs.QueryTimeout != nil { + objectMap["queryTimeout"] = hbs.QueryTimeout } - if hs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = hs.SourceRetryCount + if hbs.AdditionalColumns != nil { + objectMap["additionalColumns"] = hbs.AdditionalColumns } - if hs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = hs.SourceRetryWait + if hbs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = hbs.SourceRetryCount } - if hs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections + if hbs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = hbs.SourceRetryWait } - if hs.Type != "" { - objectMap["type"] = hs.Type + if hbs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hbs.MaxConcurrentConnections } - for k, v := range hs.AdditionalProperties { + if hbs.Type != "" { + objectMap["type"] = hbs.Type + } + for k, v := range hbs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHdfsSource() (*HdfsSource, bool) { - return &hs, true +// AsHdfsSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false +// AsHBaseSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsHBaseSource() (*HBaseSource, bool) { + return &hbs, true } -// AsGreenplumSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &hbs, true } -// AsBinarySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hs, true +// AsBasicCopySource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsBasicCopySource() (BasicCopySource, bool) { + return &hbs, true } -// UnmarshalJSON is the custom unmarshaler for HdfsSource struct. -func (hs *HdfsSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for HBaseSource struct. +func (hbs *HBaseSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -112728,23 +111208,32 @@ func (hs *HdfsSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "recursive": + case "query": if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - hs.Recursive = recursive + hbs.Query = query } - case "distcpSettings": + case "queryTimeout": if v != nil { - var distcpSettings DistcpSettings - err = json.Unmarshal(*v, &distcpSettings) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - hs.DistcpSettings = &distcpSettings + hbs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + hbs.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -112753,10 +111242,10 @@ func (hs *HdfsSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if hs.AdditionalProperties == nil { - hs.AdditionalProperties = make(map[string]interface{}) + if hbs.AdditionalProperties == nil { + hbs.AdditionalProperties = make(map[string]interface{}) } - hs.AdditionalProperties[k] = additionalProperties + hbs.AdditionalProperties[k] = additionalProperties } case "sourceRetryCount": if v != nil { @@ -112765,7 +111254,7 @@ func (hs *HdfsSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - hs.SourceRetryCount = sourceRetryCount + hbs.SourceRetryCount = sourceRetryCount } case "sourceRetryWait": if v != nil { @@ -112774,7 +111263,7 @@ func (hs *HdfsSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - hs.SourceRetryWait = sourceRetryWait + hbs.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -112783,7 +111272,7 @@ func (hs *HdfsSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - hs.MaxConcurrentConnections = maxConcurrentConnections + hbs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { @@ -112792,7 +111281,7 @@ func (hs *HdfsSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - hs.Type = typeVar + hbs.Type = typeVar } } } @@ -116594,20 +115083,739 @@ func (hisatp HDInsightStreamingActivityTypeProperties) MarshalJSON() ([]byte, er return json.Marshal(objectMap) } -// HiveDatasetTypeProperties hive Properties -type HiveDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Hive. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Hive. Type: string (or Expression with resultType string). +// HTTPDataset a file in an HTTP web server. +type HTTPDataset struct { + // HTTPDatasetTypeProperties - Properties specific to this dataset type. + *HTTPDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// HiveLinkedService hive Server linked service. -type HiveLinkedService struct { - // HiveLinkedServiceTypeProperties - Hive Server linked service properties. - *HiveLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// MarshalJSON is the custom marshaler for HTTPDataset. +func (hd HTTPDataset) MarshalJSON() ([]byte, error) { + hd.Type = TypeHTTPFile + objectMap := make(map[string]interface{}) + if hd.HTTPDatasetTypeProperties != nil { + objectMap["typeProperties"] = hd.HTTPDatasetTypeProperties + } + if hd.Description != nil { + objectMap["description"] = hd.Description + } + if hd.Structure != nil { + objectMap["structure"] = hd.Structure + } + if hd.Schema != nil { + objectMap["schema"] = hd.Schema + } + if hd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hd.LinkedServiceName + } + if hd.Parameters != nil { + objectMap["parameters"] = hd.Parameters + } + if hd.Annotations != nil { + objectMap["annotations"] = hd.Annotations + } + if hd.Folder != nil { + objectMap["folder"] = hd.Folder + } + if hd.Type != "" { + objectMap["type"] = hd.Type + } + for k, v := range hd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return &hd, true +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsBasicDataset() (BasicDataset, bool) { + return &hd, true +} + +// UnmarshalJSON is the custom unmarshaler for HTTPDataset struct. +func (hd *HTTPDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var HTTPDatasetTypeProperties HTTPDatasetTypeProperties + err = json.Unmarshal(*v, &HTTPDatasetTypeProperties) + if err != nil { + return err + } + hd.HTTPDatasetTypeProperties = &HTTPDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hd.AdditionalProperties == nil { + hd.AdditionalProperties = make(map[string]interface{}) + } + hd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + hd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + hd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + hd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hd.Type = typeVar + } + } + } + + return nil +} + +// HTTPDatasetTypeProperties properties specific to this dataset type. +type HTTPDatasetTypeProperties struct { + // RelativeURL - The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType string). + RelativeURL interface{} `json:"relativeUrl,omitempty"` + // RequestMethod - The HTTP method for the HTTP request. Type: string (or Expression with resultType string). + RequestMethod interface{} `json:"requestMethod,omitempty"` + // RequestBody - The body for the HTTP request. Type: string (or Expression with resultType string). + RequestBody interface{} `json:"requestBody,omitempty"` + // AdditionalHeaders - The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1 + // ... + // request-header-name-n:request-header-value-n Type: string (or Expression with resultType string). + AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + // Format - The format of files. + Format BasicDatasetStorageFormat `json:"format,omitempty"` + // Compression - The data compression method used on files. + Compression BasicDatasetCompression `json:"compression,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HTTPDatasetTypeProperties struct. +func (hdtp *HTTPDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "relativeUrl": + if v != nil { + var relativeURL interface{} + err = json.Unmarshal(*v, &relativeURL) + if err != nil { + return err + } + hdtp.RelativeURL = relativeURL + } + case "requestMethod": + if v != nil { + var requestMethod interface{} + err = json.Unmarshal(*v, &requestMethod) + if err != nil { + return err + } + hdtp.RequestMethod = requestMethod + } + case "requestBody": + if v != nil { + var requestBody interface{} + err = json.Unmarshal(*v, &requestBody) + if err != nil { + return err + } + hdtp.RequestBody = requestBody + } + case "additionalHeaders": + if v != nil { + var additionalHeaders interface{} + err = json.Unmarshal(*v, &additionalHeaders) + if err != nil { + return err + } + hdtp.AdditionalHeaders = additionalHeaders + } + case "format": + if v != nil { + formatVar, err := unmarshalBasicDatasetStorageFormat(*v) + if err != nil { + return err + } + hdtp.Format = formatVar + } + case "compression": + if v != nil { + compression, err := unmarshalBasicDatasetCompression(*v) + if err != nil { + return err + } + hdtp.Compression = compression + } + } + } + + return nil +} + +// HTTPLinkedService linked service for an HTTP source. +type HTTPLinkedService struct { + // HTTPLinkedServiceTypeProperties - Properties specific to this linked service type. + *HTTPLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -116622,12 +115830,12 @@ type HiveLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for HiveLinkedService. -func (hls HiveLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeHive +// MarshalJSON is the custom marshaler for HTTPLinkedService. +func (hls HTTPLinkedService) MarshalJSON() ([]byte, error) { + hls.Type = TypeHTTPServer objectMap := make(map[string]interface{}) - if hls.HiveLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HiveLinkedServiceTypeProperties + if hls.HTTPLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hls.HTTPLinkedServiceTypeProperties } if hls.ConnectVia != nil { objectMap["connectVia"] = hls.ConnectVia @@ -116650,518 +115858,518 @@ func (hls HiveLinkedService) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return &hls, true +// AsHiveLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false +// AsHTTPLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return &hls, true } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { +// AsBasicLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { return &hls, true } -// UnmarshalJSON is the custom unmarshaler for HiveLinkedService struct. -func (hls *HiveLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for HTTPLinkedService struct. +func (hls *HTTPLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -117171,12 +116379,12 @@ func (hls *HiveLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var hiveLinkedServiceTypeProperties HiveLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hiveLinkedServiceTypeProperties) + var HTTPLinkedServiceTypeProperties HTTPLinkedServiceTypeProperties + err = json.Unmarshal(*v, &HTTPLinkedServiceTypeProperties) if err != nil { return err } - hls.HiveLinkedServiceTypeProperties = &hiveLinkedServiceTypeProperties + hls.HTTPLinkedServiceTypeProperties = &HTTPLinkedServiceTypeProperties } default: if v != nil { @@ -117241,46 +116449,30 @@ func (hls *HiveLinkedService) UnmarshalJSON(body []byte) error { return nil } -// HiveLinkedServiceTypeProperties hive Server linked service properties. -type HiveLinkedServiceTypeProperties struct { - // Host - IP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode is enable). - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Hive server uses to listen for client connections. - Port interface{} `json:"port,omitempty"` - // ServerType - The type of Hive server. Possible values include: 'HiveServer1', 'HiveServer2', 'HiveThriftServer' - ServerType HiveServerType `json:"serverType,omitempty"` - // ThriftTransportProtocol - The transport protocol to use in the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP' - ThriftTransportProtocol HiveThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` - // AuthenticationType - The authentication method used to access the Hive server. Possible values include: 'Anonymous', 'Username', 'UsernameAndPassword', 'WindowsAzureHDInsightService' - AuthenticationType HiveAuthenticationType `json:"authenticationType,omitempty"` - // ServiceDiscoveryMode - true to indicate using the ZooKeeper service, false not. - ServiceDiscoveryMode interface{} `json:"serviceDiscoveryMode,omitempty"` - // ZooKeeperNameSpace - The namespace on ZooKeeper under which Hive Server 2 nodes are added. - ZooKeeperNameSpace interface{} `json:"zooKeeperNameSpace,omitempty"` - // UseNativeQuery - Specifies whether the driver uses native HiveQL queries,or converts them into an equivalent form in HiveQL. - UseNativeQuery interface{} `json:"useNativeQuery,omitempty"` - // Username - The user name that you use to access Hive Server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the Username field +// HTTPLinkedServiceTypeProperties properties specific to this linked service type. +type HTTPLinkedServiceTypeProperties struct { + // URL - The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // AuthenticationType - The authentication type to be used to connect to the HTTP server. Possible values include: 'HTTPAuthenticationTypeBasic', 'HTTPAuthenticationTypeAnonymous', 'HTTPAuthenticationTypeDigest', 'HTTPAuthenticationTypeWindows', 'HTTPAuthenticationTypeClientCertificate' + AuthenticationType HTTPAuthenticationType `json:"authenticationType,omitempty"` + // UserName - User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. Password BasicSecretBase `json:"password,omitempty"` - // HTTPPath - The partial URL corresponding to the Hive server. - HTTPPath interface{} `json:"httpPath,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - 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. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` - // AllowHostNameCNMismatch - 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. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + // AuthHeaders - The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType object). + AuthHeaders interface{} `json:"authHeaders,omitempty"` + // EmbeddedCertData - 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). + EmbeddedCertData interface{} `json:"embeddedCertData,omitempty"` + // CertThumbprint - 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). + CertThumbprint interface{} `json:"certThumbprint,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // EnableServerCertificateValidation - If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). + EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for HiveLinkedServiceTypeProperties struct. -func (hlstp *HiveLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for HTTPLinkedServiceTypeProperties struct. +func (hlstp *HTTPLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -117288,157 +116480,315 @@ func (hlstp *HiveLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "host": + case "url": if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) + var URL interface{} + err = json.Unmarshal(*v, &URL) if err != nil { return err } - hlstp.Host = host + hlstp.URL = URL } - case "port": + case "authenticationType": if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) + var authenticationType HTTPAuthenticationType + err = json.Unmarshal(*v, &authenticationType) if err != nil { return err } - hlstp.Port = port + hlstp.AuthenticationType = authenticationType } - case "serverType": + case "userName": if v != nil { - var serverType HiveServerType - err = json.Unmarshal(*v, &serverType) + var userName interface{} + err = json.Unmarshal(*v, &userName) if err != nil { return err } - hlstp.ServerType = serverType + hlstp.UserName = userName } - case "thriftTransportProtocol": + case "password": if v != nil { - var thriftTransportProtocol HiveThriftTransportProtocol - err = json.Unmarshal(*v, &thriftTransportProtocol) + password, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - hlstp.ThriftTransportProtocol = thriftTransportProtocol + hlstp.Password = password } - case "authenticationType": + case "authHeaders": if v != nil { - var authenticationType HiveAuthenticationType - err = json.Unmarshal(*v, &authenticationType) + var authHeaders interface{} + err = json.Unmarshal(*v, &authHeaders) if err != nil { return err } - hlstp.AuthenticationType = authenticationType + hlstp.AuthHeaders = authHeaders } - case "serviceDiscoveryMode": + case "embeddedCertData": if v != nil { - var serviceDiscoveryMode interface{} - err = json.Unmarshal(*v, &serviceDiscoveryMode) + var embeddedCertData interface{} + err = json.Unmarshal(*v, &embeddedCertData) if err != nil { return err } - hlstp.ServiceDiscoveryMode = serviceDiscoveryMode + hlstp.EmbeddedCertData = embeddedCertData } - case "zooKeeperNameSpace": + case "certThumbprint": if v != nil { - var zooKeeperNameSpace interface{} - err = json.Unmarshal(*v, &zooKeeperNameSpace) + var certThumbprint interface{} + err = json.Unmarshal(*v, &certThumbprint) if err != nil { return err } - hlstp.ZooKeeperNameSpace = zooKeeperNameSpace + hlstp.CertThumbprint = certThumbprint } - case "useNativeQuery": + case "encryptedCredential": if v != nil { - var useNativeQuery interface{} - err = json.Unmarshal(*v, &useNativeQuery) + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) if err != nil { return err } - hlstp.UseNativeQuery = useNativeQuery + hlstp.EncryptedCredential = encryptedCredential } - case "username": + case "enableServerCertificateValidation": if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) + var enableServerCertificateValidation interface{} + err = json.Unmarshal(*v, &enableServerCertificateValidation) if err != nil { return err } - hlstp.Username = username + hlstp.EnableServerCertificateValidation = enableServerCertificateValidation } - case "password": + } + } + + return nil +} + +// HTTPReadSettings sftp read settings. +type HTTPReadSettings struct { + // RequestMethod - The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). + RequestMethod interface{} `json:"requestMethod,omitempty"` + // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). + RequestBody interface{} `json:"requestBody,omitempty"` + // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). + AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + // RequestTimeout - Specifies the timeout for a HTTP client to get HTTP response from HTTP server. + RequestTimeout interface{} `json:"requestTimeout,omitempty"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. + EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HTTPReadSettings. +func (hrs HTTPReadSettings) MarshalJSON() ([]byte, error) { + hrs.Type = TypeHTTPReadSettings + objectMap := make(map[string]interface{}) + if hrs.RequestMethod != nil { + objectMap["requestMethod"] = hrs.RequestMethod + } + if hrs.RequestBody != nil { + objectMap["requestBody"] = hrs.RequestBody + } + if hrs.AdditionalHeaders != nil { + objectMap["additionalHeaders"] = hrs.AdditionalHeaders + } + if hrs.RequestTimeout != nil { + objectMap["requestTimeout"] = hrs.RequestTimeout + } + if hrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = hrs.EnablePartitionDiscovery + } + if hrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = hrs.PartitionRootPath + } + if hrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hrs.MaxConcurrentConnections + } + if hrs.Type != "" { + objectMap["type"] = hrs.Type + } + for k, v := range hrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return &hrs, true +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &hrs, true +} + +// UnmarshalJSON is the custom unmarshaler for HTTPReadSettings struct. +func (hrs *HTTPReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "requestMethod": if v != nil { - password, err := unmarshalBasicSecretBase(*v) + var requestMethod interface{} + err = json.Unmarshal(*v, &requestMethod) if err != nil { return err } - hlstp.Password = password + hrs.RequestMethod = requestMethod } - case "httpPath": + case "requestBody": if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) + var requestBody interface{} + err = json.Unmarshal(*v, &requestBody) if err != nil { return err } - hlstp.HTTPPath = HTTPPath + hrs.RequestBody = requestBody } - case "enableSsl": + case "additionalHeaders": if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) + var additionalHeaders interface{} + err = json.Unmarshal(*v, &additionalHeaders) if err != nil { return err } - hlstp.EnableSsl = enableSsl + hrs.AdditionalHeaders = additionalHeaders } - case "trustedCertPath": + case "requestTimeout": if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) + var requestTimeout interface{} + err = json.Unmarshal(*v, &requestTimeout) if err != nil { return err } - hlstp.TrustedCertPath = trustedCertPath + hrs.RequestTimeout = requestTimeout } - case "useSystemTrustStore": + case "enablePartitionDiscovery": if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) + var enablePartitionDiscovery bool + err = json.Unmarshal(*v, &enablePartitionDiscovery) if err != nil { return err } - hlstp.UseSystemTrustStore = useSystemTrustStore + hrs.EnablePartitionDiscovery = &enablePartitionDiscovery } - case "allowHostNameCNMismatch": + case "partitionRootPath": if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) if err != nil { return err } - hlstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + hrs.PartitionRootPath = partitionRootPath } - case "allowSelfSignedServerCert": + default: if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - hlstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + if hrs.AdditionalProperties == nil { + hrs.AdditionalProperties = make(map[string]interface{}) + } + hrs.AdditionalProperties[k] = additionalProperties } - case "encryptedCredential": + case "maxConcurrentConnections": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - hlstp.EncryptedCredential = encryptedCredential + hrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hrs.Type = typeVar } } } @@ -117446,1183 +116796,1796 @@ func (hlstp *HiveLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { return nil } -// HiveObjectDataset hive Server dataset. -type HiveObjectDataset struct { - // HiveDatasetTypeProperties - Properties specific to this dataset type. - *HiveDatasetTypeProperties `json:"typeProperties,omitempty"` +// HTTPServerLocation the location of http server. +type HTTPServerLocation struct { + // RelativeURL - Specify the relativeUrl of http server. Type: string (or Expression with resultType string) + RelativeURL interface{} `json:"relativeUrl,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for HiveObjectDataset. -func (hod HiveObjectDataset) MarshalJSON() ([]byte, error) { - hod.Type = TypeHiveObject +// MarshalJSON is the custom marshaler for HTTPServerLocation. +func (hsl HTTPServerLocation) MarshalJSON() ([]byte, error) { + hsl.Type = TypeHTTPServerLocation objectMap := make(map[string]interface{}) - if hod.HiveDatasetTypeProperties != nil { - objectMap["typeProperties"] = hod.HiveDatasetTypeProperties + if hsl.RelativeURL != nil { + objectMap["relativeUrl"] = hsl.RelativeURL } - if hod.Description != nil { - objectMap["description"] = hod.Description + if hsl.FolderPath != nil { + objectMap["folderPath"] = hsl.FolderPath } - if hod.Structure != nil { - objectMap["structure"] = hod.Structure + if hsl.FileName != nil { + objectMap["fileName"] = hsl.FileName } - if hod.Schema != nil { - objectMap["schema"] = hod.Schema + if hsl.Type != "" { + objectMap["type"] = hsl.Type } - if hod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hod.LinkedServiceName + for k, v := range hsl.AdditionalProperties { + objectMap[k] = v } - if hod.Parameters != nil { - objectMap["parameters"] = hod.Parameters + return json.Marshal(objectMap) +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return &hsl, true +} + +// AsSftpLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &hsl, true +} + +// UnmarshalJSON is the custom unmarshaler for HTTPServerLocation struct. +func (hsl *HTTPServerLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err } - if hod.Annotations != nil { - objectMap["annotations"] = hod.Annotations + for k, v := range m { + switch k { + case "relativeUrl": + if v != nil { + var relativeURL interface{} + err = json.Unmarshal(*v, &relativeURL) + if err != nil { + return err + } + hsl.RelativeURL = relativeURL + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hsl.AdditionalProperties == nil { + hsl.AdditionalProperties = make(map[string]interface{}) + } + hsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + hsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + hsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hsl.Type = typeVar + } + } } - if hod.Folder != nil { - objectMap["folder"] = hod.Folder + + return nil +} + +// HTTPSource a copy activity source for an HTTP file. +type HTTPSource struct { + // HTTPRequestTimeout - Specifies the timeout for a HTTP client to get HTTP response from HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HTTPSource. +func (hs HTTPSource) MarshalJSON() ([]byte, error) { + hs.Type = TypeHTTPSource + objectMap := make(map[string]interface{}) + if hs.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = hs.HTTPRequestTimeout } - if hod.Type != "" { - objectMap["type"] = hod.Type + if hs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = hs.SourceRetryCount } - for k, v := range hod.AdditionalProperties { + if hs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = hs.SourceRetryWait + } + if hs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections + } + if hs.Type != "" { + objectMap["type"] = hs.Type + } + for k, v := range hs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsHTTPSource() (*HTTPSource, bool) { + return &hs, true +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsSQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return &hod, true +// AsSapHanaSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsBinarySource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsAvroSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsCopySource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false +// AsBasicCopySource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsBasicCopySource() (BasicCopySource, bool) { + return &hs, true } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for HTTPSource struct. +func (hs *HTTPSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + hs.HTTPRequestTimeout = HTTPRequestTimeout + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hs.AdditionalProperties == nil { + hs.AdditionalProperties = make(map[string]interface{}) + } + hs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + hs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + hs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + hs.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hs.Type = typeVar + } + } + } + + return nil } -// AsPostgreSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false +// HdfsLinkedService hadoop Distributed File System (HDFS) linked service. +type HdfsLinkedService struct { + // HdfsLinkedServiceTypeProperties - HDFS linked service properties. + *HdfsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// AsMySQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for HdfsLinkedService. +func (hls HdfsLinkedService) MarshalJSON() ([]byte, error) { + hls.Type = TypeHdfs + objectMap := make(map[string]interface{}) + if hls.HdfsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hls.HdfsLinkedServiceTypeProperties + } + if hls.ConnectVia != nil { + objectMap["connectVia"] = hls.ConnectVia + } + if hls.Description != nil { + objectMap["description"] = hls.Description + } + if hls.Parameters != nil { + objectMap["parameters"] = hls.Parameters + } + if hls.Annotations != nil { + objectMap["annotations"] = hls.Annotations + } + if hls.Type != "" { + objectMap["type"] = hls.Type + } + for k, v := range hls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsOdbcTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDataset() (*Dataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &hod, true +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for HiveObjectDataset struct. -func (hod *HiveObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hiveDatasetTypeProperties HiveDatasetTypeProperties - err = json.Unmarshal(*v, &hiveDatasetTypeProperties) - if err != nil { - return err - } - hod.HiveDatasetTypeProperties = &hiveDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hod.AdditionalProperties == nil { - hod.AdditionalProperties = make(map[string]interface{}) - } - hod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - hod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - hod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - hod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hod.Type = typeVar - } - } - } - - return nil +// AsConcurLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false } -// HiveSource a copy activity Hive Server source. -type HiveSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for HiveSource. -func (hs HiveSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeHiveSource - objectMap := make(map[string]interface{}) - if hs.Query != nil { - objectMap["query"] = hs.Query - } - if hs.QueryTimeout != nil { - objectMap["queryTimeout"] = hs.QueryTimeout - } - if hs.AdditionalColumns != nil { - objectMap["additionalColumns"] = hs.AdditionalColumns - } - if hs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = hs.SourceRetryCount - } - if hs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = hs.SourceRetryWait - } - if hs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections - } - if hs.Type != "" { - objectMap["type"] = hs.Type - } - for k, v := range hs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false } -// AsSharePointOnlineListSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHTTPSource() (*HTTPSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOffice365Source() (*Office365Source, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsWebSource() (*WebSource, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOracleSource() (*OracleSource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHdfsSource() (*HdfsSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsRestSource() (*RestSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsODataSource() (*ODataSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsRelationalSource() (*RelationalSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false +// AsHdfsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return &hls, true } -// AsBlobSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsBlobSource() (*BlobSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsVerticaSource() (*VerticaSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsZohoSource() (*ZohoSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsXeroSource() (*XeroSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSquareSource() (*SquareSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSparkSource() (*SparkSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsShopifySource() (*ShopifySource, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPrestoSource() (*PrestoSource, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPaypalSource() (*PaypalSource, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMarketoSource() (*MarketoSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMagentoSource() (*MagentoSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsJiraSource() (*JiraSource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHubspotSource() (*HubspotSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHiveSource() (*HiveSource, bool) { - return &hs, true +// AsSQLServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false } -// AsHBaseSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHBaseSource() (*HBaseSource, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsEloquaSource() (*EloquaSource, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDrillSource() (*DrillSource, bool) { +// AsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false +// AsBasicLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &hls, true +} + +// UnmarshalJSON is the custom unmarshaler for HdfsLinkedService struct. +func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hdfsLinkedServiceTypeProperties HdfsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &hdfsLinkedServiceTypeProperties) + if err != nil { + return err + } + hls.HdfsLinkedServiceTypeProperties = &hdfsLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hls.AdditionalProperties == nil { + hls.AdditionalProperties = make(map[string]interface{}) + } + hls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + hls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hls.Type = typeVar + } + } + } + + return nil +} + +// HdfsLinkedServiceTypeProperties HDFS linked service properties. +type HdfsLinkedServiceTypeProperties struct { + // URL - The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // AuthenticationType - Type of authentication used to connect to the HDFS. Possible values are: Anonymous and Windows. Type: string (or Expression with resultType string). + AuthenticationType interface{} `json:"authenticationType,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // UserName - User name for Windows authentication. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password for Windows authentication. + Password BasicSecretBase `json:"password,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HdfsLinkedServiceTypeProperties struct. +func (hlstp *HdfsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + hlstp.URL = URL + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + hlstp.AuthenticationType = authenticationType + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + hlstp.EncryptedCredential = encryptedCredential + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + hlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hlstp.Password = password + } + } + } + + return nil } -// AsConcurSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false +// HdfsLocation the location of HDFS. +type HdfsLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for HdfsLocation. +func (hl HdfsLocation) MarshalJSON() ([]byte, error) { + hl.Type = TypeHdfsLocation + objectMap := make(map[string]interface{}) + if hl.FolderPath != nil { + objectMap["folderPath"] = hl.FolderPath + } + if hl.FileName != nil { + objectMap["fileName"] = hl.FileName + } + if hl.Type != "" { + objectMap["type"] = hl.Type + } + for k, v := range hl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsAmazonMWSSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false +// AsHdfsLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return &hl, true } -// AsCassandraSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCassandraSource() (*CassandraSource, bool) { +// AsHTTPServerLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsTeradataSource() (*TeradataSource, bool) { +// AsSftpLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsSftpLocation() (*SftpLocation, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsFtpServerLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSQLMISource() (*SQLMISource, bool) { +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSQLSource() (*SQLSource, bool) { +// AsFileServerLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsFileServerLocation() (*FileServerLocation, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapTableSource() (*SapTableSource, bool) { +// AsAmazonS3Location is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapEccSource() (*SapEccSource, bool) { +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDatasetLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsDatasetLocation() (*DatasetLocation, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &hl, true } -// AsSapBwSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for HdfsLocation struct. +func (hl *HdfsLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hl.AdditionalProperties == nil { + hl.AdditionalProperties = make(map[string]interface{}) + } + hl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + hl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + hl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hl.Type = typeVar + } + } + } -// AsSybaseSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false + return nil } -// AsPostgreSQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false +// HdfsReadSettings HDFS read settings. +type HdfsReadSettings struct { + // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + Recursive interface{} `json:"recursive,omitempty"` + // WildcardFolderPath - HDFS wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - HDFS wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). + FileListPath interface{} `json:"fileListPath,omitempty"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. + EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // DistcpSettings - Specifies Distcp-related settings. + DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` + // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` } -// AsMySQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for HdfsReadSettings. +func (hrs HdfsReadSettings) MarshalJSON() ([]byte, error) { + hrs.Type = TypeHdfsReadSettings + objectMap := make(map[string]interface{}) + if hrs.Recursive != nil { + objectMap["recursive"] = hrs.Recursive + } + if hrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = hrs.WildcardFolderPath + } + if hrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = hrs.WildcardFileName + } + if hrs.FileListPath != nil { + objectMap["fileListPath"] = hrs.FileListPath + } + if hrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = hrs.EnablePartitionDiscovery + } + if hrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = hrs.PartitionRootPath + } + if hrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = hrs.ModifiedDatetimeStart + } + if hrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = hrs.ModifiedDatetimeEnd + } + if hrs.DistcpSettings != nil { + objectMap["distcpSettings"] = hrs.DistcpSettings + } + if hrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = hrs.DeleteFilesAfterCompletion + } + if hrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hrs.MaxConcurrentConnections + } + if hrs.Type != "" { + objectMap["type"] = hrs.Type + } + for k, v := range hrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsOdbcSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return &hrs, true } -// AsDb2Source is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDb2Source() (*Db2Source, bool) { +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsInformixSource() (*InformixSource, bool) { +// AsSftpReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsFtpReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsTabularSource() (*TabularSource, bool) { +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &hs, true -} - -// AsBinarySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsBinarySource() (*BinarySource, bool) { +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOrcSource() (*OrcSource, bool) { +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsXMLSource() (*XMLSource, bool) { +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsJSONSource() (*JSONSource, bool) { +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAvroSource() (*AvroSource, bool) { +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCopySource() (*CopySource, bool) { +// AsStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hs, true +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &hrs, true } -// UnmarshalJSON is the custom unmarshaler for HiveSource struct. -func (hs *HiveSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for HdfsReadSettings struct. +func (hrs *HdfsReadSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -118630,62 +118593,107 @@ func (hs *HiveSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "recursive": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var recursive interface{} + err = json.Unmarshal(*v, &recursive) if err != nil { return err } - hs.Query = query + hrs.Recursive = recursive } - case "queryTimeout": + case "wildcardFolderPath": if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) if err != nil { return err } - hs.QueryTimeout = queryTimeout + hrs.WildcardFolderPath = wildcardFolderPath } - case "additionalColumns": + case "wildcardFileName": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) if err != nil { return err } - hs.AdditionalColumns = &additionalColumns + hrs.WildcardFileName = wildcardFileName } - default: + case "fileListPath": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) if err != nil { return err } - if hs.AdditionalProperties == nil { - hs.AdditionalProperties = make(map[string]interface{}) + hrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery bool + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err } - hs.AdditionalProperties[k] = additionalProperties + hrs.EnablePartitionDiscovery = &enablePartitionDiscovery } - case "sourceRetryCount": + case "partitionRootPath": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) if err != nil { return err } - hs.SourceRetryCount = sourceRetryCount + hrs.PartitionRootPath = partitionRootPath } - case "sourceRetryWait": + case "modifiedDatetimeStart": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) if err != nil { return err } - hs.SourceRetryWait = sourceRetryWait + hrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + hrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + case "distcpSettings": + if v != nil { + var distcpSettings DistcpSettings + err = json.Unmarshal(*v, &distcpSettings) + if err != nil { + return err + } + hrs.DistcpSettings = &distcpSettings + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + hrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hrs.AdditionalProperties == nil { + hrs.AdditionalProperties = make(map[string]interface{}) + } + hrs.AdditionalProperties[k] = additionalProperties } case "maxConcurrentConnections": if v != nil { @@ -118694,16 +118702,16 @@ func (hs *HiveSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - hs.MaxConcurrentConnections = maxConcurrentConnections + hrs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicStoreReadSettings err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - hs.Type = typeVar + hrs.Type = typeVar } } } @@ -118711,670 +118719,534 @@ func (hs *HiveSource) UnmarshalJSON(body []byte) error { return nil } -// HTTPDataset a file in an HTTP web server. -type HTTPDataset struct { - // HTTPDatasetTypeProperties - Properties specific to this dataset type. - *HTTPDatasetTypeProperties `json:"typeProperties,omitempty"` +// HdfsSource a copy activity HDFS source. +type HdfsSource struct { + // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + Recursive interface{} `json:"recursive,omitempty"` + // DistcpSettings - Specifies Distcp-related settings. + DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for HTTPDataset. -func (hd HTTPDataset) MarshalJSON() ([]byte, error) { - hd.Type = TypeHTTPFile +// MarshalJSON is the custom marshaler for HdfsSource. +func (hs HdfsSource) MarshalJSON() ([]byte, error) { + hs.Type = TypeHdfsSource objectMap := make(map[string]interface{}) - if hd.HTTPDatasetTypeProperties != nil { - objectMap["typeProperties"] = hd.HTTPDatasetTypeProperties - } - if hd.Description != nil { - objectMap["description"] = hd.Description - } - if hd.Structure != nil { - objectMap["structure"] = hd.Structure - } - if hd.Schema != nil { - objectMap["schema"] = hd.Schema + if hs.Recursive != nil { + objectMap["recursive"] = hs.Recursive } - if hd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hd.LinkedServiceName + if hs.DistcpSettings != nil { + objectMap["distcpSettings"] = hs.DistcpSettings } - if hd.Parameters != nil { - objectMap["parameters"] = hd.Parameters + if hs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = hs.SourceRetryCount } - if hd.Annotations != nil { - objectMap["annotations"] = hd.Annotations + if hs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = hs.SourceRetryWait } - if hd.Folder != nil { - objectMap["folder"] = hd.Folder + if hs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections } - if hd.Type != "" { - objectMap["type"] = hd.Type + if hs.Type != "" { + objectMap["type"] = hs.Type } - for k, v := range hd.AdditionalProperties { + for k, v := range hs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsHTTPSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOffice365Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsMongoDbSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsWebSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsOracleSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false +// AsHdfsSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsHdfsSource() (*HdfsSource, bool) { + return &hs, true } -// AsShopifyObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsFileSystemSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsRestSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsODataSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsRelationalSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsDynamicsSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsBlobSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsResponsysSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsVerticaSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsNetezzaSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsZohoSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsXeroSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSquareSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return &hd, true -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsSparkSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsShopifySource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsServiceNowSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsPrestoSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsPhoenixSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsPaypalSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsBinarySource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsParquetSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDataset() (*Dataset, bool) { +// AsExcelSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsBasicDataset() (BasicDataset, bool) { - return &hd, true +// AsAvroSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAvroSource() (*AvroSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for HTTPDataset struct. -func (hd *HTTPDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var HTTPDatasetTypeProperties HTTPDatasetTypeProperties - err = json.Unmarshal(*v, &HTTPDatasetTypeProperties) - if err != nil { - return err - } - hd.HTTPDatasetTypeProperties = &HTTPDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hd.AdditionalProperties == nil { - hd.AdditionalProperties = make(map[string]interface{}) - } - hd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - hd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - hd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - hd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hd.Type = typeVar - } - } - } - - return nil +// AsCopySource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCopySource() (*CopySource, bool) { + return nil, false } -// HTTPDatasetTypeProperties properties specific to this dataset type. -type HTTPDatasetTypeProperties struct { - // RelativeURL - The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType string). - RelativeURL interface{} `json:"relativeUrl,omitempty"` - // RequestMethod - The HTTP method for the HTTP request. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` - // RequestBody - The body for the HTTP request. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` - // AdditionalHeaders - The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1 - // ... - // request-header-name-n:request-header-value-n Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` - // Format - The format of files. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used on files. - Compression BasicDatasetCompression `json:"compression,omitempty"` +// AsBasicCopySource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsBasicCopySource() (BasicCopySource, bool) { + return &hs, true } -// UnmarshalJSON is the custom unmarshaler for HTTPDatasetTypeProperties struct. -func (hdtp *HTTPDatasetTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for HdfsSource struct. +func (hs *HdfsSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -119382,57 +119254,71 @@ func (hdtp *HTTPDatasetTypeProperties) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "relativeUrl": + case "recursive": if v != nil { - var relativeURL interface{} - err = json.Unmarshal(*v, &relativeURL) + var recursive interface{} + err = json.Unmarshal(*v, &recursive) if err != nil { return err } - hdtp.RelativeURL = relativeURL + hs.Recursive = recursive } - case "requestMethod": + case "distcpSettings": if v != nil { - var requestMethod interface{} - err = json.Unmarshal(*v, &requestMethod) + var distcpSettings DistcpSettings + err = json.Unmarshal(*v, &distcpSettings) if err != nil { return err } - hdtp.RequestMethod = requestMethod + hs.DistcpSettings = &distcpSettings } - case "requestBody": + default: if v != nil { - var requestBody interface{} - err = json.Unmarshal(*v, &requestBody) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - hdtp.RequestBody = requestBody + if hs.AdditionalProperties == nil { + hs.AdditionalProperties = make(map[string]interface{}) + } + hs.AdditionalProperties[k] = additionalProperties } - case "additionalHeaders": + case "sourceRetryCount": if v != nil { - var additionalHeaders interface{} - err = json.Unmarshal(*v, &additionalHeaders) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - hdtp.AdditionalHeaders = additionalHeaders + hs.SourceRetryCount = sourceRetryCount } - case "format": + case "sourceRetryWait": if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - hdtp.Format = formatVar + hs.SourceRetryWait = sourceRetryWait } - case "compression": + case "maxConcurrentConnections": if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - hdtp.Compression = compression + hs.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hs.Type = typeVar } } } @@ -119440,10 +119326,20 @@ func (hdtp *HTTPDatasetTypeProperties) UnmarshalJSON(body []byte) error { return nil } -// HTTPLinkedService linked service for an HTTP source. -type HTTPLinkedService struct { - // HTTPLinkedServiceTypeProperties - Properties specific to this linked service type. - *HTTPLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// HiveDatasetTypeProperties hive Properties +type HiveDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Hive. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Hive. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// HiveLinkedService hive Server linked service. +type HiveLinkedService struct { + // HiveLinkedServiceTypeProperties - Hive Server linked service properties. + *HiveLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -119458,12 +119354,12 @@ type HTTPLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for HTTPLinkedService. -func (hls HTTPLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeHTTPServer +// MarshalJSON is the custom marshaler for HiveLinkedService. +func (hls HiveLinkedService) MarshalJSON() ([]byte, error) { + hls.Type = TypeHive objectMap := make(map[string]interface{}) - if hls.HTTPLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HTTPLinkedServiceTypeProperties + if hls.HiveLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hls.HiveLinkedServiceTypeProperties } if hls.ConnectVia != nil { objectMap["connectVia"] = hls.ConnectVia @@ -119486,518 +119382,518 @@ func (hls HTTPLinkedService) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false +// AsHiveLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return &hls, true } -// AsHBaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return &hls, true +// AsHTTPLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { +// AsBasicLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { return &hls, true } -// UnmarshalJSON is the custom unmarshaler for HTTPLinkedService struct. -func (hls *HTTPLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for HiveLinkedService struct. +func (hls *HiveLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -120007,12 +119903,12 @@ func (hls *HTTPLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var HTTPLinkedServiceTypeProperties HTTPLinkedServiceTypeProperties - err = json.Unmarshal(*v, &HTTPLinkedServiceTypeProperties) + var hiveLinkedServiceTypeProperties HiveLinkedServiceTypeProperties + err = json.Unmarshal(*v, &hiveLinkedServiceTypeProperties) if err != nil { return err } - hls.HTTPLinkedServiceTypeProperties = &HTTPLinkedServiceTypeProperties + hls.HiveLinkedServiceTypeProperties = &hiveLinkedServiceTypeProperties } default: if v != nil { @@ -120074,469 +119970,752 @@ func (hls *HTTPLinkedService) UnmarshalJSON(body []byte) error { } } - return nil + return nil +} + +// HiveLinkedServiceTypeProperties hive Server linked service properties. +type HiveLinkedServiceTypeProperties struct { + // Host - IP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode is enable). + Host interface{} `json:"host,omitempty"` + // Port - The TCP port that the Hive server uses to listen for client connections. + Port interface{} `json:"port,omitempty"` + // ServerType - The type of Hive server. Possible values include: 'HiveServer1', 'HiveServer2', 'HiveThriftServer' + ServerType HiveServerType `json:"serverType,omitempty"` + // ThriftTransportProtocol - The transport protocol to use in the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP' + ThriftTransportProtocol HiveThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` + // AuthenticationType - The authentication method used to access the Hive server. Possible values include: 'Anonymous', 'Username', 'UsernameAndPassword', 'WindowsAzureHDInsightService' + AuthenticationType HiveAuthenticationType `json:"authenticationType,omitempty"` + // ServiceDiscoveryMode - true to indicate using the ZooKeeper service, false not. + ServiceDiscoveryMode interface{} `json:"serviceDiscoveryMode,omitempty"` + // ZooKeeperNameSpace - The namespace on ZooKeeper under which Hive Server 2 nodes are added. + ZooKeeperNameSpace interface{} `json:"zooKeeperNameSpace,omitempty"` + // UseNativeQuery - Specifies whether the driver uses native HiveQL queries,or converts them into an equivalent form in HiveQL. + UseNativeQuery interface{} `json:"useNativeQuery,omitempty"` + // Username - The user name that you use to access Hive Server. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name that you provided in the Username field + Password BasicSecretBase `json:"password,omitempty"` + // HTTPPath - The partial URL corresponding to the Hive server. + HTTPPath interface{} `json:"httpPath,omitempty"` + // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. + EnableSsl interface{} `json:"enableSsl,omitempty"` + // TrustedCertPath - 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. + TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + // AllowHostNameCNMismatch - 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. + AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. + AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HiveLinkedServiceTypeProperties struct. +func (hlstp *HiveLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + hlstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + hlstp.Port = port + } + case "serverType": + if v != nil { + var serverType HiveServerType + err = json.Unmarshal(*v, &serverType) + if err != nil { + return err + } + hlstp.ServerType = serverType + } + case "thriftTransportProtocol": + if v != nil { + var thriftTransportProtocol HiveThriftTransportProtocol + err = json.Unmarshal(*v, &thriftTransportProtocol) + if err != nil { + return err + } + hlstp.ThriftTransportProtocol = thriftTransportProtocol + } + case "authenticationType": + if v != nil { + var authenticationType HiveAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + hlstp.AuthenticationType = authenticationType + } + case "serviceDiscoveryMode": + if v != nil { + var serviceDiscoveryMode interface{} + err = json.Unmarshal(*v, &serviceDiscoveryMode) + if err != nil { + return err + } + hlstp.ServiceDiscoveryMode = serviceDiscoveryMode + } + case "zooKeeperNameSpace": + if v != nil { + var zooKeeperNameSpace interface{} + err = json.Unmarshal(*v, &zooKeeperNameSpace) + if err != nil { + return err + } + hlstp.ZooKeeperNameSpace = zooKeeperNameSpace + } + case "useNativeQuery": + if v != nil { + var useNativeQuery interface{} + err = json.Unmarshal(*v, &useNativeQuery) + if err != nil { + return err + } + hlstp.UseNativeQuery = useNativeQuery + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + hlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hlstp.Password = password + } + case "httpPath": + if v != nil { + var HTTPPath interface{} + err = json.Unmarshal(*v, &HTTPPath) + if err != nil { + return err + } + hlstp.HTTPPath = HTTPPath + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + hlstp.EnableSsl = enableSsl + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + hlstp.TrustedCertPath = trustedCertPath + } + case "useSystemTrustStore": + if v != nil { + var useSystemTrustStore interface{} + err = json.Unmarshal(*v, &useSystemTrustStore) + if err != nil { + return err + } + hlstp.UseSystemTrustStore = useSystemTrustStore + } + case "allowHostNameCNMismatch": + if v != nil { + var allowHostNameCNMismatch interface{} + err = json.Unmarshal(*v, &allowHostNameCNMismatch) + if err != nil { + return err + } + hlstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + } + case "allowSelfSignedServerCert": + if v != nil { + var allowSelfSignedServerCert interface{} + err = json.Unmarshal(*v, &allowSelfSignedServerCert) + if err != nil { + return err + } + hlstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + hlstp.EncryptedCredential = encryptedCredential + } + } + } + + return nil +} + +// HiveObjectDataset hive Server dataset. +type HiveObjectDataset struct { + // HiveDatasetTypeProperties - Properties specific to this dataset type. + *HiveDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HiveObjectDataset. +func (hod HiveObjectDataset) MarshalJSON() ([]byte, error) { + hod.Type = TypeHiveObject + objectMap := make(map[string]interface{}) + if hod.HiveDatasetTypeProperties != nil { + objectMap["typeProperties"] = hod.HiveDatasetTypeProperties + } + if hod.Description != nil { + objectMap["description"] = hod.Description + } + if hod.Structure != nil { + objectMap["structure"] = hod.Structure + } + if hod.Schema != nil { + objectMap["schema"] = hod.Schema + } + if hod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hod.LinkedServiceName + } + if hod.Parameters != nil { + objectMap["parameters"] = hod.Parameters + } + if hod.Annotations != nil { + objectMap["annotations"] = hod.Annotations + } + if hod.Folder != nil { + objectMap["folder"] = hod.Folder + } + if hod.Type != "" { + objectMap["type"] = hod.Type + } + for k, v := range hod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return &hod, true +} + +// AsHBaseObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false } -// HTTPLinkedServiceTypeProperties properties specific to this linked service type. -type HTTPLinkedServiceTypeProperties struct { - // URL - The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the HTTP server. Possible values include: 'HTTPAuthenticationTypeBasic', 'HTTPAuthenticationTypeAnonymous', 'HTTPAuthenticationTypeDigest', 'HTTPAuthenticationTypeWindows', 'HTTPAuthenticationTypeClientCertificate' - AuthenticationType HTTPAuthenticationType `json:"authenticationType,omitempty"` - // UserName - User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. - Password BasicSecretBase `json:"password,omitempty"` - // AuthHeaders - The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType object). - AuthHeaders interface{} `json:"authHeaders,omitempty"` - // EmbeddedCertData - 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). - EmbeddedCertData interface{} `json:"embeddedCertData,omitempty"` - // CertThumbprint - 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). - CertThumbprint interface{} `json:"certThumbprint,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - // EnableServerCertificateValidation - If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for HTTPLinkedServiceTypeProperties struct. -func (hlstp *HTTPLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - hlstp.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType HTTPAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hlstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - hlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.Password = password - } - case "authHeaders": - if v != nil { - var authHeaders interface{} - err = json.Unmarshal(*v, &authHeaders) - if err != nil { - return err - } - hlstp.AuthHeaders = authHeaders - } - case "embeddedCertData": - if v != nil { - var embeddedCertData interface{} - err = json.Unmarshal(*v, &embeddedCertData) - if err != nil { - return err - } - hlstp.EmbeddedCertData = embeddedCertData - } - case "certThumbprint": - if v != nil { - var certThumbprint interface{} - err = json.Unmarshal(*v, &certThumbprint) - if err != nil { - return err - } - hlstp.CertThumbprint = certThumbprint - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hlstp.EncryptedCredential = encryptedCredential - } - case "enableServerCertificateValidation": - if v != nil { - var enableServerCertificateValidation interface{} - err = json.Unmarshal(*v, &enableServerCertificateValidation) - if err != nil { - return err - } - hlstp.EnableServerCertificateValidation = enableServerCertificateValidation - } - } - } +// AsSalesforceObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} - return nil +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false } -// HTTPReadSettings sftp read settings. -type HTTPReadSettings struct { - // RequestMethod - The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` - // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` - // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` - // RequestTimeout - Specifies the timeout for a HTTP client to get HTTP response from HTTP server. - RequestTimeout interface{} `json:"requestTimeout,omitempty"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` +// AsPostgreSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for HTTPReadSettings. -func (hrs HTTPReadSettings) MarshalJSON() ([]byte, error) { - hrs.Type = TypeHTTPReadSettings - objectMap := make(map[string]interface{}) - if hrs.RequestMethod != nil { - objectMap["requestMethod"] = hrs.RequestMethod - } - if hrs.RequestBody != nil { - objectMap["requestBody"] = hrs.RequestBody - } - if hrs.AdditionalHeaders != nil { - objectMap["additionalHeaders"] = hrs.AdditionalHeaders - } - if hrs.RequestTimeout != nil { - objectMap["requestTimeout"] = hrs.RequestTimeout - } - if hrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = hrs.EnablePartitionDiscovery - } - if hrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = hrs.PartitionRootPath - } - if hrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hrs.MaxConcurrentConnections - } - if hrs.Type != "" { - objectMap["type"] = hrs.Type - } - for k, v := range hrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsMySQLTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false } -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return &hrs, true +// AsInformixTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false } -// AsSftpReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsFtpReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { +// AsDb2TableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { +// AsOracleTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { +// AsODataResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { +// AsFileShareDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &hrs, true +// AsOffice365Dataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for HTTPReadSettings struct. -func (hrs *HTTPReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "requestMethod": - if v != nil { - var requestMethod interface{} - err = json.Unmarshal(*v, &requestMethod) - if err != nil { - return err - } - hrs.RequestMethod = requestMethod - } - case "requestBody": - if v != nil { - var requestBody interface{} - err = json.Unmarshal(*v, &requestBody) - if err != nil { - return err - } - hrs.RequestBody = requestBody - } - case "additionalHeaders": - if v != nil { - var additionalHeaders interface{} - err = json.Unmarshal(*v, &additionalHeaders) - if err != nil { - return err - } - hrs.AdditionalHeaders = additionalHeaders - } - case "requestTimeout": - if v != nil { - var requestTimeout interface{} - err = json.Unmarshal(*v, &requestTimeout) - if err != nil { - return err - } - hrs.RequestTimeout = requestTimeout - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery bool - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - hrs.EnablePartitionDiscovery = &enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - hrs.PartitionRootPath = partitionRootPath - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hrs.AdditionalProperties == nil { - hrs.AdditionalProperties = make(map[string]interface{}) - } - hrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - hrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hrs.Type = typeVar - } - } - } +// AsAzureBlobFSDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} - return nil +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false } -// HTTPServerLocation the location of http server. -type HTTPServerLocation struct { - // RelativeURL - Specify the relativeUrl of http server. Type: string (or Expression with resultType string) - RelativeURL interface{} `json:"relativeUrl,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for HTTPServerLocation. -func (hsl HTTPServerLocation) MarshalJSON() ([]byte, error) { - hsl.Type = TypeHTTPServerLocation - objectMap := make(map[string]interface{}) - if hsl.RelativeURL != nil { - objectMap["relativeUrl"] = hsl.RelativeURL - } - if hsl.FolderPath != nil { - objectMap["folderPath"] = hsl.FolderPath - } - if hsl.FileName != nil { - objectMap["fileName"] = hsl.FileName - } - if hsl.Type != "" { - objectMap["type"] = hsl.Type - } - for k, v := range hsl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false } -// AsHdfsLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsHTTPServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return &hsl, true +// AsDocumentDbCollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false } -// AsSftpLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsSftpLocation() (*SftpLocation, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsFtpServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { +// AsCustomDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsFileServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { +// AsAzureTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAmazonS3Location is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { +// AsBinaryDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { +// AsOrcDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { +// AsXMLDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsDatasetLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { +// AsJSONDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &hsl, true +// AsDelimitedTextDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for HTTPServerLocation struct. -func (hsl *HTTPServerLocation) UnmarshalJSON(body []byte) error { +// AsParquetDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &hod, true +} + +// UnmarshalJSON is the custom unmarshaler for HiveObjectDataset struct. +func (hod *HiveObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -120544,14 +120723,14 @@ func (hsl *HTTPServerLocation) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "relativeUrl": + case "typeProperties": if v != nil { - var relativeURL interface{} - err = json.Unmarshal(*v, &relativeURL) + var hiveDatasetTypeProperties HiveDatasetTypeProperties + err = json.Unmarshal(*v, &hiveDatasetTypeProperties) if err != nil { return err } - hsl.RelativeURL = relativeURL + hod.HiveDatasetTypeProperties = &hiveDatasetTypeProperties } default: if v != nil { @@ -120560,37 +120739,82 @@ func (hsl *HTTPServerLocation) UnmarshalJSON(body []byte) error { if err != nil { return err } - if hsl.AdditionalProperties == nil { - hsl.AdditionalProperties = make(map[string]interface{}) + if hod.AdditionalProperties == nil { + hod.AdditionalProperties = make(map[string]interface{}) } - hsl.AdditionalProperties[k] = additionalProperties + hod.AdditionalProperties[k] = additionalProperties } - case "folderPath": + case "description": if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - hsl.FolderPath = folderPath + hod.Description = &description } - case "fileName": + case "structure": if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - hsl.FileName = fileName + hod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + hod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + hod.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicDatasetLocation + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - hsl.Type = typeVar + hod.Type = typeVar } } } @@ -120598,10 +120822,14 @@ func (hsl *HTTPServerLocation) UnmarshalJSON(body []byte) error { return nil } -// HTTPSource a copy activity source for an HTTP file. -type HTTPSource struct { - // HTTPRequestTimeout - Specifies the timeout for a HTTP client to get HTTP response from HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` +// HiveSource a copy activity Hive Server source. +type HiveSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). @@ -120614,12 +120842,18 @@ type HTTPSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for HTTPSource. -func (hs HTTPSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeHTTPSource +// MarshalJSON is the custom marshaler for HiveSource. +func (hs HiveSource) MarshalJSON() ([]byte, error) { + hs.Type = TypeHiveSource objectMap := make(map[string]interface{}) - if hs.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = hs.HTTPRequestTimeout + if hs.Query != nil { + objectMap["query"] = hs.Query + } + if hs.QueryTimeout != nil { + objectMap["queryTimeout"] = hs.QueryTimeout + } + if hs.AdditionalColumns != nil { + objectMap["additionalColumns"] = hs.AdditionalColumns } if hs.SourceRetryCount != nil { objectMap["sourceRetryCount"] = hs.SourceRetryCount @@ -120639,488 +120873,488 @@ func (hs HTTPSource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHTTPSource() (*HTTPSource, bool) { - return &hs, true +// AsHTTPSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHiveSource() (*HiveSource, bool) { - return nil, false +// AsHiveSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsHiveSource() (*HiveSource, bool) { + return &hs, true } -// AsHBaseSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &hs, true } -// AsBinarySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsBasicCopySource() (BasicCopySource, bool) { +// AsBasicCopySource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsBasicCopySource() (BasicCopySource, bool) { return &hs, true } -// UnmarshalJSON is the custom unmarshaler for HTTPSource struct. -func (hs *HTTPSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for HiveSource struct. +func (hs *HiveSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -121128,14 +121362,32 @@ func (hs *HTTPSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "httpRequestTimeout": + case "query": if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - hs.HTTPRequestTimeout = HTTPRequestTimeout + hs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + hs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + hs.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -126488,7 +126740,7 @@ type InformixSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -126528,6 +126780,16 @@ func (is InformixSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for InformixSink. func (is InformixSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -129317,84 +129579,6 @@ func (irsp *IntegrationRuntimeSsisProperties) UnmarshalJSON(body []byte) error { return nil } -// IntegrationRuntimesStartFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type IntegrationRuntimesStartFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(IntegrationRuntimesClient) (IntegrationRuntimeStatusResponse, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *IntegrationRuntimesStartFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for IntegrationRuntimesStartFuture.Result. -func (future *IntegrationRuntimesStartFuture) result(client IntegrationRuntimesClient) (irsr IntegrationRuntimeStatusResponse, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimesStartFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if irsr.Response.Response, err = future.GetResult(sender); err == nil && irsr.Response.Response.StatusCode != http.StatusNoContent { - irsr, err = client.StartResponder(irsr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", irsr.Response.Response, "Failure responding to request") - } - } - return -} - -// IntegrationRuntimesStopFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type IntegrationRuntimesStopFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(IntegrationRuntimesClient) (autorest.Response, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *IntegrationRuntimesStopFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for IntegrationRuntimesStopFuture.Result. -func (future *IntegrationRuntimesStopFuture) result(client IntegrationRuntimesClient) (ar autorest.Response, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStopFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimesStopFuture") - return - } - ar.Response = future.Response() - return -} - // BasicIntegrationRuntimeStatus integration runtime status. type BasicIntegrationRuntimeStatus interface { AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) @@ -129682,564 +129866,622 @@ func (irvnp *IntegrationRuntimeVNetProperties) UnmarshalJSON(body []byte) error return nil } -// JiraLinkedService jira Service linked service. -type JiraLinkedService struct { - // JiraLinkedServiceTypeProperties - Jira Service linked service properties. - *JiraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// IntegrationRuntimesStartFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type IntegrationRuntimesStartFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(IntegrationRuntimesClient) (IntegrationRuntimeStatusResponse, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *IntegrationRuntimesStartFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for IntegrationRuntimesStartFuture.Result. +func (future *IntegrationRuntimesStartFuture) result(client IntegrationRuntimesClient) (irsr IntegrationRuntimeStatusResponse, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimesStartFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if irsr.Response.Response, err = future.GetResult(sender); err == nil && irsr.Response.Response.StatusCode != http.StatusNoContent { + irsr, err = client.StartResponder(irsr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", irsr.Response.Response, "Failure responding to request") + } + } + return +} + +// IntegrationRuntimesStopFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type IntegrationRuntimesStopFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(IntegrationRuntimesClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *IntegrationRuntimesStopFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for IntegrationRuntimesStopFuture.Result. +func (future *IntegrationRuntimesStopFuture) result(client IntegrationRuntimesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStopFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimesStopFuture") + return + } + ar.Response = future.Response() + return +} + +// JSONDataset json dataset. +type JSONDataset struct { + // JSONDatasetTypeProperties - Json dataset properties. + *JSONDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. + // Description - Dataset description. Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. + // Annotations - List of tags that can be used for describing the Dataset. Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for JiraLinkedService. -func (jls JiraLinkedService) MarshalJSON() ([]byte, error) { - jls.Type = TypeJira +// MarshalJSON is the custom marshaler for JSONDataset. +func (jd JSONDataset) MarshalJSON() ([]byte, error) { + jd.Type = TypeJSON objectMap := make(map[string]interface{}) - if jls.JiraLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = jls.JiraLinkedServiceTypeProperties + if jd.JSONDatasetTypeProperties != nil { + objectMap["typeProperties"] = jd.JSONDatasetTypeProperties } - if jls.ConnectVia != nil { - objectMap["connectVia"] = jls.ConnectVia + if jd.Description != nil { + objectMap["description"] = jd.Description } - if jls.Description != nil { - objectMap["description"] = jls.Description + if jd.Structure != nil { + objectMap["structure"] = jd.Structure } - if jls.Parameters != nil { - objectMap["parameters"] = jls.Parameters + if jd.Schema != nil { + objectMap["schema"] = jd.Schema } - if jls.Annotations != nil { - objectMap["annotations"] = jls.Annotations + if jd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = jd.LinkedServiceName } - if jls.Type != "" { - objectMap["type"] = jls.Type + if jd.Parameters != nil { + objectMap["parameters"] = jd.Parameters } - for k, v := range jls.AdditionalProperties { + if jd.Annotations != nil { + objectMap["annotations"] = jd.Annotations + } + if jd.Folder != nil { + objectMap["folder"] = jd.Folder + } + if jd.Type != "" { + objectMap["type"] = jd.Type + } + for k, v := range jd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return &jls, true -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsDrillTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsHTTPDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsWebTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsRestResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsInformixTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsDb2TableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsOracleTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsODataResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsFileShareDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsOffice365Dataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCustomDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBinaryDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsOrcDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsXMLDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false +// AsJSONDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsJSONDataset() (*JSONDataset, bool) { + return &jd, true } -// AsSQLServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsParquetDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsExcelDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAvroDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &jls, true +// AsBasicDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsBasicDataset() (BasicDataset, bool) { + return &jd, true } -// UnmarshalJSON is the custom unmarshaler for JiraLinkedService struct. -func (jls *JiraLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for JSONDataset struct. +func (jd *JSONDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -130249,12 +130491,12 @@ func (jls *JiraLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var jiraLinkedServiceTypeProperties JiraLinkedServiceTypeProperties - err = json.Unmarshal(*v, &jiraLinkedServiceTypeProperties) + var JSONDatasetTypeProperties JSONDatasetTypeProperties + err = json.Unmarshal(*v, &JSONDatasetTypeProperties) if err != nil { return err } - jls.JiraLinkedServiceTypeProperties = &jiraLinkedServiceTypeProperties + jd.JSONDatasetTypeProperties = &JSONDatasetTypeProperties } default: if v != nil { @@ -130263,19 +130505,10 @@ func (jls *JiraLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if jls.AdditionalProperties == nil { - jls.AdditionalProperties = make(map[string]interface{}) - } - jls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err + if jd.AdditionalProperties == nil { + jd.AdditionalProperties = make(map[string]interface{}) } - jls.ConnectVia = &connectVia + jd.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -130284,140 +130517,70 @@ func (jls *JiraLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - jls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - jls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - jls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jls.Type = typeVar - } - } - } - - return nil -} - -// JiraLinkedServiceTypeProperties jira Service linked service properties. -type JiraLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the Jira service. (e.g. jira.example.com) - Host interface{} `json:"host,omitempty"` - // Port - 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. - Port interface{} `json:"port,omitempty"` - // Username - The user name that you use to access Jira Service. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the username field. - Password BasicSecretBase `json:"password,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for JiraLinkedServiceTypeProperties struct. -func (jlstp *JiraLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - jlstp.Host = host + jd.Description = &description } - case "port": + case "structure": if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - jlstp.Port = port + jd.Structure = structure } - case "username": + case "schema": if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - jlstp.Username = username + jd.Schema = schema } - case "password": + case "linkedServiceName": if v != nil { - password, err := unmarshalBasicSecretBase(*v) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - jlstp.Password = password + jd.LinkedServiceName = &linkedServiceName } - case "useEncryptedEndpoints": + case "parameters": if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - jlstp.UseEncryptedEndpoints = useEncryptedEndpoints + jd.Parameters = parameters } - case "useHostVerification": + case "annotations": if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - jlstp.UseHostVerification = useHostVerification + jd.Annotations = &annotations } - case "usePeerVerification": + case "folder": if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - jlstp.UsePeerVerification = usePeerVerification + jd.Folder = &folder } - case "encryptedCredential": + case "type": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - jlstp.EncryptedCredential = encryptedCredential + jd.Type = typeVar } } } @@ -130425,544 +130588,605 @@ func (jlstp *JiraLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { return nil } -// JiraObjectDataset jira Service dataset. -type JiraObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` +// JSONDatasetTypeProperties json dataset properties. +type JSONDatasetTypeProperties struct { + // Location - The location of the json data storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // EncodingName - 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). + EncodingName interface{} `json:"encodingName,omitempty"` + // Compression - The data compression method used for the json dataset. + Compression BasicDatasetCompression `json:"compression,omitempty"` } -// MarshalJSON is the custom marshaler for JiraObjectDataset. -func (jod JiraObjectDataset) MarshalJSON() ([]byte, error) { - jod.Type = TypeJiraObject - objectMap := make(map[string]interface{}) - if jod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = jod.GenericDatasetTypeProperties - } - if jod.Description != nil { - objectMap["description"] = jod.Description - } - if jod.Structure != nil { - objectMap["structure"] = jod.Structure - } - if jod.Schema != nil { - objectMap["schema"] = jod.Schema - } - if jod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = jod.LinkedServiceName - } - if jod.Parameters != nil { - objectMap["parameters"] = jod.Parameters - } - if jod.Annotations != nil { - objectMap["annotations"] = jod.Annotations - } - if jod.Folder != nil { - objectMap["folder"] = jod.Folder - } - if jod.Type != "" { - objectMap["type"] = jod.Type - } - for k, v := range jod.AdditionalProperties { - objectMap[k] = v +// UnmarshalJSON is the custom unmarshaler for JSONDatasetTypeProperties struct. +func (jdtp *JSONDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + location, err := unmarshalBasicDatasetLocation(*v) + if err != nil { + return err + } + jdtp.Location = location + } + case "encodingName": + if v != nil { + var encodingName interface{} + err = json.Unmarshal(*v, &encodingName) + if err != nil { + return err + } + jdtp.EncodingName = encodingName + } + case "compression": + if v != nil { + compression, err := unmarshalBasicDatasetCompression(*v) + if err != nil { + return err + } + jdtp.Compression = compression + } + } } - return json.Marshal(objectMap) -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return &jod, true -} - -// AsImpalaObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} -// AsGreenplumTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false + return nil } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false +// JSONFormat the data stored in JSON format. +type JSONFormat struct { + // FilePattern - File pattern of JSON. To be more specific, the way of separating a collection of JSON objects. The default value is 'setOfObjects'. It is case-sensitive. + FilePattern interface{} `json:"filePattern,omitempty"` + // NestingSeparator - The character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType string). + NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + // EncodingName - The code page name of the preferred encoding. If not provided, the default value is 'utf-8', unless the byte order mark (BOM) denotes another Unicode encoding. The full list of supported values can be found in the 'Name' column of the table of encodings in the following reference: https://go.microsoft.com/fwlink/?linkid=861078. Type: string (or Expression with resultType string). + EncodingName interface{} `json:"encodingName,omitempty"` + // JSONNodeReference - The JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType string). + JSONNodeReference interface{} `json:"jsonNodeReference,omitempty"` + // JSONPathDefinition - The JSONPath definition for each column mapping with a customized column name to extract data from JSON file. For fields under root object, start with "$"; for fields inside the array chosen by jsonNodeReference property, start from the array element. Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object (or Expression with resultType object). + JSONPathDefinition interface{} `json:"jsonPathDefinition,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Serializer - Serializer. Type: string (or Expression with resultType string). + Serializer interface{} `json:"serializer,omitempty"` + // Deserializer - Deserializer. Type: string (or Expression with resultType string). + Deserializer interface{} `json:"deserializer,omitempty"` + // Type - Possible values include: 'TypeDatasetStorageFormat', 'TypeParquetFormat', 'TypeOrcFormat', 'TypeAvroFormat', 'TypeJSONFormat', 'TypeTextFormat' + Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` } -// AsEloquaObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for JSONFormat. +func (jf JSONFormat) MarshalJSON() ([]byte, error) { + jf.Type = TypeJSONFormat + objectMap := make(map[string]interface{}) + if jf.FilePattern != nil { + objectMap["filePattern"] = jf.FilePattern + } + if jf.NestingSeparator != nil { + objectMap["nestingSeparator"] = jf.NestingSeparator + } + if jf.EncodingName != nil { + objectMap["encodingName"] = jf.EncodingName + } + if jf.JSONNodeReference != nil { + objectMap["jsonNodeReference"] = jf.JSONNodeReference + } + if jf.JSONPathDefinition != nil { + objectMap["jsonPathDefinition"] = jf.JSONPathDefinition + } + if jf.Serializer != nil { + objectMap["serializer"] = jf.Serializer + } + if jf.Deserializer != nil { + objectMap["deserializer"] = jf.Deserializer + } + if jf.Type != "" { + objectMap["type"] = jf.Type + } + for k, v := range jf.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsDrillTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsParquetFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsParquetFormat() (*ParquetFormat, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsOrcFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsOrcFormat() (*OrcFormat, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsAvroFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsAvroFormat() (*AvroFormat, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false +// AsJSONFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsJSONFormat() (*JSONFormat, bool) { + return &jf, true } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsTextFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsTextFormat() (*TextFormat, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false +// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { + return &jf, true } -// AsWebTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for JSONFormat struct. +func (jf *JSONFormat) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "filePattern": + if v != nil { + var filePattern interface{} + err = json.Unmarshal(*v, &filePattern) + if err != nil { + return err + } + jf.FilePattern = filePattern + } + case "nestingSeparator": + if v != nil { + var nestingSeparator interface{} + err = json.Unmarshal(*v, &nestingSeparator) + if err != nil { + return err + } + jf.NestingSeparator = nestingSeparator + } + case "encodingName": + if v != nil { + var encodingName interface{} + err = json.Unmarshal(*v, &encodingName) + if err != nil { + return err + } + jf.EncodingName = encodingName + } + case "jsonNodeReference": + if v != nil { + var JSONNodeReference interface{} + err = json.Unmarshal(*v, &JSONNodeReference) + if err != nil { + return err + } + jf.JSONNodeReference = JSONNodeReference + } + case "jsonPathDefinition": + if v != nil { + var JSONPathDefinition interface{} + err = json.Unmarshal(*v, &JSONPathDefinition) + if err != nil { + return err + } + jf.JSONPathDefinition = JSONPathDefinition + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if jf.AdditionalProperties == nil { + jf.AdditionalProperties = make(map[string]interface{}) + } + jf.AdditionalProperties[k] = additionalProperties + } + case "serializer": + if v != nil { + var serializer interface{} + err = json.Unmarshal(*v, &serializer) + if err != nil { + return err + } + jf.Serializer = serializer + } + case "deserializer": + if v != nil { + var deserializer interface{} + err = json.Unmarshal(*v, &deserializer) + if err != nil { + return err + } + jf.Deserializer = deserializer + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetStorageFormat + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + jf.Type = typeVar + } + } + } -// AsSapTableResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false + return nil } -// AsRestResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false +// JSONReadSettings json read settings. +type JSONReadSettings struct { + // CompressionProperties - Compression settings. + CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeFormatReadSettings', 'TypeBinaryReadSettings', 'TypeXMLReadSettings', 'TypeJSONReadSettings', 'TypeDelimitedTextReadSettings' + Type TypeBasicFormatReadSettings `json:"type,omitempty"` } -// AsSQLServerTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for JSONReadSettings. +func (jrs JSONReadSettings) MarshalJSON() ([]byte, error) { + jrs.Type = TypeJSONReadSettings + objectMap := make(map[string]interface{}) + objectMap["compressionProperties"] = jrs.CompressionProperties + if jrs.Type != "" { + objectMap["type"] = jrs.Type + } + for k, v := range jrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsSapOpenHubTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsBinaryReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsXMLReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false +// AsJSONReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { + return &jrs, true } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsFormatReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false +// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { + return &jrs, true } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for JSONReadSettings struct. +func (jrs *JSONReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "compressionProperties": + if v != nil { + compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) + if err != nil { + return err + } + jrs.CompressionProperties = compressionProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if jrs.AdditionalProperties == nil { + jrs.AdditionalProperties = make(map[string]interface{}) + } + jrs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + jrs.Type = typeVar + } + } + } -// AsSalesforceObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false + return nil } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false +// JSONSink a copy activity Json sink. +type JSONSink struct { + // StoreSettings - Json store settings. + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` + // FormatSettings - Json format settings. + FormatSettings *JSONWriteSettings `json:"formatSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// AsPostgreSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for JSONSink. +func (js JSONSink) MarshalJSON() ([]byte, error) { + js.Type = TypeJSONSink + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = js.StoreSettings + if js.FormatSettings != nil { + objectMap["formatSettings"] = js.FormatSettings + } + if js.WriteBatchSize != nil { + objectMap["writeBatchSize"] = js.WriteBatchSize + } + if js.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = js.WriteBatchTimeout + } + if js.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = js.SinkRetryCount + } + if js.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = js.SinkRetryWait + } + if js.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections + } + if js.Type != "" { + objectMap["type"] = js.Type + } + for k, v := range js.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsMySQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsSalesforceSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsDynamicsSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsInformixSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsOdbcSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOracleSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSQLDWSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSQLMISink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSQLServerSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSQLSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsFileSystemSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsBlobSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsBinarySink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsParquetSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAvroSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureTableSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsRestSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsOrcSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false +// AsJSONSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsJSONSink() (*JSONSink, bool) { + return &js, true } -// AsAmazonS3Dataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDataset() (*Dataset, bool) { +// AsCopySink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &jod, true +// AsBasicCopySink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsBasicCopySink() (BasicCopySink, bool) { + return &js, true } -// UnmarshalJSON is the custom unmarshaler for JiraObjectDataset struct. -func (jod *JiraObjectDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for JSONSink struct. +func (js *JSONSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -130970,98 +131194,88 @@ func (jod *JiraObjectDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "storeSettings": if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) if err != nil { return err } - jod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + js.StoreSettings = storeSettings } - default: + case "formatSettings": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var formatSettings JSONWriteSettings + err = json.Unmarshal(*v, &formatSettings) if err != nil { return err } - if jod.AdditionalProperties == nil { - jod.AdditionalProperties = make(map[string]interface{}) - } - jod.AdditionalProperties[k] = additionalProperties + js.FormatSettings = &formatSettings } - case "description": + default: if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - jod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err + if js.AdditionalProperties == nil { + js.AdditionalProperties = make(map[string]interface{}) } - jod.Structure = structure + js.AdditionalProperties[k] = additionalProperties } - case "schema": + case "writeBatchSize": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - jod.Schema = schema + js.WriteBatchSize = writeBatchSize } - case "linkedServiceName": + case "writeBatchTimeout": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - jod.LinkedServiceName = &linkedServiceName + js.WriteBatchTimeout = writeBatchTimeout } - case "parameters": + case "sinkRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) if err != nil { return err } - jod.Parameters = parameters + js.SinkRetryCount = sinkRetryCount } - case "annotations": + case "sinkRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) if err != nil { return err } - jod.Annotations = &annotations + js.SinkRetryWait = sinkRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - jod.Folder = &folder + js.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - jod.Type = typeVar + js.Type = typeVar } } } @@ -131069,12 +131283,12 @@ func (jod *JiraObjectDataset) UnmarshalJSON(body []byte) error { return nil } -// JiraSource a copy activity Jira Service source. -type JiraSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` +// JSONSource a copy activity Json source. +type JSONSource struct { + // StoreSettings - Json store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // FormatSettings - Json format settings. + FormatSettings *JSONReadSettings `json:"formatSettings,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -131089,15 +131303,13 @@ type JiraSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for JiraSource. -func (js JiraSource) MarshalJSON() ([]byte, error) { - js.Type = TypeJiraSource +// MarshalJSON is the custom marshaler for JSONSource. +func (js JSONSource) MarshalJSON() ([]byte, error) { + js.Type = TypeJSONSource objectMap := make(map[string]interface{}) - if js.Query != nil { - objectMap["query"] = js.Query - } - if js.QueryTimeout != nil { - objectMap["queryTimeout"] = js.QueryTimeout + objectMap["storeSettings"] = js.StoreSettings + if js.FormatSettings != nil { + objectMap["formatSettings"] = js.FormatSettings } if js.AdditionalColumns != nil { objectMap["additionalColumns"] = js.AdditionalColumns @@ -131120,488 +131332,488 @@ func (js JiraSource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsJiraSource() (*JiraSource, bool) { - return &js, true +// AsJiraSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsJiraSource() (*JiraSource, bool) { + return nil, false } -// AsImpalaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &js, true +// AsBasicTabularSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsJSONSource() (*JSONSource, bool) { - return nil, false +// AsJSONSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsJSONSource() (*JSONSource, bool) { + return &js, true } -// AsDelimitedTextSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsBasicCopySource() (BasicCopySource, bool) { +// AsBasicCopySource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsBasicCopySource() (BasicCopySource, bool) { return &js, true } -// UnmarshalJSON is the custom unmarshaler for JiraSource struct. -func (js *JiraSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for JSONSource struct. +func (js *JSONSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -131609,23 +131821,22 @@ func (js *JiraSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "storeSettings": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + storeSettings, err := unmarshalBasicStoreReadSettings(*v) if err != nil { return err } - js.Query = query + js.StoreSettings = storeSettings } - case "queryTimeout": + case "formatSettings": if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var formatSettings JSONReadSettings + err = json.Unmarshal(*v, &formatSettings) if err != nil { return err } - js.QueryTimeout = queryTimeout + js.FormatSettings = &formatSettings } case "additionalColumns": if v != nil { @@ -131690,544 +131901,670 @@ func (js *JiraSource) UnmarshalJSON(body []byte) error { return nil } -// JSONDataset json dataset. -type JSONDataset struct { - // JSONDatasetTypeProperties - Json dataset properties. - *JSONDatasetTypeProperties `json:"typeProperties,omitempty"` +// JSONWriteSettings json write settings. +type JSONWriteSettings struct { + // FilePattern - File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is 'setOfObjects'. It is case-sensitive. Possible values include: 'SetOfObjects', 'ArrayOfObjects' + FilePattern JSONWriteFilePattern `json:"filePattern,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // Type - Possible values include: 'TypeFormatWriteSettings', 'TypeJSONWriteSettings', 'TypeDelimitedTextWriteSettings', 'TypeOrcWriteSettings', 'TypeAvroWriteSettings', 'TypeParquetWriteSettings' + Type TypeBasicFormatWriteSettings `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for JSONDataset. -func (jd JSONDataset) MarshalJSON() ([]byte, error) { - jd.Type = TypeJSON +// MarshalJSON is the custom marshaler for JSONWriteSettings. +func (jws JSONWriteSettings) MarshalJSON() ([]byte, error) { + jws.Type = TypeJSONWriteSettings objectMap := make(map[string]interface{}) - if jd.JSONDatasetTypeProperties != nil { - objectMap["typeProperties"] = jd.JSONDatasetTypeProperties + if jws.FilePattern != "" { + objectMap["filePattern"] = jws.FilePattern } - if jd.Description != nil { - objectMap["description"] = jd.Description + if jws.Type != "" { + objectMap["type"] = jws.Type } - if jd.Structure != nil { - objectMap["structure"] = jd.Structure + for k, v := range jws.AdditionalProperties { + objectMap[k] = v } - if jd.Schema != nil { - objectMap["schema"] = jd.Schema + return json.Marshal(objectMap) +} + +// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { + return &jws, true +} + +// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { + return nil, false +} + +// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { + return nil, false +} + +// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { + return nil, false +} + +// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { + return nil, false +} + +// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { + return nil, false +} + +// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { + return &jws, true +} + +// UnmarshalJSON is the custom unmarshaler for JSONWriteSettings struct. +func (jws *JSONWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err } - if jd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = jd.LinkedServiceName + for k, v := range m { + switch k { + case "filePattern": + if v != nil { + var filePattern JSONWriteFilePattern + err = json.Unmarshal(*v, &filePattern) + if err != nil { + return err + } + jws.FilePattern = filePattern + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if jws.AdditionalProperties == nil { + jws.AdditionalProperties = make(map[string]interface{}) + } + jws.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + jws.Type = typeVar + } + } } - if jd.Parameters != nil { - objectMap["parameters"] = jd.Parameters + + return nil +} + +// JiraLinkedService jira Service linked service. +type JiraLinkedService struct { + // JiraLinkedServiceTypeProperties - Jira Service linked service properties. + *JiraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JiraLinkedService. +func (jls JiraLinkedService) MarshalJSON() ([]byte, error) { + jls.Type = TypeJira + objectMap := make(map[string]interface{}) + if jls.JiraLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = jls.JiraLinkedServiceTypeProperties } - if jd.Annotations != nil { - objectMap["annotations"] = jd.Annotations + if jls.ConnectVia != nil { + objectMap["connectVia"] = jls.ConnectVia } - if jd.Folder != nil { - objectMap["folder"] = jd.Folder + if jls.Description != nil { + objectMap["description"] = jls.Description } - if jd.Type != "" { - objectMap["type"] = jd.Type + if jls.Parameters != nil { + objectMap["parameters"] = jls.Parameters } - for k, v := range jd.AdditionalProperties { + if jls.Annotations != nil { + objectMap["annotations"] = jls.Annotations + } + if jls.Type != "" { + objectMap["type"] = jls.Type + } + for k, v := range jls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return &jls, true +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsJSONDataset() (*JSONDataset, bool) { - return &jd, true +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDataset() (*Dataset, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsBasicDataset() (BasicDataset, bool) { - return &jd, true +// AsSQLServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for JSONDataset struct. -func (jd *JSONDataset) UnmarshalJSON(body []byte) error { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &jls, true +} + +// UnmarshalJSON is the custom unmarshaler for JiraLinkedService struct. +func (jls *JiraLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -132237,12 +132574,12 @@ func (jd *JSONDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var JSONDatasetTypeProperties JSONDatasetTypeProperties - err = json.Unmarshal(*v, &JSONDatasetTypeProperties) + var jiraLinkedServiceTypeProperties JiraLinkedServiceTypeProperties + err = json.Unmarshal(*v, &jiraLinkedServiceTypeProperties) if err != nil { return err } - jd.JSONDatasetTypeProperties = &JSONDatasetTypeProperties + jls.JiraLinkedServiceTypeProperties = &jiraLinkedServiceTypeProperties } default: if v != nil { @@ -132251,46 +132588,28 @@ func (jd *JSONDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if jd.AdditionalProperties == nil { - jd.AdditionalProperties = make(map[string]interface{}) - } - jd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - jd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err + if jls.AdditionalProperties == nil { + jls.AdditionalProperties = make(map[string]interface{}) } - jd.Structure = structure + jls.AdditionalProperties[k] = additionalProperties } - case "schema": + case "connectVia": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - jd.Schema = schema + jls.ConnectVia = &connectVia } - case "linkedServiceName": + case "description": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - jd.LinkedServiceName = &linkedServiceName + jls.Description = &description } case "parameters": if v != nil { @@ -132299,7 +132618,7 @@ func (jd *JSONDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - jd.Parameters = parameters + jls.Parameters = parameters } case "annotations": if v != nil { @@ -132308,25 +132627,16 @@ func (jd *JSONDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - jd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - jd.Folder = &folder + jls.Annotations = &annotations } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicLinkedService err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - jd.Type = typeVar + jls.Type = typeVar } } } @@ -132334,18 +132644,28 @@ func (jd *JSONDataset) UnmarshalJSON(body []byte) error { return nil } -// JSONDatasetTypeProperties json dataset properties. -type JSONDatasetTypeProperties struct { - // Location - The location of the json data storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // EncodingName - 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). - EncodingName interface{} `json:"encodingName,omitempty"` - // Compression - The data compression method used for the json dataset. - Compression BasicDatasetCompression `json:"compression,omitempty"` +// JiraLinkedServiceTypeProperties jira Service linked service properties. +type JiraLinkedServiceTypeProperties struct { + // Host - The IP address or host name of the Jira service. (e.g. jira.example.com) + Host interface{} `json:"host,omitempty"` + // Port - 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. + Port interface{} `json:"port,omitempty"` + // Username - The user name that you use to access Jira Service. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name that you provided in the username field. + Password BasicSecretBase `json:"password,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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. + UseHostVerification interface{} `json:"useHostVerification,omitempty"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for JSONDatasetTypeProperties struct. -func (jdtp *JSONDatasetTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for JiraLinkedServiceTypeProperties struct. +func (jlstp *JiraLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -132353,30 +132673,76 @@ func (jdtp *JSONDatasetTypeProperties) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "location": + case "host": if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) + var host interface{} + err = json.Unmarshal(*v, &host) if err != nil { return err } - jdtp.Location = location + jlstp.Host = host } - case "encodingName": + case "port": if v != nil { - var encodingName interface{} - err = json.Unmarshal(*v, &encodingName) + var port interface{} + err = json.Unmarshal(*v, &port) if err != nil { return err } - jdtp.EncodingName = encodingName + jlstp.Port = port } - case "compression": + case "username": if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) + var username interface{} + err = json.Unmarshal(*v, &username) if err != nil { return err } - jdtp.Compression = compression + jlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + jlstp.Password = password + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + jlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + jlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + jlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + jlstp.EncryptedCredential = encryptedCredential } } } @@ -132384,545 +132750,544 @@ func (jdtp *JSONDatasetTypeProperties) UnmarshalJSON(body []byte) error { return nil } -// JSONFormat the data stored in JSON format. -type JSONFormat struct { - // FilePattern - File pattern of JSON. To be more specific, the way of separating a collection of JSON objects. The default value is 'setOfObjects'. It is case-sensitive. - FilePattern interface{} `json:"filePattern,omitempty"` - // NestingSeparator - The character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` - // EncodingName - The code page name of the preferred encoding. If not provided, the default value is 'utf-8', unless the byte order mark (BOM) denotes another Unicode encoding. The full list of supported values can be found in the 'Name' column of the table of encodings in the following reference: https://go.microsoft.com/fwlink/?linkid=861078. Type: string (or Expression with resultType string). - EncodingName interface{} `json:"encodingName,omitempty"` - // JSONNodeReference - The JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType string). - JSONNodeReference interface{} `json:"jsonNodeReference,omitempty"` - // JSONPathDefinition - The JSONPath definition for each column mapping with a customized column name to extract data from JSON file. For fields under root object, start with "$"; for fields inside the array chosen by jsonNodeReference property, start from the array element. Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object (or Expression with resultType object). - JSONPathDefinition interface{} `json:"jsonPathDefinition,omitempty"` +// JiraObjectDataset jira Service dataset. +type JiraObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeDatasetStorageFormat', 'TypeParquetFormat', 'TypeOrcFormat', 'TypeAvroFormat', 'TypeJSONFormat', 'TypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JiraObjectDataset. +func (jod JiraObjectDataset) MarshalJSON() ([]byte, error) { + jod.Type = TypeJiraObject + objectMap := make(map[string]interface{}) + if jod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = jod.GenericDatasetTypeProperties + } + if jod.Description != nil { + objectMap["description"] = jod.Description + } + if jod.Structure != nil { + objectMap["structure"] = jod.Structure + } + if jod.Schema != nil { + objectMap["schema"] = jod.Schema + } + if jod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = jod.LinkedServiceName + } + if jod.Parameters != nil { + objectMap["parameters"] = jod.Parameters + } + if jod.Annotations != nil { + objectMap["annotations"] = jod.Annotations + } + if jod.Folder != nil { + objectMap["folder"] = jod.Folder + } + if jod.Type != "" { + objectMap["type"] = jod.Type + } + for k, v := range jod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return &jod, true +} + +// AsImpalaObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for JSONFormat. -func (jf JSONFormat) MarshalJSON() ([]byte, error) { - jf.Type = TypeJSONFormat - objectMap := make(map[string]interface{}) - if jf.FilePattern != nil { - objectMap["filePattern"] = jf.FilePattern - } - if jf.NestingSeparator != nil { - objectMap["nestingSeparator"] = jf.NestingSeparator - } - if jf.EncodingName != nil { - objectMap["encodingName"] = jf.EncodingName - } - if jf.JSONNodeReference != nil { - objectMap["jsonNodeReference"] = jf.JSONNodeReference - } - if jf.JSONPathDefinition != nil { - objectMap["jsonPathDefinition"] = jf.JSONPathDefinition - } - if jf.Serializer != nil { - objectMap["serializer"] = jf.Serializer - } - if jf.Deserializer != nil { - objectMap["deserializer"] = jf.Deserializer - } - if jf.Type != "" { - objectMap["type"] = jf.Type - } - for k, v := range jf.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false } -// AsParquetFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsParquetFormat() (*ParquetFormat, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsOrcFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsOrcFormat() (*OrcFormat, bool) { +// AsDrillTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsAvroFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsAvroFormat() (*AvroFormat, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsJSONFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsJSONFormat() (*JSONFormat, bool) { - return &jf, true +// AsConcurObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false } -// AsTextFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsTextFormat() (*TextFormat, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &jf, true +// AsHTTPDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for JSONFormat struct. -func (jf *JSONFormat) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "filePattern": - if v != nil { - var filePattern interface{} - err = json.Unmarshal(*v, &filePattern) - if err != nil { - return err - } - jf.FilePattern = filePattern - } - case "nestingSeparator": - if v != nil { - var nestingSeparator interface{} - err = json.Unmarshal(*v, &nestingSeparator) - if err != nil { - return err - } - jf.NestingSeparator = nestingSeparator - } - case "encodingName": - if v != nil { - var encodingName interface{} - err = json.Unmarshal(*v, &encodingName) - if err != nil { - return err - } - jf.EncodingName = encodingName - } - case "jsonNodeReference": - if v != nil { - var JSONNodeReference interface{} - err = json.Unmarshal(*v, &JSONNodeReference) - if err != nil { - return err - } - jf.JSONNodeReference = JSONNodeReference - } - case "jsonPathDefinition": - if v != nil { - var JSONPathDefinition interface{} - err = json.Unmarshal(*v, &JSONPathDefinition) - if err != nil { - return err - } - jf.JSONPathDefinition = JSONPathDefinition - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if jf.AdditionalProperties == nil { - jf.AdditionalProperties = make(map[string]interface{}) - } - jf.AdditionalProperties[k] = additionalProperties - } - case "serializer": - if v != nil { - var serializer interface{} - err = json.Unmarshal(*v, &serializer) - if err != nil { - return err - } - jf.Serializer = serializer - } - case "deserializer": - if v != nil { - var deserializer interface{} - err = json.Unmarshal(*v, &deserializer) - if err != nil { - return err - } - jf.Deserializer = deserializer - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetStorageFormat - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jf.Type = typeVar - } - } - } +// AsAzureSearchIndexDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} - return nil +// AsWebTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false } -// JSONReadSettings json read settings. -type JSONReadSettings struct { - // CompressionProperties - Compression settings. - CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeFormatReadSettings', 'TypeBinaryReadSettings', 'TypeXMLReadSettings', 'TypeJSONReadSettings', 'TypeDelimitedTextReadSettings' - Type TypeBasicFormatReadSettings `json:"type,omitempty"` +// AsSapTableResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for JSONReadSettings. -func (jrs JSONReadSettings) MarshalJSON() ([]byte, error) { - jrs.Type = TypeJSONReadSettings - objectMap := make(map[string]interface{}) - objectMap["compressionProperties"] = jrs.CompressionProperties - if jrs.Type != "" { - objectMap["type"] = jrs.Type - } - for k, v := range jrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsRestResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false } -// AsBinaryReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsXMLReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsJSONReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { - return &jrs, true +// AsSapHanaTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false } -// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsFormatReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { - return &jrs, true +// AsSapBwCubeDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for JSONReadSettings struct. -func (jrs *JSONReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "compressionProperties": - if v != nil { - compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) - if err != nil { - return err - } - jrs.CompressionProperties = compressionProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if jrs.AdditionalProperties == nil { - jrs.AdditionalProperties = make(map[string]interface{}) - } - jrs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jrs.Type = typeVar - } - } - } +// AsSybaseTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} - return nil +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false } -// JSONSink a copy activity Json sink. -type JSONSink struct { - // StoreSettings - Json store settings. - StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` - // FormatSettings - Json format settings. - FormatSettings *JSONWriteSettings `json:"formatSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` +// AsSalesforceObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for JSONSink. -func (js JSONSink) MarshalJSON() ([]byte, error) { - js.Type = TypeJSONSink - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = js.StoreSettings - if js.FormatSettings != nil { - objectMap["formatSettings"] = js.FormatSettings - } - if js.WriteBatchSize != nil { - objectMap["writeBatchSize"] = js.WriteBatchSize - } - if js.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = js.WriteBatchTimeout - } - if js.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = js.SinkRetryCount - } - if js.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = js.SinkRetryWait - } - if js.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections - } - if js.Type != "" { - objectMap["type"] = js.Type - } - for k, v := range js.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsInformixTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsDb2TableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsInformixSink() (*InformixSink, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsOdbcSink() (*OdbcSink, bool) { +// AsOracleTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsODataResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsOracleSink() (*OracleSink, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsFileShareDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSQLMISink() (*SQLMISink, bool) { +// AsOffice365Dataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSQLSink() (*SQLSink, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsBlobSink() (*BlobSink, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsBinarySink() (*BinarySink, bool) { +// AsCustomDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsParquetSink() (*ParquetSink, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAvroSink() (*AvroSink, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsAzureTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsBinaryDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsOrcDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsRestSink() (*RestSink, bool) { +// AsXMLDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsOrcSink() (*OrcSink, bool) { +// AsJSONDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsJSONSink() (*JSONSink, bool) { - return &js, true +// AsDelimitedTextDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsParquetDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsCopySink() (*CopySink, bool) { +// AsExcelDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsBasicCopySink() (BasicCopySink, bool) { - return &js, true +// AsAvroDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for JSONSink struct. -func (js *JSONSink) UnmarshalJSON(body []byte) error { +// AsAmazonS3Dataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &jod, true +} + +// UnmarshalJSON is the custom unmarshaler for JiraObjectDataset struct. +func (jod *JiraObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -132930,88 +133295,98 @@ func (js *JSONSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "storeSettings": + case "typeProperties": if v != nil { - storeSettings, err := unmarshalBasicStoreWriteSettings(*v) + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) if err != nil { return err } - js.StoreSettings = storeSettings + jod.GenericDatasetTypeProperties = &genericDatasetTypeProperties } - case "formatSettings": + default: if v != nil { - var formatSettings JSONWriteSettings - err = json.Unmarshal(*v, &formatSettings) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - js.FormatSettings = &formatSettings + if jod.AdditionalProperties == nil { + jod.AdditionalProperties = make(map[string]interface{}) + } + jod.AdditionalProperties[k] = additionalProperties } - default: + case "description": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - if js.AdditionalProperties == nil { - js.AdditionalProperties = make(map[string]interface{}) + jod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err } - js.AdditionalProperties[k] = additionalProperties + jod.Structure = structure } - case "writeBatchSize": + case "schema": if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - js.WriteBatchSize = writeBatchSize + jod.Schema = schema } - case "writeBatchTimeout": + case "linkedServiceName": if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - js.WriteBatchTimeout = writeBatchTimeout + jod.LinkedServiceName = &linkedServiceName } - case "sinkRetryCount": + case "parameters": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - js.SinkRetryCount = sinkRetryCount + jod.Parameters = parameters } - case "sinkRetryWait": + case "annotations": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - js.SinkRetryWait = sinkRetryWait + jod.Annotations = &annotations } - case "maxConcurrentConnections": + case "folder": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - js.MaxConcurrentConnections = maxConcurrentConnections + jod.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - js.Type = typeVar + jod.Type = typeVar } } } @@ -133019,12 +133394,12 @@ func (js *JSONSink) UnmarshalJSON(body []byte) error { return nil } -// JSONSource a copy activity Json source. -type JSONSource struct { - // StoreSettings - Json store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // FormatSettings - Json format settings. - FormatSettings *JSONReadSettings `json:"formatSettings,omitempty"` +// JiraSource a copy activity Jira Service source. +type JiraSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -133039,13 +133414,15 @@ type JSONSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for JSONSource. -func (js JSONSource) MarshalJSON() ([]byte, error) { - js.Type = TypeJSONSource +// MarshalJSON is the custom marshaler for JiraSource. +func (js JiraSource) MarshalJSON() ([]byte, error) { + js.Type = TypeJiraSource objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = js.StoreSettings - if js.FormatSettings != nil { - objectMap["formatSettings"] = js.FormatSettings + if js.Query != nil { + objectMap["query"] = js.Query + } + if js.QueryTimeout != nil { + objectMap["queryTimeout"] = js.QueryTimeout } if js.AdditionalColumns != nil { objectMap["additionalColumns"] = js.AdditionalColumns @@ -133068,488 +133445,488 @@ func (js JSONSource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsJiraSource() (*JiraSource, bool) { - return nil, false +// AsJiraSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsJiraSource() (*JiraSource, bool) { + return &js, true } -// AsImpalaSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &js, true } -// AsBinarySource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsJSONSource() (*JSONSource, bool) { - return &js, true +// AsJSONSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsJSONSource() (*JSONSource, bool) { + return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsBasicCopySource() (BasicCopySource, bool) { +// AsBasicCopySource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsBasicCopySource() (BasicCopySource, bool) { return &js, true } -// UnmarshalJSON is the custom unmarshaler for JSONSource struct. -func (js *JSONSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for JiraSource struct. +func (js *JiraSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -133557,22 +133934,23 @@ func (js *JSONSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "storeSettings": + case "query": if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - js.StoreSettings = storeSettings + js.Query = query } - case "formatSettings": + case "queryTimeout": if v != nil { - var formatSettings JSONReadSettings - err = json.Unmarshal(*v, &formatSettings) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - js.FormatSettings = &formatSettings + js.QueryTimeout = queryTimeout } case "additionalColumns": if v != nil { @@ -133637,112 +134015,6 @@ func (js *JSONSource) UnmarshalJSON(body []byte) error { return nil } -// JSONWriteSettings json write settings. -type JSONWriteSettings struct { - // FilePattern - File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is 'setOfObjects'. It is case-sensitive. Possible values include: 'SetOfObjects', 'ArrayOfObjects' - FilePattern JSONWriteFilePattern `json:"filePattern,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeFormatWriteSettings', 'TypeJSONWriteSettings', 'TypeDelimitedTextWriteSettings', 'TypeOrcWriteSettings', 'TypeAvroWriteSettings', 'TypeParquetWriteSettings' - Type TypeBasicFormatWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for JSONWriteSettings. -func (jws JSONWriteSettings) MarshalJSON() ([]byte, error) { - jws.Type = TypeJSONWriteSettings - objectMap := make(map[string]interface{}) - if jws.FilePattern != "" { - objectMap["filePattern"] = jws.FilePattern - } - if jws.Type != "" { - objectMap["type"] = jws.Type - } - for k, v := range jws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { - return &jws, true -} - -// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { - return nil, false -} - -// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { - return nil, false -} - -// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { - return nil, false -} - -// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { - return nil, false -} - -// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { - return nil, false -} - -// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { - return &jws, true -} - -// UnmarshalJSON is the custom unmarshaler for JSONWriteSettings struct. -func (jws *JSONWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "filePattern": - if v != nil { - var filePattern JSONWriteFilePattern - err = json.Unmarshal(*v, &filePattern) - if err != nil { - return err - } - jws.FilePattern = filePattern - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if jws.AdditionalProperties == nil { - jws.AdditionalProperties = make(map[string]interface{}) - } - jws.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jws.Type = typeVar - } - } - } - - return nil -} - // LicensedComponentSetupTypeProperties installation of licensed component setup type properties. type LicensedComponentSetupTypeProperties struct { // ComponentName - The name of the 3rd party component. @@ -143585,7 +143857,7 @@ type MicrosoftAccessSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -143625,6 +143897,16 @@ func (mas MicrosoftAccessSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISi return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for MicrosoftAccessSink. func (mas MicrosoftAccessSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -146457,6 +146739,352 @@ type MongoDbAtlasLinkedServiceTypeProperties struct { Database interface{} `json:"database,omitempty"` } +// MongoDbAtlasSink a copy activity MongoDB Atlas sink. +type MongoDbAtlasSink struct { + // WriteBehavior - Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) MarshalJSON() ([]byte, error) { + mdas.Type = TypeMongoDbAtlasSink + objectMap := make(map[string]interface{}) + if mdas.WriteBehavior != nil { + objectMap["writeBehavior"] = mdas.WriteBehavior + } + if mdas.WriteBatchSize != nil { + objectMap["writeBatchSize"] = mdas.WriteBatchSize + } + if mdas.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = mdas.WriteBatchTimeout + } + if mdas.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = mdas.SinkRetryCount + } + if mdas.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = mdas.SinkRetryWait + } + if mdas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mdas.MaxConcurrentConnections + } + if mdas.Type != "" { + objectMap["type"] = mdas.Type + } + for k, v := range mdas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return &mdas, true +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsBasicCopySink() (BasicCopySink, bool) { + return &mdas, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbAtlasSink struct. +func (mdas *MongoDbAtlasSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + mdas.WriteBehavior = writeBehavior + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdas.AdditionalProperties == nil { + mdas.AdditionalProperties = make(map[string]interface{}) + } + mdas.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + mdas.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + mdas.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + mdas.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + mdas.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mdas.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdas.Type = typeVar + } + } + } + + return nil +} + // MongoDbAtlasSource a copy activity source for a MongoDB Atlas database. type MongoDbAtlasSource struct { // Filter - Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType string). @@ -150521,6 +151149,352 @@ type MongoDbV2LinkedServiceTypeProperties struct { Database interface{} `json:"database,omitempty"` } +// MongoDbV2Sink a copy activity MongoDB sink. +type MongoDbV2Sink struct { + // WriteBehavior - Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default value is "insert". Type: string (or Expression with resultType string). Type: string (or Expression with resultType string). + WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) MarshalJSON() ([]byte, error) { + mdvs.Type = TypeMongoDbV2Sink + objectMap := make(map[string]interface{}) + if mdvs.WriteBehavior != nil { + objectMap["writeBehavior"] = mdvs.WriteBehavior + } + if mdvs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = mdvs.WriteBatchSize + } + if mdvs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = mdvs.WriteBatchTimeout + } + if mdvs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = mdvs.SinkRetryCount + } + if mdvs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = mdvs.SinkRetryWait + } + if mdvs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mdvs.MaxConcurrentConnections + } + if mdvs.Type != "" { + objectMap["type"] = mdvs.Type + } + for k, v := range mdvs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return &mdvs, true +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsBasicCopySink() (BasicCopySink, bool) { + return &mdvs, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbV2Sink struct. +func (mdvs *MongoDbV2Sink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + mdvs.WriteBehavior = writeBehavior + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdvs.AdditionalProperties == nil { + mdvs.AdditionalProperties = make(map[string]interface{}) + } + mdvs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + mdvs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + mdvs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + mdvs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + mdvs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mdvs.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdvs.Type = typeVar + } + } + } + + return nil +} + // MongoDbV2Source a copy activity source for a MongoDB database. type MongoDbV2Source struct { // Filter - Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType string). @@ -158084,7 +159058,7 @@ type OdbcSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -158124,6 +159098,16 @@ func (osVar OdbcSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for OdbcSink. func (osVar OdbcSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -165863,7 +166847,7 @@ type OracleSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -165903,6 +166887,16 @@ func (osVar OracleSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, boo return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for OracleSink. func (osVar OracleSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -168308,7 +169302,7 @@ type OrcSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -168349,6 +169343,16 @@ func (osVar OrcSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for OrcSink. func (osVar OrcSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -170198,7 +171202,7 @@ type ParquetSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } @@ -170239,6 +171243,16 @@ func (ps ParquetSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) return nil, false } +// AsMongoDbV2Sink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + // AsSalesforceServiceCloudSink is the BasicCopySink implementation for ParquetSink. func (ps ParquetSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false @@ -186232,1723 +187246,549 @@ func (rs *ResponsysSource) UnmarshalJSON(body []byte) error { rs.Type = typeVar } } - } - - return nil -} - -// RestResourceDataset a Rest service dataset. -type RestResourceDataset struct { - // RestResourceDatasetTypeProperties - Properties specific to this dataset type. - *RestResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for RestResourceDataset. -func (rrd RestResourceDataset) MarshalJSON() ([]byte, error) { - rrd.Type = TypeRestResource - objectMap := make(map[string]interface{}) - if rrd.RestResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = rrd.RestResourceDatasetTypeProperties - } - if rrd.Description != nil { - objectMap["description"] = rrd.Description - } - if rrd.Structure != nil { - objectMap["structure"] = rrd.Structure - } - if rrd.Schema != nil { - objectMap["schema"] = rrd.Schema - } - if rrd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = rrd.LinkedServiceName - } - if rrd.Parameters != nil { - objectMap["parameters"] = rrd.Parameters - } - if rrd.Annotations != nil { - objectMap["annotations"] = rrd.Annotations - } - if rrd.Folder != nil { - objectMap["folder"] = rrd.Folder - } - if rrd.Type != "" { - objectMap["type"] = rrd.Type - } - for k, v := range rrd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return &rrd, true -} - -// AsSQLServerTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &rrd, true -} - -// UnmarshalJSON is the custom unmarshaler for RestResourceDataset struct. -func (rrd *RestResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var restResourceDatasetTypeProperties RestResourceDatasetTypeProperties - err = json.Unmarshal(*v, &restResourceDatasetTypeProperties) - if err != nil { - return err - } - rrd.RestResourceDatasetTypeProperties = &restResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rrd.AdditionalProperties == nil { - rrd.AdditionalProperties = make(map[string]interface{}) - } - rrd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rrd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - rrd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - rrd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - rrd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - rrd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - rrd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - rrd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rrd.Type = typeVar - } - } - } - - return nil -} - -// RestResourceDatasetTypeProperties properties specific to this dataset type. -type RestResourceDatasetTypeProperties struct { - // RelativeURL - The relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string). - RelativeURL interface{} `json:"relativeUrl,omitempty"` - // RequestMethod - The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` - // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` - // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` - // PaginationRules - The pagination rules to compose next page requests. Type: string (or Expression with resultType string). - PaginationRules interface{} `json:"paginationRules,omitempty"` -} - -// RestServiceLinkedService rest Service linked service. -type RestServiceLinkedService struct { - // RestServiceLinkedServiceTypeProperties - Rest Service linked service properties. - *RestServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for RestServiceLinkedService. -func (rsls RestServiceLinkedService) MarshalJSON() ([]byte, error) { - rsls.Type = TypeRestService - objectMap := make(map[string]interface{}) - if rsls.RestServiceLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = rsls.RestServiceLinkedServiceTypeProperties - } - if rsls.ConnectVia != nil { - objectMap["connectVia"] = rsls.ConnectVia - } - if rsls.Description != nil { - objectMap["description"] = rsls.Description - } - if rsls.Parameters != nil { - objectMap["parameters"] = rsls.Parameters - } - if rsls.Annotations != nil { - objectMap["annotations"] = rsls.Annotations - } - if rsls.Type != "" { - objectMap["type"] = rsls.Type - } - for k, v := range rsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} + } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false + return nil } -// AsSapHanaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false +// RestResourceDataset a Rest service dataset. +type RestResourceDataset struct { + // RestResourceDatasetTypeProperties - Properties specific to this dataset type. + *RestResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// AsSapBWLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for RestResourceDataset. +func (rrd RestResourceDataset) MarshalJSON() ([]byte, error) { + rrd.Type = TypeRestResource + objectMap := make(map[string]interface{}) + if rrd.RestResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = rrd.RestResourceDatasetTypeProperties + } + if rrd.Description != nil { + objectMap["description"] = rrd.Description + } + if rrd.Structure != nil { + objectMap["structure"] = rrd.Structure + } + if rrd.Schema != nil { + objectMap["schema"] = rrd.Schema + } + if rrd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = rrd.LinkedServiceName + } + if rrd.Parameters != nil { + objectMap["parameters"] = rrd.Parameters + } + if rrd.Annotations != nil { + objectMap["annotations"] = rrd.Annotations + } + if rrd.Folder != nil { + objectMap["folder"] = rrd.Folder + } + if rrd.Type != "" { + objectMap["type"] = rrd.Type + } + for k, v := range rrd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsSftpServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return &rsls, true -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsDrillTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsHTTPDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsWebTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false +// AsRestResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return &rrd, true } -// AsDynamicsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &rsls, true -} - -// UnmarshalJSON is the custom unmarshaler for RestServiceLinkedService struct. -func (rsls *RestServiceLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var restServiceLinkedServiceTypeProperties RestServiceLinkedServiceTypeProperties - err = json.Unmarshal(*v, &restServiceLinkedServiceTypeProperties) - if err != nil { - return err - } - rsls.RestServiceLinkedServiceTypeProperties = &restServiceLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rsls.AdditionalProperties == nil { - rsls.AdditionalProperties = make(map[string]interface{}) - } - rsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - rsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - rsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - rsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rsls.Type = typeVar - } - } - } - - return nil -} - -// RestServiceLinkedServiceTypeProperties rest Service linked service properties. -type RestServiceLinkedServiceTypeProperties struct { - // URL - The base URL of the REST service. - URL interface{} `json:"url,omitempty"` - // EnableServerCertificateValidation - Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` - // AuthenticationType - Type of authentication used to connect to the REST service. Possible values include: 'RestServiceAuthenticationTypeAnonymous', 'RestServiceAuthenticationTypeBasic', 'RestServiceAuthenticationTypeAadServicePrincipal', 'RestServiceAuthenticationTypeManagedServiceIdentity' - AuthenticationType RestServiceAuthenticationType `json:"authenticationType,omitempty"` - // UserName - The user name used in Basic authentication type. - UserName interface{} `json:"userName,omitempty"` - // Password - The password used in Basic authentication type. - Password BasicSecretBase `json:"password,omitempty"` - // AuthHeaders - The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType object). - AuthHeaders interface{} `json:"authHeaders,omitempty"` - // ServicePrincipalID - The application's client ID used in AadServicePrincipal authentication type. - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The application's key used in AadServicePrincipal authentication type. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides. - Tenant interface{} `json:"tenant,omitempty"` - // AzureCloudType - Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` - // AadResourceID - The resource you are requesting authorization to use. - AadResourceID interface{} `json:"aadResourceId,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for RestServiceLinkedServiceTypeProperties struct. -func (rslstp *RestServiceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - rslstp.URL = URL - } - case "enableServerCertificateValidation": - if v != nil { - var enableServerCertificateValidation interface{} - err = json.Unmarshal(*v, &enableServerCertificateValidation) - if err != nil { - return err - } - rslstp.EnableServerCertificateValidation = enableServerCertificateValidation - } - case "authenticationType": - if v != nil { - var authenticationType RestServiceAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - rslstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - rslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - rslstp.Password = password - } - case "authHeaders": - if v != nil { - var authHeaders interface{} - err = json.Unmarshal(*v, &authHeaders) - if err != nil { - return err - } - rslstp.AuthHeaders = authHeaders - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - rslstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - rslstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - rslstp.Tenant = tenant - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - rslstp.AzureCloudType = azureCloudType - } - case "aadResourceId": - if v != nil { - var aadResourceID interface{} - err = json.Unmarshal(*v, &aadResourceID) - if err != nil { - return err - } - rslstp.AadResourceID = aadResourceID - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - rslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// RestSink a copy activity Rest service Sink. -type RestSink struct { - // RequestMethod - The HTTP method used to call the RESTful API. The default is POST. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` - // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` - // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` - // RequestInterval - The time to await before sending next request, in milliseconds - RequestInterval interface{} `json:"requestInterval,omitempty"` - // HTTPCompressionType - Http Compression Type to Send data in compressed format with Optimal Compression Level, Default is None. And The Only Supported option is Gzip. - HTTPCompressionType interface{} `json:"httpCompressionType,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for RestSink. -func (rs RestSink) MarshalJSON() ([]byte, error) { - rs.Type = TypeRestSink - objectMap := make(map[string]interface{}) - if rs.RequestMethod != nil { - objectMap["requestMethod"] = rs.RequestMethod - } - if rs.AdditionalHeaders != nil { - objectMap["additionalHeaders"] = rs.AdditionalHeaders - } - if rs.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = rs.HTTPRequestTimeout - } - if rs.RequestInterval != nil { - objectMap["requestInterval"] = rs.RequestInterval - } - if rs.HTTPCompressionType != nil { - objectMap["httpCompressionType"] = rs.HTTPCompressionType - } - if rs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = rs.WriteBatchSize - } - if rs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = rs.WriteBatchTimeout - } - if rs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = rs.SinkRetryCount - } - if rs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = rs.SinkRetryWait - } - if rs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections - } - if rs.Type != "" { - objectMap["type"] = rs.Type - } - for k, v := range rs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsOdbcTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsInformixTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsDb2TableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsOracleTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsODataResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsInformixSink() (*InformixSink, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsOdbcSink() (*OdbcSink, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsFileShareDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsOracleSink() (*OracleSink, bool) { +// AsOffice365Dataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSQLMISink() (*SQLMISink, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSQLSink() (*SQLSink, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsCustomDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsBlobSink() (*BlobSink, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsBinarySink() (*BinarySink, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsParquetSink() (*ParquetSink, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAvroSink() (*AvroSink, bool) { +// AsAzureTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsBinaryDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsOrcDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsXMLDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsJSONDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsRestSink() (*RestSink, bool) { - return &rs, true +// AsParquetDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false } -// AsOrcSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsOrcSink() (*OrcSink, bool) { +// AsExcelDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsJSONSink() (*JSONSink, bool) { +// AsAvroDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsCopySink() (*CopySink, bool) { +// AsDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsBasicCopySink() (BasicCopySink, bool) { - return &rs, true +// AsBasicDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &rrd, true } -// UnmarshalJSON is the custom unmarshaler for RestSink struct. -func (rs *RestSink) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for RestResourceDataset struct. +func (rrd *RestResourceDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -187956,116 +187796,98 @@ func (rs *RestSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "requestMethod": - if v != nil { - var requestMethod interface{} - err = json.Unmarshal(*v, &requestMethod) - if err != nil { - return err - } - rs.RequestMethod = requestMethod - } - case "additionalHeaders": + case "typeProperties": if v != nil { - var additionalHeaders interface{} - err = json.Unmarshal(*v, &additionalHeaders) + var restResourceDatasetTypeProperties RestResourceDatasetTypeProperties + err = json.Unmarshal(*v, &restResourceDatasetTypeProperties) if err != nil { return err } - rs.AdditionalHeaders = additionalHeaders + rrd.RestResourceDatasetTypeProperties = &restResourceDatasetTypeProperties } - case "httpRequestTimeout": + default: if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - rs.HTTPRequestTimeout = HTTPRequestTimeout - } - case "requestInterval": - if v != nil { - var requestInterval interface{} - err = json.Unmarshal(*v, &requestInterval) - if err != nil { - return err + if rrd.AdditionalProperties == nil { + rrd.AdditionalProperties = make(map[string]interface{}) } - rs.RequestInterval = requestInterval + rrd.AdditionalProperties[k] = additionalProperties } - case "httpCompressionType": + case "description": if v != nil { - var HTTPCompressionType interface{} - err = json.Unmarshal(*v, &HTTPCompressionType) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - rs.HTTPCompressionType = HTTPCompressionType + rrd.Description = &description } - default: + case "structure": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - if rs.AdditionalProperties == nil { - rs.AdditionalProperties = make(map[string]interface{}) - } - rs.AdditionalProperties[k] = additionalProperties + rrd.Structure = structure } - case "writeBatchSize": + case "schema": if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - rs.WriteBatchSize = writeBatchSize + rrd.Schema = schema } - case "writeBatchTimeout": + case "linkedServiceName": if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - rs.WriteBatchTimeout = writeBatchTimeout + rrd.LinkedServiceName = &linkedServiceName } - case "sinkRetryCount": + case "parameters": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - rs.SinkRetryCount = sinkRetryCount + rrd.Parameters = parameters } - case "sinkRetryWait": + case "annotations": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - rs.SinkRetryWait = sinkRetryWait + rrd.Annotations = &annotations } - case "maxConcurrentConnections": + case "folder": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - rs.MaxConcurrentConnections = maxConcurrentConnections + rrd.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - rs.Type = typeVar + rrd.Type = typeVar } } } @@ -188073,8 +187895,10 @@ func (rs *RestSink) UnmarshalJSON(body []byte) error { return nil } -// RestSource a copy activity Rest service source. -type RestSource struct { +// RestResourceDatasetTypeProperties properties specific to this dataset type. +type RestResourceDatasetTypeProperties struct { + // RelativeURL - The relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string). + RelativeURL interface{} `json:"relativeUrl,omitempty"` // RequestMethod - The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). RequestMethod interface{} `json:"requestMethod,omitempty"` // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). @@ -188083,549 +187907,566 @@ type RestSource struct { AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` // PaginationRules - The pagination rules to compose next page requests. Type: string (or Expression with resultType string). PaginationRules interface{} `json:"paginationRules,omitempty"` - // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` - // RequestInterval - The time to await before sending next page request. - RequestInterval interface{} `json:"requestInterval,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +} + +// RestServiceLinkedService rest Service linked service. +type RestServiceLinkedService struct { + // RestServiceLinkedServiceTypeProperties - Rest Service linked service properties. + *RestServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for RestSource. -func (rs RestSource) MarshalJSON() ([]byte, error) { - rs.Type = TypeRestSource +// MarshalJSON is the custom marshaler for RestServiceLinkedService. +func (rsls RestServiceLinkedService) MarshalJSON() ([]byte, error) { + rsls.Type = TypeRestService objectMap := make(map[string]interface{}) - if rs.RequestMethod != nil { - objectMap["requestMethod"] = rs.RequestMethod - } - if rs.RequestBody != nil { - objectMap["requestBody"] = rs.RequestBody - } - if rs.AdditionalHeaders != nil { - objectMap["additionalHeaders"] = rs.AdditionalHeaders - } - if rs.PaginationRules != nil { - objectMap["paginationRules"] = rs.PaginationRules - } - if rs.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = rs.HTTPRequestTimeout - } - if rs.RequestInterval != nil { - objectMap["requestInterval"] = rs.RequestInterval + if rsls.RestServiceLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = rsls.RestServiceLinkedServiceTypeProperties } - if rs.AdditionalColumns != nil { - objectMap["additionalColumns"] = rs.AdditionalColumns + if rsls.ConnectVia != nil { + objectMap["connectVia"] = rsls.ConnectVia } - if rs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = rs.SourceRetryCount + if rsls.Description != nil { + objectMap["description"] = rsls.Description } - if rs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = rs.SourceRetryWait + if rsls.Parameters != nil { + objectMap["parameters"] = rsls.Parameters } - if rs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections + if rsls.Annotations != nil { + objectMap["annotations"] = rsls.Annotations } - if rs.Type != "" { - objectMap["type"] = rs.Type + if rsls.Type != "" { + objectMap["type"] = rsls.Type } - for k, v := range rs.AdditionalProperties { + for k, v := range rsls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsHTTPSource() (*HTTPSource, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsOffice365Source() (*Office365Source, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsWebSource() (*WebSource, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsOracleSource() (*OracleSource, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsHdfsSource() (*HdfsSource, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsRestSource() (*RestSource, bool) { - return &rs, true +// AsQuickBooksLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsODataSource() (*ODataSource, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsRelationalSource() (*RelationalSource, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsBlobSource() (*BlobSource, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsVerticaSource() (*VerticaSource, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsZohoSource() (*ZohoSource, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsXeroSource() (*XeroSource, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSquareSource() (*SquareSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSparkSource() (*SparkSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsShopifySource() (*ShopifySource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsPrestoSource() (*PrestoSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsPaypalSource() (*PaypalSource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMarketoSource() (*MarketoSource, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false +// AsRestServiceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return &rsls, true } -// AsMariaDBSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMagentoSource() (*MagentoSource, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsJiraSource() (*JiraSource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsHubspotSource() (*HubspotSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsHiveSource() (*HiveSource, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsHBaseSource() (*HBaseSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsEloquaSource() (*EloquaSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDrillSource() (*DrillSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsConcurSource() (*ConcurSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCassandraSource() (*CassandraSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsTeradataSource() (*TeradataSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSQLMISource() (*SQLMISource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSQLSource() (*SQLSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapEccSource() (*SapEccSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapBwSource() (*SapBwSource, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSybaseSource() (*SybaseSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMySQLSource() (*MySQLSource, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsOdbcSource() (*OdbcSource, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDb2Source() (*Db2Source, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsInformixSource() (*InformixSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsTabularSource() (*TabularSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsBinarySource() (*BinarySource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsOrcSource() (*OrcSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsXMLSource() (*XMLSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsJSONSource() (*JSONSource, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAvroSource() (*AvroSource, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCopySource() (*CopySource, bool) { +// AsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsBasicCopySource() (BasicCopySource, bool) { - return &rs, true +// AsBasicLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &rsls, true } -// UnmarshalJSON is the custom unmarshaler for RestSource struct. -func (rs *RestSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for RestServiceLinkedService struct. +func (rsls *RestServiceLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -188633,116 +188474,220 @@ func (rs *RestSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "requestMethod": + case "typeProperties": if v != nil { - var requestMethod interface{} - err = json.Unmarshal(*v, &requestMethod) + var restServiceLinkedServiceTypeProperties RestServiceLinkedServiceTypeProperties + err = json.Unmarshal(*v, &restServiceLinkedServiceTypeProperties) if err != nil { return err } - rs.RequestMethod = requestMethod + rsls.RestServiceLinkedServiceTypeProperties = &restServiceLinkedServiceTypeProperties } - case "requestBody": + default: if v != nil { - var requestBody interface{} - err = json.Unmarshal(*v, &requestBody) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - rs.RequestBody = requestBody + if rsls.AdditionalProperties == nil { + rsls.AdditionalProperties = make(map[string]interface{}) + } + rsls.AdditionalProperties[k] = additionalProperties } - case "additionalHeaders": + case "connectVia": if v != nil { - var additionalHeaders interface{} - err = json.Unmarshal(*v, &additionalHeaders) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - rs.AdditionalHeaders = additionalHeaders + rsls.ConnectVia = &connectVia } - case "paginationRules": + case "description": if v != nil { - var paginationRules interface{} - err = json.Unmarshal(*v, &paginationRules) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - rs.PaginationRules = paginationRules + rsls.Description = &description } - case "httpRequestTimeout": + case "parameters": if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - rs.HTTPRequestTimeout = HTTPRequestTimeout + rsls.Parameters = parameters } - case "requestInterval": + case "annotations": if v != nil { - var requestInterval interface{} - err = json.Unmarshal(*v, &requestInterval) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - rs.RequestInterval = requestInterval + rsls.Annotations = &annotations } - case "additionalColumns": + case "type": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - rs.AdditionalColumns = &additionalColumns + rsls.Type = typeVar } - default: + } + } + + return nil +} + +// RestServiceLinkedServiceTypeProperties rest Service linked service properties. +type RestServiceLinkedServiceTypeProperties struct { + // URL - The base URL of the REST service. + URL interface{} `json:"url,omitempty"` + // EnableServerCertificateValidation - Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean). + EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` + // AuthenticationType - Type of authentication used to connect to the REST service. Possible values include: 'RestServiceAuthenticationTypeAnonymous', 'RestServiceAuthenticationTypeBasic', 'RestServiceAuthenticationTypeAadServicePrincipal', 'RestServiceAuthenticationTypeManagedServiceIdentity' + AuthenticationType RestServiceAuthenticationType `json:"authenticationType,omitempty"` + // UserName - The user name used in Basic authentication type. + UserName interface{} `json:"userName,omitempty"` + // Password - The password used in Basic authentication type. + Password BasicSecretBase `json:"password,omitempty"` + // AuthHeaders - The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType object). + AuthHeaders interface{} `json:"authHeaders,omitempty"` + // ServicePrincipalID - The application's client ID used in AadServicePrincipal authentication type. + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The application's key used in AadServicePrincipal authentication type. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides. + Tenant interface{} `json:"tenant,omitempty"` + // AzureCloudType - Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). + AzureCloudType interface{} `json:"azureCloudType,omitempty"` + // AadResourceID - The resource you are requesting authorization to use. + AadResourceID interface{} `json:"aadResourceId,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for RestServiceLinkedServiceTypeProperties struct. +func (rslstp *RestServiceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var URL interface{} + err = json.Unmarshal(*v, &URL) if err != nil { return err } - if rs.AdditionalProperties == nil { - rs.AdditionalProperties = make(map[string]interface{}) + rslstp.URL = URL + } + case "enableServerCertificateValidation": + if v != nil { + var enableServerCertificateValidation interface{} + err = json.Unmarshal(*v, &enableServerCertificateValidation) + if err != nil { + return err } - rs.AdditionalProperties[k] = additionalProperties + rslstp.EnableServerCertificateValidation = enableServerCertificateValidation } - case "sourceRetryCount": + case "authenticationType": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var authenticationType RestServiceAuthenticationType + err = json.Unmarshal(*v, &authenticationType) if err != nil { return err } - rs.SourceRetryCount = sourceRetryCount + rslstp.AuthenticationType = authenticationType } - case "sourceRetryWait": + case "userName": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var userName interface{} + err = json.Unmarshal(*v, &userName) if err != nil { return err } - rs.SourceRetryWait = sourceRetryWait + rslstp.UserName = userName } - case "maxConcurrentConnections": + case "password": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + password, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - rs.MaxConcurrentConnections = maxConcurrentConnections + rslstp.Password = password } - case "type": + case "authHeaders": if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) + var authHeaders interface{} + err = json.Unmarshal(*v, &authHeaders) if err != nil { return err } - rs.Type = typeVar + rslstp.AuthHeaders = authHeaders + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + rslstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + rslstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + rslstp.Tenant = tenant + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + rslstp.AzureCloudType = azureCloudType + } + case "aadResourceId": + if v != nil { + var aadResourceID interface{} + err = json.Unmarshal(*v, &aadResourceID) + if err != nil { + return err + } + rslstp.AadResourceID = aadResourceID + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + rslstp.EncryptedCredential = encryptedCredential } } } @@ -188750,604 +188695,284 @@ func (rs *RestSource) UnmarshalJSON(body []byte) error { return nil } -// RetryPolicy execution policy for an activity. -type RetryPolicy struct { - // Count - Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. - Count interface{} `json:"count,omitempty"` - // IntervalInSeconds - Interval between retries in seconds. Default is 30. - IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` -} - -// RunFilterParameters query parameters for listing runs. -type RunFilterParameters struct { - // ContinuationToken - The continuation token for getting the next page of results. Null for first page. - ContinuationToken *string `json:"continuationToken,omitempty"` - // LastUpdatedAfter - The time at or after which the run event was updated in 'ISO 8601' format. - LastUpdatedAfter *date.Time `json:"lastUpdatedAfter,omitempty"` - // LastUpdatedBefore - The time at or before which the run event was updated in 'ISO 8601' format. - LastUpdatedBefore *date.Time `json:"lastUpdatedBefore,omitempty"` - // Filters - List of filters. - Filters *[]RunQueryFilter `json:"filters,omitempty"` - // OrderBy - List of OrderBy option. - OrderBy *[]RunQueryOrderBy `json:"orderBy,omitempty"` -} - -// RunQueryFilter query filter option for listing runs. -type RunQueryFilter struct { - // Operand - Parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and Status. Possible values include: 'PipelineName', 'Status', 'RunStart', 'RunEnd', 'ActivityName', 'ActivityRunStart', 'ActivityRunEnd', 'ActivityType', 'TriggerName', 'TriggerRunTimestamp', 'RunGroupID', 'LatestOnly' - Operand RunQueryFilterOperand `json:"operand,omitempty"` - // Operator - Operator to be used for filter. Possible values include: 'Equals', 'NotEquals', 'In', 'NotIn' - Operator RunQueryFilterOperator `json:"operator,omitempty"` - // Values - List of filter values. - Values *[]string `json:"values,omitempty"` -} - -// RunQueryOrderBy an object to provide order by options for listing runs. -type RunQueryOrderBy struct { - // OrderBy - Parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. Possible values include: 'RunQueryOrderByFieldRunStart', 'RunQueryOrderByFieldRunEnd', 'RunQueryOrderByFieldPipelineName', 'RunQueryOrderByFieldStatus', 'RunQueryOrderByFieldActivityName', 'RunQueryOrderByFieldActivityRunStart', 'RunQueryOrderByFieldActivityRunEnd', 'RunQueryOrderByFieldTriggerName', 'RunQueryOrderByFieldTriggerRunTimestamp' - OrderBy RunQueryOrderByField `json:"orderBy,omitempty"` - // Order - Sorting order of the parameter. Possible values include: 'ASC', 'DESC' - Order RunQueryOrder `json:"order,omitempty"` -} - -// SalesforceLinkedService linked service for Salesforce. -type SalesforceLinkedService struct { - // SalesforceLinkedServiceTypeProperties - Salesforce linked service properties. - *SalesforceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// RestSink a copy activity Rest service Sink. +type RestSink struct { + // RequestMethod - The HTTP method used to call the RESTful API. The default is POST. Type: string (or Expression with resultType string). + RequestMethod interface{} `json:"requestMethod,omitempty"` + // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). + AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + // RequestInterval - The time to await before sending next request, in milliseconds + RequestInterval interface{} `json:"requestInterval,omitempty"` + // HTTPCompressionType - Http Compression Type to Send data in compressed format with Optimal Compression Level, Default is None. And The Only Supported option is Gzip. + HTTPCompressionType interface{} `json:"httpCompressionType,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SalesforceLinkedService. -func (sls SalesforceLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeSalesforce +// MarshalJSON is the custom marshaler for RestSink. +func (rs RestSink) MarshalJSON() ([]byte, error) { + rs.Type = TypeRestSink objectMap := make(map[string]interface{}) - if sls.SalesforceLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SalesforceLinkedServiceTypeProperties + if rs.RequestMethod != nil { + objectMap["requestMethod"] = rs.RequestMethod } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia + if rs.AdditionalHeaders != nil { + objectMap["additionalHeaders"] = rs.AdditionalHeaders } - if sls.Description != nil { - objectMap["description"] = sls.Description + if rs.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = rs.HTTPRequestTimeout } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters + if rs.RequestInterval != nil { + objectMap["requestInterval"] = rs.RequestInterval } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations + if rs.HTTPCompressionType != nil { + objectMap["httpCompressionType"] = rs.HTTPCompressionType } - if sls.Type != "" { - objectMap["type"] = sls.Type + if rs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = rs.WriteBatchSize } - for k, v := range sls.AdditionalProperties { + if rs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = rs.WriteBatchTimeout + } + if rs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = rs.SinkRetryCount + } + if rs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = rs.SinkRetryWait + } + if rs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections + } + if rs.Type != "" { + objectMap["type"] = rs.Type + } + for k, v := range rs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return &sls, true -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsSalesforceSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsDynamicsSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsInformixSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsOdbcSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsOracleSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsSQLDWSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsSQLMISink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSQLServerSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsSQLSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsFileSystemSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsBlobSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsBinarySink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsParquetSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAvroSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureTableSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsRestSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsRestSink() (*RestSink, bool) { + return &rs, true +} + +// AsOrcSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsJSONSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsCopySink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true +// AsBasicCopySink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsBasicCopySink() (BasicCopySink, bool) { + return &rs, true } -// UnmarshalJSON is the custom unmarshaler for SalesforceLinkedService struct. -func (sls *SalesforceLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for RestSink struct. +func (rs *RestSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -189355,154 +188980,116 @@ func (sls *SalesforceLinkedService) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "requestMethod": if v != nil { - var salesforceLinkedServiceTypeProperties SalesforceLinkedServiceTypeProperties - err = json.Unmarshal(*v, &salesforceLinkedServiceTypeProperties) + var requestMethod interface{} + err = json.Unmarshal(*v, &requestMethod) if err != nil { return err } - sls.SalesforceLinkedServiceTypeProperties = &salesforceLinkedServiceTypeProperties + rs.RequestMethod = requestMethod } - default: + case "additionalHeaders": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var additionalHeaders interface{} + err = json.Unmarshal(*v, &additionalHeaders) if err != nil { return err } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties + rs.AdditionalHeaders = additionalHeaders } - case "connectVia": + case "httpRequestTimeout": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) if err != nil { return err } - sls.ConnectVia = &connectVia + rs.HTTPRequestTimeout = HTTPRequestTimeout } - case "description": + case "requestInterval": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var requestInterval interface{} + err = json.Unmarshal(*v, &requestInterval) if err != nil { return err } - sls.Description = &description + rs.RequestInterval = requestInterval } - case "parameters": + case "httpCompressionType": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var HTTPCompressionType interface{} + err = json.Unmarshal(*v, &HTTPCompressionType) if err != nil { return err } - sls.Parameters = parameters + rs.HTTPCompressionType = HTTPCompressionType } - case "annotations": + default: if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err + if rs.AdditionalProperties == nil { + rs.AdditionalProperties = make(map[string]interface{}) } - sls.Type = typeVar + rs.AdditionalProperties[k] = additionalProperties } - } - } - - return nil -} - -// SalesforceLinkedServiceTypeProperties salesforce linked service properties. -type SalesforceLinkedServiceTypeProperties struct { - // EnvironmentURL - 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). - EnvironmentURL interface{} `json:"environmentUrl,omitempty"` - // Username - The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication of the Salesforce instance. - Password BasicSecretBase `json:"password,omitempty"` - // SecurityToken - The security token is optional to remotely access Salesforce instance. - SecurityToken BasicSecretBase `json:"securityToken,omitempty"` - // APIVersion - The Salesforce API version used in ADF. Type: string (or Expression with resultType string). - APIVersion interface{} `json:"apiVersion,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceLinkedServiceTypeProperties struct. -func (slstp *SalesforceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "environmentUrl": + case "writeBatchSize": if v != nil { - var environmentURL interface{} - err = json.Unmarshal(*v, &environmentURL) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - slstp.EnvironmentURL = environmentURL + rs.WriteBatchSize = writeBatchSize } - case "username": + case "writeBatchTimeout": if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - slstp.Username = username + rs.WriteBatchTimeout = writeBatchTimeout } - case "password": + case "sinkRetryCount": if v != nil { - password, err := unmarshalBasicSecretBase(*v) + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) if err != nil { return err } - slstp.Password = password + rs.SinkRetryCount = sinkRetryCount } - case "securityToken": + case "sinkRetryWait": if v != nil { - securityToken, err := unmarshalBasicSecretBase(*v) + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) if err != nil { return err } - slstp.SecurityToken = securityToken + rs.SinkRetryWait = sinkRetryWait } - case "apiVersion": + case "maxConcurrentConnections": if v != nil { - var APIVersion interface{} - err = json.Unmarshal(*v, &APIVersion) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - slstp.APIVersion = APIVersion + rs.MaxConcurrentConnections = maxConcurrentConnections } - case "encryptedCredential": + case "type": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - slstp.EncryptedCredential = encryptedCredential + rs.Type = typeVar } } } @@ -189510,564 +189097,559 @@ func (slstp *SalesforceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) e return nil } -// SalesforceMarketingCloudLinkedService salesforce Marketing Cloud linked service. -type SalesforceMarketingCloudLinkedService struct { - // SalesforceMarketingCloudLinkedServiceTypeProperties - Salesforce Marketing Cloud linked service properties. - *SalesforceMarketingCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// RestSource a copy activity Rest service source. +type RestSource struct { + // RequestMethod - The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). + RequestMethod interface{} `json:"requestMethod,omitempty"` + // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). + RequestBody interface{} `json:"requestBody,omitempty"` + // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). + AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + // PaginationRules - The pagination rules to compose next page requests. Type: string (or Expression with resultType string). + PaginationRules interface{} `json:"paginationRules,omitempty"` + // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + // RequestInterval - The time to await before sending next page request. + RequestInterval interface{} `json:"requestInterval,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) MarshalJSON() ([]byte, error) { - smcls.Type = TypeSalesforceMarketingCloud +// MarshalJSON is the custom marshaler for RestSource. +func (rs RestSource) MarshalJSON() ([]byte, error) { + rs.Type = TypeRestSource objectMap := make(map[string]interface{}) - if smcls.SalesforceMarketingCloudLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = smcls.SalesforceMarketingCloudLinkedServiceTypeProperties + if rs.RequestMethod != nil { + objectMap["requestMethod"] = rs.RequestMethod } - if smcls.ConnectVia != nil { - objectMap["connectVia"] = smcls.ConnectVia + if rs.RequestBody != nil { + objectMap["requestBody"] = rs.RequestBody } - if smcls.Description != nil { - objectMap["description"] = smcls.Description + if rs.AdditionalHeaders != nil { + objectMap["additionalHeaders"] = rs.AdditionalHeaders } - if smcls.Parameters != nil { - objectMap["parameters"] = smcls.Parameters + if rs.PaginationRules != nil { + objectMap["paginationRules"] = rs.PaginationRules } - if smcls.Annotations != nil { - objectMap["annotations"] = smcls.Annotations + if rs.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = rs.HTTPRequestTimeout } - if smcls.Type != "" { - objectMap["type"] = smcls.Type + if rs.RequestInterval != nil { + objectMap["requestInterval"] = rs.RequestInterval } - for k, v := range smcls.AdditionalProperties { + if rs.AdditionalColumns != nil { + objectMap["additionalColumns"] = rs.AdditionalColumns + } + if rs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = rs.SourceRetryCount + } + if rs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = rs.SourceRetryWait + } + if rs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections + } + if rs.Type != "" { + objectMap["type"] = rs.Type + } + for k, v := range rs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return &smcls, true -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsFileSystemSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false +// AsRestSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsRestSource() (*RestSource, bool) { + return &rs, true } -// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsVerticaSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsNetezzaSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsZohoSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsXeroSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSquareSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSparkSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsShopifySource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsServiceNowSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsPrestoSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsPhoenixSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsPaypalSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsMarketoSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsMariaDBSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsMagentoSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsJiraSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsImpalaSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsHubspotSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsHiveSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsHBaseSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsGreenplumSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsEloquaSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsDrillSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsConcurSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsCassandraSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsTeradataSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsSQLDWSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsSQLMISource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsSQLServerSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsSQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSapTableSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsSapHanaSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsSapEccSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsSalesforceSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSapBwSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsSybaseSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsMySQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsOdbcSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsDb2Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsInformixSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsTabularSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsBinarySource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsOrcSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsXMLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsJSONSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsParquetSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsExcelSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAvroSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsCopySource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &smcls, true +// AsBasicCopySource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsBasicCopySource() (BasicCopySource, bool) { + return &rs, true } -// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudLinkedService struct. -func (smcls *SalesforceMarketingCloudLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for RestSource struct. +func (rs *RestSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -190075,167 +189657,207 @@ func (smcls *SalesforceMarketingCloudLinkedService) UnmarshalJSON(body []byte) e } for k, v := range m { switch k { - case "typeProperties": + case "requestMethod": if v != nil { - var salesforceMarketingCloudLinkedServiceTypeProperties SalesforceMarketingCloudLinkedServiceTypeProperties - err = json.Unmarshal(*v, &salesforceMarketingCloudLinkedServiceTypeProperties) + var requestMethod interface{} + err = json.Unmarshal(*v, &requestMethod) if err != nil { return err } - smcls.SalesforceMarketingCloudLinkedServiceTypeProperties = &salesforceMarketingCloudLinkedServiceTypeProperties + rs.RequestMethod = requestMethod } - default: + case "requestBody": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var requestBody interface{} + err = json.Unmarshal(*v, &requestBody) if err != nil { return err } - if smcls.AdditionalProperties == nil { - smcls.AdditionalProperties = make(map[string]interface{}) + rs.RequestBody = requestBody + } + case "additionalHeaders": + if v != nil { + var additionalHeaders interface{} + err = json.Unmarshal(*v, &additionalHeaders) + if err != nil { + return err } - smcls.AdditionalProperties[k] = additionalProperties + rs.AdditionalHeaders = additionalHeaders } - case "connectVia": + case "paginationRules": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var paginationRules interface{} + err = json.Unmarshal(*v, &paginationRules) if err != nil { return err } - smcls.ConnectVia = &connectVia + rs.PaginationRules = paginationRules } - case "description": + case "httpRequestTimeout": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) if err != nil { return err } - smcls.Description = &description + rs.HTTPRequestTimeout = HTTPRequestTimeout } - case "parameters": + case "requestInterval": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var requestInterval interface{} + err = json.Unmarshal(*v, &requestInterval) if err != nil { return err } - smcls.Parameters = parameters + rs.RequestInterval = requestInterval } - case "annotations": + case "additionalColumns": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - smcls.Annotations = &annotations + rs.AdditionalColumns = &additionalColumns } - case "type": + default: if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - smcls.Type = typeVar + if rs.AdditionalProperties == nil { + rs.AdditionalProperties = make(map[string]interface{}) + } + rs.AdditionalProperties[k] = additionalProperties } - } - } - - return nil -} - -// SalesforceMarketingCloudLinkedServiceTypeProperties salesforce Marketing Cloud linked service -// properties. -type SalesforceMarketingCloudLinkedServiceTypeProperties struct { - // ConnectionProperties - Properties used to connect to Salesforce Marketing Cloud. It is mutually exclusive with any other properties in the linked service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` - // ClientID - The client ID associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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). - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - 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). - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudLinkedServiceTypeProperties struct. -func (smclstp *SalesforceMarketingCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionProperties": + case "sourceRetryCount": if v != nil { - var connectionProperties interface{} - err = json.Unmarshal(*v, &connectionProperties) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - smclstp.ConnectionProperties = connectionProperties + rs.SourceRetryCount = sourceRetryCount } - case "clientId": + case "sourceRetryWait": if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - smclstp.ClientID = clientID + rs.SourceRetryWait = sourceRetryWait } - case "clientSecret": + case "maxConcurrentConnections": if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - smclstp.ClientSecret = clientSecret + rs.MaxConcurrentConnections = maxConcurrentConnections } - case "useEncryptedEndpoints": + case "type": if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - smclstp.UseEncryptedEndpoints = useEncryptedEndpoints + rs.Type = typeVar } - case "useHostVerification": + } + } + + return nil +} + +// RetryPolicy execution policy for an activity. +type RetryPolicy struct { + // Count - Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. + Count interface{} `json:"count,omitempty"` + // IntervalInSeconds - Interval between retries in seconds. Default is 30. + IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` +} + +// RunFilterParameters query parameters for listing runs. +type RunFilterParameters struct { + // ContinuationToken - The continuation token for getting the next page of results. Null for first page. + ContinuationToken *string `json:"continuationToken,omitempty"` + // LastUpdatedAfter - The time at or after which the run event was updated in 'ISO 8601' format. + LastUpdatedAfter *date.Time `json:"lastUpdatedAfter,omitempty"` + // LastUpdatedBefore - The time at or before which the run event was updated in 'ISO 8601' format. + LastUpdatedBefore *date.Time `json:"lastUpdatedBefore,omitempty"` + // Filters - List of filters. + Filters *[]RunQueryFilter `json:"filters,omitempty"` + // OrderBy - List of OrderBy option. + OrderBy *[]RunQueryOrderBy `json:"orderBy,omitempty"` +} + +// RunQueryFilter query filter option for listing runs. +type RunQueryFilter struct { + // Operand - Parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and Status. Possible values include: 'PipelineName', 'Status', 'RunStart', 'RunEnd', 'ActivityName', 'ActivityRunStart', 'ActivityRunEnd', 'ActivityType', 'TriggerName', 'TriggerRunTimestamp', 'RunGroupID', 'LatestOnly' + Operand RunQueryFilterOperand `json:"operand,omitempty"` + // Operator - Operator to be used for filter. Possible values include: 'Equals', 'NotEquals', 'In', 'NotIn' + Operator RunQueryFilterOperator `json:"operator,omitempty"` + // Values - List of filter values. + Values *[]string `json:"values,omitempty"` +} + +// RunQueryOrderBy an object to provide order by options for listing runs. +type RunQueryOrderBy struct { + // OrderBy - Parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. Possible values include: 'RunQueryOrderByFieldRunStart', 'RunQueryOrderByFieldRunEnd', 'RunQueryOrderByFieldPipelineName', 'RunQueryOrderByFieldStatus', 'RunQueryOrderByFieldActivityName', 'RunQueryOrderByFieldActivityRunStart', 'RunQueryOrderByFieldActivityRunEnd', 'RunQueryOrderByFieldTriggerName', 'RunQueryOrderByFieldTriggerRunTimestamp' + OrderBy RunQueryOrderByField `json:"orderBy,omitempty"` + // Order - Sorting order of the parameter. Possible values include: 'ASC', 'DESC' + Order RunQueryOrder `json:"order,omitempty"` +} + +// SQLAlwaysEncryptedProperties sql always encrypted properties. +type SQLAlwaysEncryptedProperties struct { + // AlwaysEncryptedAkvAuthType - Sql always encrypted AKV authentication type. Type: string (or Expression with resultType string). Possible values include: 'ServicePrincipal', 'ManagedIdentity' + AlwaysEncryptedAkvAuthType SQLAlwaysEncryptedAkvAuthType `json:"alwaysEncryptedAkvAuthType,omitempty"` + // ServicePrincipalID - The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The key of the service principal used to authenticate against Azure Key Vault. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SQLAlwaysEncryptedProperties struct. +func (saep *SQLAlwaysEncryptedProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "alwaysEncryptedAkvAuthType": if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) + var alwaysEncryptedAkvAuthType SQLAlwaysEncryptedAkvAuthType + err = json.Unmarshal(*v, &alwaysEncryptedAkvAuthType) if err != nil { return err } - smclstp.UseHostVerification = useHostVerification + saep.AlwaysEncryptedAkvAuthType = alwaysEncryptedAkvAuthType } - case "usePeerVerification": + case "servicePrincipalId": if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) if err != nil { return err } - smclstp.UsePeerVerification = usePeerVerification + saep.ServicePrincipalID = servicePrincipalID } - case "encryptedCredential": + case "servicePrincipalKey": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - smclstp.EncryptedCredential = encryptedCredential + saep.ServicePrincipalKey = servicePrincipalKey } } } @@ -190243,1183 +189865,1382 @@ func (smclstp *SalesforceMarketingCloudLinkedServiceTypeProperties) UnmarshalJSO return nil } -// SalesforceMarketingCloudObjectDataset salesforce Marketing Cloud dataset. -type SalesforceMarketingCloudObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` +// SQLDWSink a copy activity SQL Data Warehouse sink. +type SQLDWSink struct { + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // AllowPolyBase - Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType boolean). + AllowPolyBase interface{} `json:"allowPolyBase,omitempty"` + // PolyBaseSettings - Specifies PolyBase-related settings when allowPolyBase is true. + PolyBaseSettings *PolybaseSettings `json:"polyBaseSettings,omitempty"` + // AllowCopyCommand - Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean). + AllowCopyCommand interface{} `json:"allowCopyCommand,omitempty"` + // CopyCommandSettings - Specifies Copy Command related settings when allowCopyCommand is true. + CopyCommandSettings *DWCopyCommandSettings `json:"copyCommandSettings,omitempty"` + // TableOption - The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). + TableOption interface{} `json:"tableOption,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) MarshalJSON() ([]byte, error) { - smcod.Type = TypeSalesforceMarketingCloudObject +// MarshalJSON is the custom marshaler for SQLDWSink. +func (sds SQLDWSink) MarshalJSON() ([]byte, error) { + sds.Type = TypeSQLDWSink objectMap := make(map[string]interface{}) - if smcod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = smcod.GenericDatasetTypeProperties + if sds.PreCopyScript != nil { + objectMap["preCopyScript"] = sds.PreCopyScript } - if smcod.Description != nil { - objectMap["description"] = smcod.Description + if sds.AllowPolyBase != nil { + objectMap["allowPolyBase"] = sds.AllowPolyBase } - if smcod.Structure != nil { - objectMap["structure"] = smcod.Structure + if sds.PolyBaseSettings != nil { + objectMap["polyBaseSettings"] = sds.PolyBaseSettings } - if smcod.Schema != nil { - objectMap["schema"] = smcod.Schema + if sds.AllowCopyCommand != nil { + objectMap["allowCopyCommand"] = sds.AllowCopyCommand } - if smcod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = smcod.LinkedServiceName + if sds.CopyCommandSettings != nil { + objectMap["copyCommandSettings"] = sds.CopyCommandSettings } - if smcod.Parameters != nil { - objectMap["parameters"] = smcod.Parameters + if sds.TableOption != nil { + objectMap["tableOption"] = sds.TableOption } - if smcod.Annotations != nil { - objectMap["annotations"] = smcod.Annotations + if sds.WriteBatchSize != nil { + objectMap["writeBatchSize"] = sds.WriteBatchSize } - if smcod.Folder != nil { - objectMap["folder"] = smcod.Folder + if sds.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = sds.WriteBatchTimeout } - if smcod.Type != "" { - objectMap["type"] = smcod.Type + if sds.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = sds.SinkRetryCount } - for k, v := range smcod.AdditionalProperties { + if sds.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = sds.SinkRetryWait + } + if sds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections + } + if sds.Type != "" { + objectMap["type"] = sds.Type + } + for k, v := range sds.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsSalesforceSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return &smcod, true -} - -// AsVerticaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsDynamicsSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsInformixSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsOdbcSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsOracleSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false +// AsSQLDWSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSQLDWSink() (*SQLDWSink, bool) { + return &sds, true } -// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsSQLMISink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsSQLServerSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsSQLSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsFileSystemSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsBlobSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsBinarySink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsParquetSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsAvroSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsAzureTableSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsRestSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsOrcSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsJSONSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsCopySink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false +// AsBasicCopySink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsBasicCopySink() (BasicCopySink, bool) { + return &sds, true } -// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for SQLDWSink struct. +func (sds *SQLDWSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + sds.PreCopyScript = preCopyScript + } + case "allowPolyBase": + if v != nil { + var allowPolyBase interface{} + err = json.Unmarshal(*v, &allowPolyBase) + if err != nil { + return err + } + sds.AllowPolyBase = allowPolyBase + } + case "polyBaseSettings": + if v != nil { + var polyBaseSettings PolybaseSettings + err = json.Unmarshal(*v, &polyBaseSettings) + if err != nil { + return err + } + sds.PolyBaseSettings = &polyBaseSettings + } + case "allowCopyCommand": + if v != nil { + var allowCopyCommand interface{} + err = json.Unmarshal(*v, &allowCopyCommand) + if err != nil { + return err + } + sds.AllowCopyCommand = allowCopyCommand + } + case "copyCommandSettings": + if v != nil { + var copyCommandSettings DWCopyCommandSettings + err = json.Unmarshal(*v, ©CommandSettings) + if err != nil { + return err + } + sds.CopyCommandSettings = ©CommandSettings + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + sds.TableOption = tableOption + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sds.AdditionalProperties == nil { + sds.AdditionalProperties = make(map[string]interface{}) + } + sds.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + sds.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + sds.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + sds.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + sds.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sds.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sds.Type = typeVar + } + } + } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false + return nil } -// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false +// SQLDWSource a copy activity SQL Data Warehouse source. +type SQLDWSource struct { + // SQLReaderQuery - SQL Data Warehouse reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - Name of the stored procedure for a SQL Data Warehouse source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). + SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType: StoredProcedureParameter. + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for SQLDWSource. +func (sds SQLDWSource) MarshalJSON() ([]byte, error) { + sds.Type = TypeSQLDWSource + objectMap := make(map[string]interface{}) + if sds.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = sds.SQLReaderQuery + } + if sds.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = sds.SQLReaderStoredProcedureName + } + if sds.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = sds.StoredProcedureParameters + } + if sds.PartitionOption != nil { + objectMap["partitionOption"] = sds.PartitionOption + } + if sds.PartitionSettings != nil { + objectMap["partitionSettings"] = sds.PartitionSettings + } + if sds.QueryTimeout != nil { + objectMap["queryTimeout"] = sds.QueryTimeout + } + if sds.AdditionalColumns != nil { + objectMap["additionalColumns"] = sds.AdditionalColumns + } + if sds.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sds.SourceRetryCount + } + if sds.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sds.SourceRetryWait + } + if sds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections + } + if sds.Type != "" { + objectMap["type"] = sds.Type + } + for k, v := range sds.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsHTTPSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsOffice365Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsWebSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsOracleSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsHdfsSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsRestSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsODataSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsRelationalSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsBlobSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsResponsysSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsVerticaSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsZohoSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsXeroSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsSquareSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsSparkSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsShopifySource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsPrestoSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsPaypalSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDataset() (*Dataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &smcod, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudObjectDataset struct. -func (smcod *SalesforceMarketingCloudObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - smcod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if smcod.AdditionalProperties == nil { - smcod.AdditionalProperties = make(map[string]interface{}) - } - smcod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - smcod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - smcod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - smcod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - smcod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - smcod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - smcod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - smcod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - smcod.Type = typeVar - } - } - } - - return nil -} - -// SalesforceMarketingCloudSource a copy activity Salesforce Marketing Cloud source. -type SalesforceMarketingCloudSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) MarshalJSON() ([]byte, error) { - smcs.Type = TypeSalesforceMarketingCloudSource - objectMap := make(map[string]interface{}) - if smcs.Query != nil { - objectMap["query"] = smcs.Query - } - if smcs.QueryTimeout != nil { - objectMap["queryTimeout"] = smcs.QueryTimeout - } - if smcs.AdditionalColumns != nil { - objectMap["additionalColumns"] = smcs.AdditionalColumns - } - if smcs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = smcs.SourceRetryCount - } - if smcs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = smcs.SourceRetryWait - } - if smcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = smcs.MaxConcurrentConnections - } - if smcs.Type != "" { - objectMap["type"] = smcs.Type - } - for k, v := range smcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsJiraSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHTTPSource() (*HTTPSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsHiveSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOffice365Source() (*Office365Source, bool) { +// AsHBaseSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsDrillSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsWebSource() (*WebSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOracleSource() (*OracleSource, bool) { +// AsConcurSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHdfsSource() (*HdfsSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsRestSource() (*RestSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsODataSource() (*ODataSource, bool) { - return nil, false +// AsSQLDWSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSQLDWSource() (*SQLDWSource, bool) { + return &sds, true } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsSQLMISource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsRelationalSource() (*RelationalSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsSQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsBlobSource() (*BlobSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return &smcs, true -} - -// AsVerticaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsVerticaSource() (*VerticaSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsZohoSource() (*ZohoSource, bool) { +// AsDb2Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsXeroSource() (*XeroSource, bool) { +// AsInformixSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSquareSource() (*SquareSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSparkSource() (*SparkSource, bool) { +// AsTabularSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sds, true } -// AsServiceNowSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsBinarySource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsOrcSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPrestoSource() (*PrestoSource, bool) { +// AsXMLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsJSONSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPaypalSource() (*PaypalSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMarketoSource() (*MarketoSource, bool) { +// AsParquetSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsExcelSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsAvroSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMagentoSource() (*MagentoSource, bool) { +// AsCopySource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsJiraSource() (*JiraSource, bool) { - return nil, false +// AsBasicCopySource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sds, true } -// AsImpalaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for SQLDWSource struct. +func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlReaderQuery": + if v != nil { + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) + if err != nil { + return err + } + sds.SQLReaderQuery = SQLReaderQuery + } + case "sqlReaderStoredProcedureName": + if v != nil { + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) + if err != nil { + return err + } + sds.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + sds.StoredProcedureParameters = storedProcedureParameters + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + sds.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + sds.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sds.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sds.AdditionalColumns = &additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sds.AdditionalProperties == nil { + sds.AdditionalProperties = make(map[string]interface{}) + } + sds.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sds.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sds.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sds.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sds.Type = typeVar + } + } + } -// AsHubspotSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false + return nil } -// AsHiveSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHiveSource() (*HiveSource, bool) { - return nil, false +// SQLMISink a copy activity Azure SQL Managed Instance sink. +type SQLMISink struct { + // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). + SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). + SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // StoredProcedureParameters - SQL stored procedure parameters. + StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` + // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + // TableOption - The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). + TableOption interface{} `json:"tableOption,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// AsHBaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for SQLMISink. +func (sms SQLMISink) MarshalJSON() ([]byte, error) { + sms.Type = TypeSQLMISink + objectMap := make(map[string]interface{}) + if sms.SQLWriterStoredProcedureName != nil { + objectMap["sqlWriterStoredProcedureName"] = sms.SQLWriterStoredProcedureName + } + if sms.SQLWriterTableType != nil { + objectMap["sqlWriterTableType"] = sms.SQLWriterTableType + } + if sms.PreCopyScript != nil { + objectMap["preCopyScript"] = sms.PreCopyScript + } + if sms.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = sms.StoredProcedureParameters + } + if sms.StoredProcedureTableTypeParameterName != nil { + objectMap["storedProcedureTableTypeParameterName"] = sms.StoredProcedureTableTypeParameterName + } + if sms.TableOption != nil { + objectMap["tableOption"] = sms.TableOption + } + if sms.WriteBatchSize != nil { + objectMap["writeBatchSize"] = sms.WriteBatchSize + } + if sms.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = sms.WriteBatchTimeout + } + if sms.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = sms.SinkRetryCount + } + if sms.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = sms.SinkRetryWait + } + if sms.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections + } + if sms.Type != "" { + objectMap["type"] = sms.Type + } + for k, v := range sms.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsGreenplumSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsEloquaSource() (*EloquaSource, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDrillSource() (*DrillSource, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsSalesforceSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsConcurSource() (*ConcurSource, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCassandraSource() (*CassandraSource, bool) { +// AsDynamicsSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsTeradataSource() (*TeradataSource, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsInformixSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsOdbcSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSQLMISource() (*SQLMISource, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSQLSource() (*SQLSource, bool) { +// AsOracleSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSQLDWSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false +// AsSQLMISink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSQLMISink() (*SQLMISink, bool) { + return &sms, true } -// AsSapEccSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapEccSource() (*SapEccSource, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSQLServerSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSQLSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapBwSource() (*SapBwSource, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSybaseSource() (*SybaseSource, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsFileSystemSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMySQLSource() (*MySQLSource, bool) { +// AsBlobSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOdbcSource() (*OdbcSource, bool) { +// AsBinarySink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDb2Source() (*Db2Source, bool) { +// AsParquetSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsInformixSource() (*InformixSource, bool) { +// AsAvroSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &smcs, true -} - -// AsBinarySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsBinarySource() (*BinarySource, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOrcSource() (*OrcSource, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsXMLSource() (*XMLSource, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsJSONSource() (*JSONSource, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsRestSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsParquetSource() (*ParquetSource, bool) { +// AsOrcSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsExcelSource() (*ExcelSource, bool) { +// AsJSONSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAvroSource() (*AvroSource, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCopySource() (*CopySource, bool) { +// AsCopySink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsBasicCopySource() (BasicCopySource, bool) { - return &smcs, true +// AsBasicCopySink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsBasicCopySink() (BasicCopySink, bool) { + return &sms, true } -// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudSource struct. -func (smcs *SalesforceMarketingCloudSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SQLMISink struct. +func (sms *SQLMISink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -191427,32 +191248,59 @@ func (smcs *SalesforceMarketingCloudSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "sqlWriterStoredProcedureName": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var SQLWriterStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) if err != nil { return err } - smcs.Query = query + sms.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName } - case "queryTimeout": + case "sqlWriterTableType": if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var SQLWriterTableType interface{} + err = json.Unmarshal(*v, &SQLWriterTableType) if err != nil { return err } - smcs.QueryTimeout = queryTimeout + sms.SQLWriterTableType = SQLWriterTableType } - case "additionalColumns": + case "preCopyScript": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) if err != nil { return err } - smcs.AdditionalColumns = &additionalColumns + sms.PreCopyScript = preCopyScript + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters map[string]*StoredProcedureParameter + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + sms.StoredProcedureParameters = storedProcedureParameters + } + case "storedProcedureTableTypeParameterName": + if v != nil { + var storedProcedureTableTypeParameterName interface{} + err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) + if err != nil { + return err + } + sms.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + sms.TableOption = tableOption } default: if v != nil { @@ -191461,28 +191309,46 @@ func (smcs *SalesforceMarketingCloudSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if smcs.AdditionalProperties == nil { - smcs.AdditionalProperties = make(map[string]interface{}) + if sms.AdditionalProperties == nil { + sms.AdditionalProperties = make(map[string]interface{}) } - smcs.AdditionalProperties[k] = additionalProperties + sms.AdditionalProperties[k] = additionalProperties } - case "sourceRetryCount": + case "writeBatchSize": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - smcs.SourceRetryCount = sourceRetryCount + sms.WriteBatchSize = writeBatchSize } - case "sourceRetryWait": + case "writeBatchTimeout": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - smcs.SourceRetryWait = sourceRetryWait + sms.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + sms.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + sms.SinkRetryWait = sinkRetryWait } case "maxConcurrentConnections": if v != nil { @@ -191491,16 +191357,16 @@ func (smcs *SalesforceMarketingCloudSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - smcs.MaxConcurrentConnections = maxConcurrentConnections + sms.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - smcs.Type = typeVar + sms.Type = typeVar } } } @@ -191508,544 +191374,564 @@ func (smcs *SalesforceMarketingCloudSource) UnmarshalJSON(body []byte) error { return nil } -// SalesforceObjectDataset the Salesforce object dataset. -type SalesforceObjectDataset struct { - // SalesforceObjectDatasetTypeProperties - Salesforce object dataset properties. - *SalesforceObjectDatasetTypeProperties `json:"typeProperties,omitempty"` +// SQLMISource a copy activity Azure SQL Managed Instance source. +type SQLMISource struct { + // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - Name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). + SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` + // ProduceAdditionalTypes - Which additional types to produce. + ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeSalesforceObject +// MarshalJSON is the custom marshaler for SQLMISource. +func (sms SQLMISource) MarshalJSON() ([]byte, error) { + sms.Type = TypeSQLMISource objectMap := make(map[string]interface{}) - if sod.SalesforceObjectDatasetTypeProperties != nil { - objectMap["typeProperties"] = sod.SalesforceObjectDatasetTypeProperties + if sms.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = sms.SQLReaderQuery } - if sod.Description != nil { - objectMap["description"] = sod.Description + if sms.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = sms.SQLReaderStoredProcedureName } - if sod.Structure != nil { - objectMap["structure"] = sod.Structure + if sms.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = sms.StoredProcedureParameters } - if sod.Schema != nil { - objectMap["schema"] = sod.Schema + if sms.ProduceAdditionalTypes != nil { + objectMap["produceAdditionalTypes"] = sms.ProduceAdditionalTypes } - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName + if sms.PartitionOption != nil { + objectMap["partitionOption"] = sms.PartitionOption } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters + if sms.PartitionSettings != nil { + objectMap["partitionSettings"] = sms.PartitionSettings } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations + if sms.QueryTimeout != nil { + objectMap["queryTimeout"] = sms.QueryTimeout } - if sod.Folder != nil { - objectMap["folder"] = sod.Folder + if sms.AdditionalColumns != nil { + objectMap["additionalColumns"] = sms.AdditionalColumns } - if sod.Type != "" { - objectMap["type"] = sod.Type + if sms.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sms.SourceRetryCount } - for k, v := range sod.AdditionalProperties { + if sms.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sms.SourceRetryWait + } + if sms.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections + } + if sms.Type != "" { + objectMap["type"] = sms.Type + } + for k, v := range sms.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsHTTPSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOffice365Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsWebSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsOracleSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsHdfsSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsRestSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsODataSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsRelationalSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsBlobSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsResponsysSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsVerticaSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsZohoSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsXeroSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSquareSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsSparkSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsShopifySource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsPrestoSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsPaypalSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return &sod, true +// AsHubspotSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false +// AsSQLMISource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSQLMISource() (*SQLMISource, bool) { + return &sms, true } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sms, true +} + +// AsBinarySource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAvroSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDataset() (*Dataset, bool) { +// AsCopySource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true +// AsBasicCopySource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsBasicCopySource() (BasicCopySource, bool) { + return &sms, true } -// UnmarshalJSON is the custom unmarshaler for SalesforceObjectDataset struct. -func (sod *SalesforceObjectDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SQLMISource struct. +func (sms *SQLMISource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -192053,98 +191939,125 @@ func (sod *SalesforceObjectDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "sqlReaderQuery": if v != nil { - var salesforceObjectDatasetTypeProperties SalesforceObjectDatasetTypeProperties - err = json.Unmarshal(*v, &salesforceObjectDatasetTypeProperties) + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) if err != nil { return err } - sod.SalesforceObjectDatasetTypeProperties = &salesforceObjectDatasetTypeProperties + sms.SQLReaderQuery = SQLReaderQuery } - default: + case "sqlReaderStoredProcedureName": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) if err != nil { return err } - if sod.AdditionalProperties == nil { - sod.AdditionalProperties = make(map[string]interface{}) + sms.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters map[string]*StoredProcedureParameter + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err } - sod.AdditionalProperties[k] = additionalProperties + sms.StoredProcedureParameters = storedProcedureParameters } - case "description": + case "produceAdditionalTypes": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var produceAdditionalTypes interface{} + err = json.Unmarshal(*v, &produceAdditionalTypes) if err != nil { return err } - sod.Description = &description + sms.ProduceAdditionalTypes = produceAdditionalTypes } - case "structure": + case "partitionOption": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) if err != nil { return err } - sod.Structure = structure + sms.PartitionOption = partitionOption } - case "schema": + case "partitionSettings": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) if err != nil { return err } - sod.Schema = schema + sms.PartitionSettings = &partitionSettings } - case "linkedServiceName": + case "queryTimeout": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - sod.LinkedServiceName = &linkedServiceName + sms.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sms.AdditionalColumns = &additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sms.AdditionalProperties == nil { + sms.AdditionalProperties = make(map[string]interface{}) + } + sms.AdditionalProperties[k] = additionalProperties } - case "parameters": + case "sourceRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - sod.Parameters = parameters + sms.SourceRetryCount = sourceRetryCount } - case "annotations": + case "sourceRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - sod.Annotations = &annotations + sms.SourceRetryWait = sourceRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - sod.Folder = &folder + sms.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sod.Type = typeVar + sms.Type = typeVar } } } @@ -192152,16 +192065,20 @@ func (sod *SalesforceObjectDataset) UnmarshalJSON(body []byte) error { return nil } -// SalesforceObjectDatasetTypeProperties salesforce object dataset properties. -type SalesforceObjectDatasetTypeProperties struct { - // ObjectAPIName - The Salesforce object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` +// SQLPartitionSettings the settings that will be leveraged for Sql source partitioning. +type SQLPartitionSettings struct { + // PartitionColumnName - The name of the column in integer or datetime type that will be used for proceeding partitioning. If not specified, the primary key of the table is auto-detected and used as the partition column. Type: string (or Expression with resultType string). + PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + // PartitionUpperBound - The maximum value of the partition column for partition range splitting. This value is used to decide the partition stride, not for filtering the rows in table. All rows in the table or query result will be partitioned and copied. Type: string (or Expression with resultType string). + PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + // PartitionLowerBound - The minimum value of the partition column for partition range splitting. This value is used to decide the partition stride, not for filtering the rows in table. All rows in the table or query result will be partitioned and copied. Type: string (or Expression with resultType string). + PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` } -// SalesforceServiceCloudLinkedService linked service for Salesforce Service Cloud. -type SalesforceServiceCloudLinkedService struct { - // SalesforceServiceCloudLinkedServiceTypeProperties - Salesforce Service Cloud linked service properties. - *SalesforceServiceCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SQLServerLinkedService SQL Server linked service. +type SQLServerLinkedService struct { + // SQLServerLinkedServiceTypeProperties - SQL Server linked service properties. + *SQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -192176,546 +192093,546 @@ type SalesforceServiceCloudLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) MarshalJSON() ([]byte, error) { - sscls.Type = TypeSalesforceServiceCloud +// MarshalJSON is the custom marshaler for SQLServerLinkedService. +func (ssls SQLServerLinkedService) MarshalJSON() ([]byte, error) { + ssls.Type = TypeSQLServer objectMap := make(map[string]interface{}) - if sscls.SalesforceServiceCloudLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sscls.SalesforceServiceCloudLinkedServiceTypeProperties + if ssls.SQLServerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = ssls.SQLServerLinkedServiceTypeProperties } - if sscls.ConnectVia != nil { - objectMap["connectVia"] = sscls.ConnectVia + if ssls.ConnectVia != nil { + objectMap["connectVia"] = ssls.ConnectVia } - if sscls.Description != nil { - objectMap["description"] = sscls.Description + if ssls.Description != nil { + objectMap["description"] = ssls.Description } - if sscls.Parameters != nil { - objectMap["parameters"] = sscls.Parameters + if ssls.Parameters != nil { + objectMap["parameters"] = ssls.Parameters } - if sscls.Annotations != nil { - objectMap["annotations"] = sscls.Annotations + if ssls.Annotations != nil { + objectMap["annotations"] = ssls.Annotations } - if sscls.Type != "" { - objectMap["type"] = sscls.Type + if ssls.Type != "" { + objectMap["type"] = ssls.Type } - for k, v := range sscls.AdditionalProperties { + for k, v := range ssls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return &sscls, true +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false +// AsSQLServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return &ssls, true } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sscls, true +// AsBasicLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ssls, true } -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudLinkedService struct. -func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SQLServerLinkedService struct. +func (ssls *SQLServerLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -192725,12 +192642,12 @@ func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) err switch k { case "typeProperties": if v != nil { - var salesforceServiceCloudLinkedServiceTypeProperties SalesforceServiceCloudLinkedServiceTypeProperties - err = json.Unmarshal(*v, &salesforceServiceCloudLinkedServiceTypeProperties) + var SQLServerLinkedServiceTypeProperties SQLServerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &SQLServerLinkedServiceTypeProperties) if err != nil { return err } - sscls.SalesforceServiceCloudLinkedServiceTypeProperties = &salesforceServiceCloudLinkedServiceTypeProperties + ssls.SQLServerLinkedServiceTypeProperties = &SQLServerLinkedServiceTypeProperties } default: if v != nil { @@ -192739,10 +192656,10 @@ func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) err if err != nil { return err } - if sscls.AdditionalProperties == nil { - sscls.AdditionalProperties = make(map[string]interface{}) + if ssls.AdditionalProperties == nil { + ssls.AdditionalProperties = make(map[string]interface{}) } - sscls.AdditionalProperties[k] = additionalProperties + ssls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -192751,7 +192668,7 @@ func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) err if err != nil { return err } - sscls.ConnectVia = &connectVia + ssls.ConnectVia = &connectVia } case "description": if v != nil { @@ -192760,7 +192677,7 @@ func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) err if err != nil { return err } - sscls.Description = &description + ssls.Description = &description } case "parameters": if v != nil { @@ -192769,7 +192686,7 @@ func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) err if err != nil { return err } - sscls.Parameters = parameters + ssls.Parameters = parameters } case "annotations": if v != nil { @@ -192778,7 +192695,7 @@ func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) err if err != nil { return err } - sscls.Annotations = &annotations + ssls.Annotations = &annotations } case "type": if v != nil { @@ -192787,7 +192704,7 @@ func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) err if err != nil { return err } - sscls.Type = typeVar + ssls.Type = typeVar } } } @@ -192795,26 +192712,22 @@ func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) err return nil } -// SalesforceServiceCloudLinkedServiceTypeProperties salesforce Service Cloud linked service properties. -type SalesforceServiceCloudLinkedServiceTypeProperties struct { - // EnvironmentURL - 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). - EnvironmentURL interface{} `json:"environmentUrl,omitempty"` - // Username - The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication of the Salesforce instance. +// SQLServerLinkedServiceTypeProperties SQL Server linked service properties. +type SQLServerLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // UserName - The on-premises Windows authentication user name. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - The on-premises Windows authentication password. Password BasicSecretBase `json:"password,omitempty"` - // SecurityToken - The security token is optional to remotely access Salesforce instance. - SecurityToken BasicSecretBase `json:"securityToken,omitempty"` - // APIVersion - The Salesforce API version used in ADF. Type: string (or Expression with resultType string). - APIVersion interface{} `json:"apiVersion,omitempty"` - // ExtendedProperties - Extended properties appended to the connection string. Type: string (or Expression with resultType string). - ExtendedProperties interface{} `json:"extendedProperties,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // AlwaysEncryptedSettings - Sql always encrypted properties. + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudLinkedServiceTypeProperties struct. -func (ssclstp *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SQLServerLinkedServiceTypeProperties struct. +func (sslstp *SQLServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -192822,23 +192735,23 @@ func (ssclstp *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON( } for k, v := range m { switch k { - case "environmentUrl": + case "connectionString": if v != nil { - var environmentURL interface{} - err = json.Unmarshal(*v, &environmentURL) + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) if err != nil { return err } - ssclstp.EnvironmentURL = environmentURL + sslstp.ConnectionString = connectionString } - case "username": + case "userName": if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) + var userName interface{} + err = json.Unmarshal(*v, &userName) if err != nil { return err } - ssclstp.Username = username + sslstp.UserName = userName } case "password": if v != nil { @@ -192846,42 +192759,441 @@ func (ssclstp *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON( if err != nil { return err } - ssclstp.Password = password + sslstp.Password = password } - case "securityToken": + case "encryptedCredential": if v != nil { - securityToken, err := unmarshalBasicSecretBase(*v) + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) if err != nil { return err } - ssclstp.SecurityToken = securityToken + sslstp.EncryptedCredential = encryptedCredential } - case "apiVersion": + case "alwaysEncryptedSettings": if v != nil { - var APIVersion interface{} - err = json.Unmarshal(*v, &APIVersion) + var alwaysEncryptedSettings SQLAlwaysEncryptedProperties + err = json.Unmarshal(*v, &alwaysEncryptedSettings) if err != nil { return err } - ssclstp.APIVersion = APIVersion + sslstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings } - case "extendedProperties": + } + } + + return nil +} + +// SQLServerSink a copy activity SQL server sink. +type SQLServerSink struct { + // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). + SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). + SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // StoredProcedureParameters - SQL stored procedure parameters. + StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` + // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + // TableOption - The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). + TableOption interface{} `json:"tableOption,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLServerSink. +func (sss SQLServerSink) MarshalJSON() ([]byte, error) { + sss.Type = TypeSQLServerSink + objectMap := make(map[string]interface{}) + if sss.SQLWriterStoredProcedureName != nil { + objectMap["sqlWriterStoredProcedureName"] = sss.SQLWriterStoredProcedureName + } + if sss.SQLWriterTableType != nil { + objectMap["sqlWriterTableType"] = sss.SQLWriterTableType + } + if sss.PreCopyScript != nil { + objectMap["preCopyScript"] = sss.PreCopyScript + } + if sss.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = sss.StoredProcedureParameters + } + if sss.StoredProcedureTableTypeParameterName != nil { + objectMap["storedProcedureTableTypeParameterName"] = sss.StoredProcedureTableTypeParameterName + } + if sss.TableOption != nil { + objectMap["tableOption"] = sss.TableOption + } + if sss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = sss.WriteBatchSize + } + if sss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = sss.WriteBatchTimeout + } + if sss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = sss.SinkRetryCount + } + if sss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = sss.SinkRetryWait + } + if sss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections + } + if sss.Type != "" { + objectMap["type"] = sss.Type + } + for k, v := range sss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSQLServerSink() (*SQLServerSink, bool) { + return &sss, true +} + +// AsSQLSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsBasicCopySink() (BasicCopySink, bool) { + return &sss, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLServerSink struct. +func (sss *SQLServerSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlWriterStoredProcedureName": if v != nil { - var extendedProperties interface{} - err = json.Unmarshal(*v, &extendedProperties) + var SQLWriterStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) if err != nil { return err } - ssclstp.ExtendedProperties = extendedProperties + sss.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName } - case "encryptedCredential": + case "sqlWriterTableType": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var SQLWriterTableType interface{} + err = json.Unmarshal(*v, &SQLWriterTableType) if err != nil { return err } - ssclstp.EncryptedCredential = encryptedCredential + sss.SQLWriterTableType = SQLWriterTableType + } + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + sss.PreCopyScript = preCopyScript + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters map[string]*StoredProcedureParameter + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + sss.StoredProcedureParameters = storedProcedureParameters + } + case "storedProcedureTableTypeParameterName": + if v != nil { + var storedProcedureTableTypeParameterName interface{} + err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) + if err != nil { + return err + } + sss.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + sss.TableOption = tableOption + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sss.AdditionalProperties == nil { + sss.AdditionalProperties = make(map[string]interface{}) + } + sss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + sss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + sss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + sss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + sss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sss.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sss.Type = typeVar } } } @@ -192889,544 +193201,564 @@ func (ssclstp *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON( return nil } -// SalesforceServiceCloudObjectDataset the Salesforce Service Cloud object dataset. -type SalesforceServiceCloudObjectDataset struct { - // SalesforceServiceCloudObjectDatasetTypeProperties - Salesforce Service Cloud object dataset properties. - *SalesforceServiceCloudObjectDatasetTypeProperties `json:"typeProperties,omitempty"` +// SQLServerSource a copy activity SQL server source. +type SQLServerSource struct { + // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). + SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` + // ProduceAdditionalTypes - Which additional types to produce. + ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { - sscod.Type = TypeSalesforceServiceCloudObject +// MarshalJSON is the custom marshaler for SQLServerSource. +func (sss SQLServerSource) MarshalJSON() ([]byte, error) { + sss.Type = TypeSQLServerSource objectMap := make(map[string]interface{}) - if sscod.SalesforceServiceCloudObjectDatasetTypeProperties != nil { - objectMap["typeProperties"] = sscod.SalesforceServiceCloudObjectDatasetTypeProperties + if sss.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = sss.SQLReaderQuery } - if sscod.Description != nil { - objectMap["description"] = sscod.Description + if sss.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = sss.SQLReaderStoredProcedureName } - if sscod.Structure != nil { - objectMap["structure"] = sscod.Structure + if sss.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = sss.StoredProcedureParameters } - if sscod.Schema != nil { - objectMap["schema"] = sscod.Schema + if sss.ProduceAdditionalTypes != nil { + objectMap["produceAdditionalTypes"] = sss.ProduceAdditionalTypes } - if sscod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sscod.LinkedServiceName + if sss.PartitionOption != nil { + objectMap["partitionOption"] = sss.PartitionOption } - if sscod.Parameters != nil { - objectMap["parameters"] = sscod.Parameters + if sss.PartitionSettings != nil { + objectMap["partitionSettings"] = sss.PartitionSettings } - if sscod.Annotations != nil { - objectMap["annotations"] = sscod.Annotations + if sss.QueryTimeout != nil { + objectMap["queryTimeout"] = sss.QueryTimeout } - if sscod.Folder != nil { - objectMap["folder"] = sscod.Folder + if sss.AdditionalColumns != nil { + objectMap["additionalColumns"] = sss.AdditionalColumns } - if sscod.Type != "" { - objectMap["type"] = sscod.Type + if sss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sss.SourceRetryCount } - for k, v := range sscod.AdditionalProperties { + if sss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sss.SourceRetryWait + } + if sss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections + } + if sss.Type != "" { + objectMap["type"] = sss.Type + } + for k, v := range sss.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsHTTPSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOffice365Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsWebSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsOracleSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsHdfsSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsRestSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsODataSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsRelationalSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsBlobSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsResponsysSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsVerticaSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsZohoSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsXeroSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSquareSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsSparkSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsShopifySource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsPrestoSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsPaypalSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return &sscod, true +// AsImpalaSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false +// AsSQLServerSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSQLServerSource() (*SQLServerSource, bool) { + return &sss, true } -// AsOffice365Dataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sss, true +} + +// AsBinarySource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAvroSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDataset() (*Dataset, bool) { +// AsCopySource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sscod, true +// AsBasicCopySource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sss, true } -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudObjectDataset struct. -func (sscod *SalesforceServiceCloudObjectDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SQLServerSource struct. +func (sss *SQLServerSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -193434,98 +193766,125 @@ func (sscod *SalesforceServiceCloudObjectDataset) UnmarshalJSON(body []byte) err } for k, v := range m { switch k { - case "typeProperties": + case "sqlReaderQuery": if v != nil { - var salesforceServiceCloudObjectDatasetTypeProperties SalesforceServiceCloudObjectDatasetTypeProperties - err = json.Unmarshal(*v, &salesforceServiceCloudObjectDatasetTypeProperties) + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) if err != nil { return err } - sscod.SalesforceServiceCloudObjectDatasetTypeProperties = &salesforceServiceCloudObjectDatasetTypeProperties + sss.SQLReaderQuery = SQLReaderQuery } - default: + case "sqlReaderStoredProcedureName": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) if err != nil { return err } - if sscod.AdditionalProperties == nil { - sscod.AdditionalProperties = make(map[string]interface{}) + sss.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters map[string]*StoredProcedureParameter + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err } - sscod.AdditionalProperties[k] = additionalProperties + sss.StoredProcedureParameters = storedProcedureParameters } - case "description": + case "produceAdditionalTypes": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var produceAdditionalTypes interface{} + err = json.Unmarshal(*v, &produceAdditionalTypes) if err != nil { return err } - sscod.Description = &description + sss.ProduceAdditionalTypes = produceAdditionalTypes } - case "structure": + case "partitionOption": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) if err != nil { return err } - sscod.Structure = structure + sss.PartitionOption = partitionOption } - case "schema": + case "partitionSettings": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) if err != nil { return err } - sscod.Schema = schema + sss.PartitionSettings = &partitionSettings } - case "linkedServiceName": + case "queryTimeout": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - sscod.LinkedServiceName = &linkedServiceName + sss.QueryTimeout = queryTimeout } - case "parameters": + case "additionalColumns": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - sscod.Parameters = parameters + sss.AdditionalColumns = &additionalColumns } - case "annotations": + default: if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sscod.Annotations = &annotations + if sss.AdditionalProperties == nil { + sss.AdditionalProperties = make(map[string]interface{}) + } + sss.AdditionalProperties[k] = additionalProperties } - case "folder": + case "sourceRetryCount": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - sscod.Folder = &folder + sss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sss.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sscod.Type = typeVar + sss.Type = typeVar } } } @@ -193533,270 +193892,264 @@ func (sscod *SalesforceServiceCloudObjectDataset) UnmarshalJSON(body []byte) err return nil } -// SalesforceServiceCloudObjectDatasetTypeProperties salesforce Service Cloud object dataset properties. -type SalesforceServiceCloudObjectDatasetTypeProperties struct { - // ObjectAPIName - The Salesforce Service Cloud object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` -} - -// SalesforceServiceCloudSink a copy activity Salesforce Service Cloud sink. -type SalesforceServiceCloudSink struct { - // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceSinkWriteBehaviorInsert', 'SalesforceSinkWriteBehaviorUpsert' - WriteBehavior SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` - // ExternalIDFieldName - The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with resultType string). - ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` - // IgnoreNullValues - The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. Default value is false. If set it to true, it means ADF will leave the data in the destination object unchanged when doing upsert/update operation and insert defined default value when doing insert operation, versus ADF will update the data in the destination object to NULL when doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` +// SQLServerStoredProcedureActivity SQL stored procedure activity type. +type SQLServerStoredProcedureActivity struct { + // SQLServerStoredProcedureActivityTypeProperties - SQL stored procedure activity properties. + *SQLServerStoredProcedureActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) MarshalJSON() ([]byte, error) { - sscs.Type = TypeSalesforceServiceCloudSink +// MarshalJSON is the custom marshaler for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) MarshalJSON() ([]byte, error) { + ssspa.Type = TypeSQLServerStoredProcedure objectMap := make(map[string]interface{}) - if sscs.WriteBehavior != "" { - objectMap["writeBehavior"] = sscs.WriteBehavior - } - if sscs.ExternalIDFieldName != nil { - objectMap["externalIdFieldName"] = sscs.ExternalIDFieldName + if ssspa.SQLServerStoredProcedureActivityTypeProperties != nil { + objectMap["typeProperties"] = ssspa.SQLServerStoredProcedureActivityTypeProperties } - if sscs.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = sscs.IgnoreNullValues + if ssspa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ssspa.LinkedServiceName } - if sscs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = sscs.WriteBatchSize + if ssspa.Policy != nil { + objectMap["policy"] = ssspa.Policy } - if sscs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = sscs.WriteBatchTimeout + if ssspa.Name != nil { + objectMap["name"] = ssspa.Name } - if sscs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = sscs.SinkRetryCount + if ssspa.Description != nil { + objectMap["description"] = ssspa.Description } - if sscs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = sscs.SinkRetryWait + if ssspa.DependsOn != nil { + objectMap["dependsOn"] = ssspa.DependsOn } - if sscs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections + if ssspa.UserProperties != nil { + objectMap["userProperties"] = ssspa.UserProperties } - if sscs.Type != "" { - objectMap["type"] = sscs.Type + if ssspa.Type != "" { + objectMap["type"] = ssspa.Type } - for k, v := range sscs.AdditionalProperties { + for k, v := range ssspa.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return &sscs, true +// AsAzureFunctionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsInformixSink() (*InformixSink, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsOdbcSink() (*OdbcSink, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsWebActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsLookupActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsOracleSink() (*OracleSink, bool) { +// AsDeleteActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return &ssspa, true } -// AsSQLDWSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsCustomActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSQLMISink() (*SQLMISink, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSQLSink() (*SQLSink, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsCopyActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsBlobSink() (*BlobSink, bool) { +// AsExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsBinarySink() (*BinarySink, bool) { +// AsBasicExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &ssspa, true +} + +// AsWebHookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsParquetSink() (*ParquetSink, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAvroSink() (*AvroSink, bool) { +// AsSetVariableActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsFilterActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsValidationActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsUntilActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsWaitActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsForEachActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsSwitchActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsRestSink() (*RestSink, bool) { +// AsIfConditionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsOrcSink() (*OrcSink, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsJSONSink() (*JSONSink, bool) { +// AsControlActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsBasicControlActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsBasicControlActivity() (BasicControlActivity, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsCopySink() (*CopySink, bool) { +// AsActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsBasicCopySink() (BasicCopySink, bool) { - return &sscs, true +// AsBasicActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsBasicActivity() (BasicActivity, bool) { + return &ssspa, true } -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudSink struct. -func (sscs *SalesforceServiceCloudSink) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SQLServerStoredProcedureActivity struct. +func (ssspa *SQLServerStoredProcedureActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -193804,32 +194157,32 @@ func (sscs *SalesforceServiceCloudSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "writeBehavior": + case "typeProperties": if v != nil { - var writeBehavior SalesforceSinkWriteBehavior - err = json.Unmarshal(*v, &writeBehavior) + var SQLServerStoredProcedureActivityTypeProperties SQLServerStoredProcedureActivityTypeProperties + err = json.Unmarshal(*v, &SQLServerStoredProcedureActivityTypeProperties) if err != nil { return err } - sscs.WriteBehavior = writeBehavior + ssspa.SQLServerStoredProcedureActivityTypeProperties = &SQLServerStoredProcedureActivityTypeProperties } - case "externalIdFieldName": + case "linkedServiceName": if v != nil { - var externalIDFieldName interface{} - err = json.Unmarshal(*v, &externalIDFieldName) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - sscs.ExternalIDFieldName = externalIDFieldName + ssspa.LinkedServiceName = &linkedServiceName } - case "ignoreNullValues": + case "policy": if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) if err != nil { return err } - sscs.IgnoreNullValues = ignoreNullValues + ssspa.Policy = &policy } default: if v != nil { @@ -193838,64 +194191,55 @@ func (sscs *SalesforceServiceCloudSink) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sscs.AdditionalProperties == nil { - sscs.AdditionalProperties = make(map[string]interface{}) - } - sscs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err + if ssspa.AdditionalProperties == nil { + ssspa.AdditionalProperties = make(map[string]interface{}) } - sscs.WriteBatchSize = writeBatchSize + ssspa.AdditionalProperties[k] = additionalProperties } - case "writeBatchTimeout": + case "name": if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - sscs.WriteBatchTimeout = writeBatchTimeout + ssspa.Name = &name } - case "sinkRetryCount": + case "description": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - sscs.SinkRetryCount = sinkRetryCount + ssspa.Description = &description } - case "sinkRetryWait": + case "dependsOn": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) if err != nil { return err } - sscs.SinkRetryWait = sinkRetryWait + ssspa.DependsOn = &dependsOn } - case "maxConcurrentConnections": + case "userProperties": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) if err != nil { return err } - sscs.MaxConcurrentConnections = maxConcurrentConnections + ssspa.UserProperties = &userProperties } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicActivity err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sscs.Type = typeVar + ssspa.Type = typeVar } } } @@ -193903,539 +194247,564 @@ func (sscs *SalesforceServiceCloudSink) UnmarshalJSON(body []byte) error { return nil } -// SalesforceServiceCloudSource a copy activity Salesforce Service Cloud source. -type SalesforceServiceCloudSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ReadBehavior - The read behavior for the operation. Default is Query. Possible values include: 'Query', 'QueryAll' - ReadBehavior SalesforceSourceReadBehavior `json:"readBehavior,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// SQLServerStoredProcedureActivityTypeProperties SQL stored procedure activity properties. +type SQLServerStoredProcedureActivityTypeProperties struct { + // StoredProcedureName - Stored procedure name. Type: string (or Expression with resultType string). + StoredProcedureName interface{} `json:"storedProcedureName,omitempty"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` +} + +// MarshalJSON is the custom marshaler for SQLServerStoredProcedureActivityTypeProperties. +func (ssspatp SQLServerStoredProcedureActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ssspatp.StoredProcedureName != nil { + objectMap["storedProcedureName"] = ssspatp.StoredProcedureName + } + if ssspatp.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = ssspatp.StoredProcedureParameters + } + return json.Marshal(objectMap) +} + +// SQLServerTableDataset the on-premises SQL Server dataset. +type SQLServerTableDataset struct { + // SQLServerTableDatasetTypeProperties - On-premises SQL Server dataset properties. + *SQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) MarshalJSON() ([]byte, error) { - sscs.Type = TypeSalesforceServiceCloudSource +// MarshalJSON is the custom marshaler for SQLServerTableDataset. +func (sstd SQLServerTableDataset) MarshalJSON() ([]byte, error) { + sstd.Type = TypeSQLServerTable objectMap := make(map[string]interface{}) - if sscs.Query != nil { - objectMap["query"] = sscs.Query + if sstd.SQLServerTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = sstd.SQLServerTableDatasetTypeProperties } - if sscs.ReadBehavior != "" { - objectMap["readBehavior"] = sscs.ReadBehavior + if sstd.Description != nil { + objectMap["description"] = sstd.Description } - if sscs.AdditionalColumns != nil { - objectMap["additionalColumns"] = sscs.AdditionalColumns + if sstd.Structure != nil { + objectMap["structure"] = sstd.Structure } - if sscs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sscs.SourceRetryCount + if sstd.Schema != nil { + objectMap["schema"] = sstd.Schema } - if sscs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sscs.SourceRetryWait + if sstd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sstd.LinkedServiceName } - if sscs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections + if sstd.Parameters != nil { + objectMap["parameters"] = sstd.Parameters } - if sscs.Type != "" { - objectMap["type"] = sscs.Type + if sstd.Annotations != nil { + objectMap["annotations"] = sstd.Annotations } - for k, v := range sscs.AdditionalProperties { + if sstd.Folder != nil { + objectMap["folder"] = sstd.Folder + } + if sstd.Type != "" { + objectMap["type"] = sstd.Type + } + for k, v := range sstd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsHTTPSource() (*HTTPSource, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsOffice365Source() (*Office365Source, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsWebSource() (*WebSource, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsOracleSource() (*OracleSource, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsHdfsSource() (*HdfsSource, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsRestSource() (*RestSource, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return &sscs, true +// AsShopifyObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false } -// AsODataSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsODataSource() (*ODataSource, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsRelationalSource() (*RelationalSource, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsBlobSource() (*BlobSource, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsVerticaSource() (*VerticaSource, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsZohoSource() (*ZohoSource, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsXeroSource() (*XeroSource, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSquareSource() (*SquareSource, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSparkSource() (*SparkSource, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsShopifySource() (*ShopifySource, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsHTTPDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsPrestoSource() (*PrestoSource, bool) { +// AsWebTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsPaypalSource() (*PaypalSource, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return &sstd, true +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMagentoSource() (*MagentoSource, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsJiraSource() (*JiraSource, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsHubspotSource() (*HubspotSource, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsHiveSource() (*HiveSource, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsHBaseSource() (*HBaseSource, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsEloquaSource() (*EloquaSource, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDrillSource() (*DrillSource, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsConcurSource() (*ConcurSource, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCassandraSource() (*CassandraSource, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsTeradataSource() (*TeradataSource, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSQLMISource() (*SQLMISource, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSQLSource() (*SQLSource, bool) { +// AsFileShareDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapTableSource() (*SapTableSource, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapEccSource() (*SapEccSource, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapBwSource() (*SapBwSource, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSybaseSource() (*SybaseSource, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsCustomDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMySQLSource() (*MySQLSource, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsOdbcSource() (*OdbcSource, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDb2Source() (*Db2Source, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsInformixSource() (*InformixSource, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsBinaryDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsBinarySource() (*BinarySource, bool) { +// AsOrcDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsOrcSource() (*OrcSource, bool) { +// AsXMLDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsXMLSource() (*XMLSource, bool) { +// AsJSONDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsJSONSource() (*JSONSource, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsParquetDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsParquetSource() (*ParquetSource, bool) { +// AsExcelDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsExcelSource() (*ExcelSource, bool) { +// AsAvroDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAvroSource() (*AvroSource, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCopySource() (*CopySource, bool) { +// AsDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sscs, true +// AsBasicDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &sstd, true } -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudSource struct. -func (sscs *SalesforceServiceCloudSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SQLServerTableDataset struct. +func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -194443,80 +194812,98 @@ func (sscs *SalesforceServiceCloudSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var SQLServerTableDatasetTypeProperties SQLServerTableDatasetTypeProperties + err = json.Unmarshal(*v, &SQLServerTableDatasetTypeProperties) if err != nil { return err } - sscs.Query = query + sstd.SQLServerTableDatasetTypeProperties = &SQLServerTableDatasetTypeProperties } - case "readBehavior": + default: if v != nil { - var readBehavior SalesforceSourceReadBehavior - err = json.Unmarshal(*v, &readBehavior) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sscs.ReadBehavior = readBehavior + if sstd.AdditionalProperties == nil { + sstd.AdditionalProperties = make(map[string]interface{}) + } + sstd.AdditionalProperties[k] = additionalProperties } - case "additionalColumns": + case "description": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - sscs.AdditionalColumns = &additionalColumns + sstd.Description = &description } - default: + case "structure": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - if sscs.AdditionalProperties == nil { - sscs.AdditionalProperties = make(map[string]interface{}) + sstd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err } - sscs.AdditionalProperties[k] = additionalProperties + sstd.Schema = schema } - case "sourceRetryCount": + case "linkedServiceName": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - sscs.SourceRetryCount = sourceRetryCount + sstd.LinkedServiceName = &linkedServiceName } - case "sourceRetryWait": + case "parameters": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - sscs.SourceRetryWait = sourceRetryWait + sstd.Parameters = parameters } - case "maxConcurrentConnections": + case "annotations": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - sscs.MaxConcurrentConnections = maxConcurrentConnections + sstd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sstd.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sscs.Type = typeVar + sstd.Type = typeVar } } } @@ -194524,14 +194911,30 @@ func (sscs *SalesforceServiceCloudSource) UnmarshalJSON(body []byte) error { return nil } -// SalesforceSink a copy activity Salesforce sink. -type SalesforceSink struct { - // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceSinkWriteBehaviorInsert', 'SalesforceSinkWriteBehaviorUpsert' - WriteBehavior SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` - // ExternalIDFieldName - The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with resultType string). - ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` - // IgnoreNullValues - The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. Default value is false. If set it to true, it means ADF will leave the data in the destination object unchanged when doing upsert/update operation and insert defined default value when doing insert operation, versus ADF will update the data in the destination object to NULL when doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` +// SQLServerTableDatasetTypeProperties on-premises SQL Server dataset properties. +type SQLServerTableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Schema - The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the SQL Server dataset. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// SQLSink a copy activity SQL sink. +type SQLSink struct { + // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). + SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). + SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // StoredProcedureParameters - SQL stored procedure parameters. + StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` + // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + // TableOption - The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). + TableOption interface{} `json:"tableOption,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. @@ -194544,22 +194947,31 @@ type SalesforceSink struct { SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' Type TypeBasicCopySink `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SalesforceSink. -func (ss SalesforceSink) MarshalJSON() ([]byte, error) { - ss.Type = TypeSalesforceSink +// MarshalJSON is the custom marshaler for SQLSink. +func (ss SQLSink) MarshalJSON() ([]byte, error) { + ss.Type = TypeSQLSink objectMap := make(map[string]interface{}) - if ss.WriteBehavior != "" { - objectMap["writeBehavior"] = ss.WriteBehavior + if ss.SQLWriterStoredProcedureName != nil { + objectMap["sqlWriterStoredProcedureName"] = ss.SQLWriterStoredProcedureName } - if ss.ExternalIDFieldName != nil { - objectMap["externalIdFieldName"] = ss.ExternalIDFieldName + if ss.SQLWriterTableType != nil { + objectMap["sqlWriterTableType"] = ss.SQLWriterTableType } - if ss.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = ss.IgnoreNullValues + if ss.PreCopyScript != nil { + objectMap["preCopyScript"] = ss.PreCopyScript + } + if ss.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = ss.StoredProcedureParameters + } + if ss.StoredProcedureTableTypeParameterName != nil { + objectMap["storedProcedureTableTypeParameterName"] = ss.StoredProcedureTableTypeParameterName + } + if ss.TableOption != nil { + objectMap["tableOption"] = ss.TableOption } if ss.WriteBatchSize != nil { objectMap["writeBatchSize"] = ss.WriteBatchSize @@ -194585,203 +194997,213 @@ func (ss SalesforceSink) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSalesforceSink() (*SalesforceSink, bool) { - return &ss, true +// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsSalesforceSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsInformixSink() (*InformixSink, bool) { +// AsDynamicsSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsOdbcSink() (*OdbcSink, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsInformixSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsOdbcSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsOracleSink() (*OracleSink, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsOracleSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSQLMISink() (*SQLMISink, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsSQLDWSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsSQLMISink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSQLSink() (*SQLSink, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsSQLServerSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsSQLSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSQLSink() (*SQLSink, bool) { + return &ss, true +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsBlobSink() (*BlobSink, bool) { +// AsFileSystemSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsBinarySink() (*BinarySink, bool) { +// AsBlobSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsParquetSink() (*ParquetSink, bool) { +// AsBinarySink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAvroSink() (*AvroSink, bool) { +// AsParquetSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsAvroSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsAzureTableSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsRestSink() (*RestSink, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsOrcSink() (*OrcSink, bool) { +// AsRestSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsJSONSink() (*JSONSink, bool) { +// AsOrcSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsJSONSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsCopySink() (*CopySink, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsBasicCopySink() (BasicCopySink, bool) { +// AsCopySink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsBasicCopySink() (BasicCopySink, bool) { return &ss, true } -// UnmarshalJSON is the custom unmarshaler for SalesforceSink struct. -func (ss *SalesforceSink) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SQLSink struct. +func (ss *SQLSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -194789,32 +195211,59 @@ func (ss *SalesforceSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "writeBehavior": + case "sqlWriterStoredProcedureName": if v != nil { - var writeBehavior SalesforceSinkWriteBehavior - err = json.Unmarshal(*v, &writeBehavior) + var SQLWriterStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) if err != nil { return err } - ss.WriteBehavior = writeBehavior + ss.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName } - case "externalIdFieldName": + case "sqlWriterTableType": if v != nil { - var externalIDFieldName interface{} - err = json.Unmarshal(*v, &externalIDFieldName) + var SQLWriterTableType interface{} + err = json.Unmarshal(*v, &SQLWriterTableType) if err != nil { return err } - ss.ExternalIDFieldName = externalIDFieldName + ss.SQLWriterTableType = SQLWriterTableType } - case "ignoreNullValues": + case "preCopyScript": if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) if err != nil { return err } - ss.IgnoreNullValues = ignoreNullValues + ss.PreCopyScript = preCopyScript + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters map[string]*StoredProcedureParameter + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + ss.StoredProcedureParameters = storedProcedureParameters + } + case "storedProcedureTableTypeParameterName": + if v != nil { + var storedProcedureTableTypeParameterName interface{} + err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) + if err != nil { + return err + } + ss.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + ss.TableOption = tableOption } default: if v != nil { @@ -194888,12 +195337,20 @@ func (ss *SalesforceSink) UnmarshalJSON(body []byte) error { return nil } -// SalesforceSource a copy activity Salesforce source. -type SalesforceSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ReadBehavior - The read behavior for the operation. Default is Query. Possible values include: 'Query', 'QueryAll' - ReadBehavior SalesforceSourceReadBehavior `json:"readBehavior,omitempty"` +// SQLSource a copy activity SQL source. +type SQLSource struct { + // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). + SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` + // IsolationLevel - Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: string (or Expression with resultType string). + IsolationLevel interface{} `json:"isolationLevel,omitempty"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). @@ -194910,15 +195367,27 @@ type SalesforceSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SalesforceSource. -func (ss SalesforceSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeSalesforceSource +// MarshalJSON is the custom marshaler for SQLSource. +func (ss SQLSource) MarshalJSON() ([]byte, error) { + ss.Type = TypeSQLSource objectMap := make(map[string]interface{}) - if ss.Query != nil { - objectMap["query"] = ss.Query + if ss.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = ss.SQLReaderQuery } - if ss.ReadBehavior != "" { - objectMap["readBehavior"] = ss.ReadBehavior + if ss.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = ss.SQLReaderStoredProcedureName + } + if ss.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = ss.StoredProcedureParameters + } + if ss.IsolationLevel != nil { + objectMap["isolationLevel"] = ss.IsolationLevel + } + if ss.PartitionOption != nil { + objectMap["partitionOption"] = ss.PartitionOption + } + if ss.PartitionSettings != nil { + objectMap["partitionSettings"] = ss.PartitionSettings } if ss.QueryTimeout != nil { objectMap["queryTimeout"] = ss.QueryTimeout @@ -194944,488 +195413,488 @@ func (ss SalesforceSource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHTTPSource() (*HTTPSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOffice365Source() (*Office365Source, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsOffice365Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsWebSource() (*WebSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOracleSource() (*OracleSource, bool) { +// AsWebSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsOracleSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHdfsSource() (*HdfsSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsRestSource() (*RestSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsRestSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsODataSource() (*ODataSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsODataSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsRelationalSource() (*RelationalSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsBlobSource() (*BlobSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsBlobSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsVerticaSource() (*VerticaSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsZohoSource() (*ZohoSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsXeroSource() (*XeroSource, bool) { +// AsZohoSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSquareSource() (*SquareSource, bool) { +// AsXeroSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSparkSource() (*SparkSource, bool) { +// AsSquareSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsShopifySource() (*ShopifySource, bool) { +// AsSparkSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsShopifySource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPrestoSource() (*PrestoSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMarketoSource() (*MarketoSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsJiraSource() (*JiraSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsJiraSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHubspotSource() (*HubspotSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHiveSource() (*HiveSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHiveSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsEloquaSource() (*EloquaSource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDrillSource() (*DrillSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsDrillSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsConcurSource() (*ConcurSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsConcurSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCassandraSource() (*CassandraSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsTeradataSource() (*TeradataSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsSQLMISource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSQLSource() (*SQLSource, bool) { + return &ss, true +} + +// AsSapTableSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSalesforceSource() (*SalesforceSource, bool) { - return &ss, true +// AsSalesforceSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { return &ss, true } -// AsBinarySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsBasicCopySource() (BasicCopySource, bool) { +// AsBasicCopySource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsBasicCopySource() (BasicCopySource, bool) { return &ss, true } -// UnmarshalJSON is the custom unmarshaler for SalesforceSource struct. -func (ss *SalesforceSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SQLSource struct. +func (ss *SQLSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -195433,23 +195902,59 @@ func (ss *SalesforceSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "sqlReaderQuery": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) if err != nil { return err } - ss.Query = query + ss.SQLReaderQuery = SQLReaderQuery } - case "readBehavior": + case "sqlReaderStoredProcedureName": if v != nil { - var readBehavior SalesforceSourceReadBehavior - err = json.Unmarshal(*v, &readBehavior) + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) if err != nil { return err } - ss.ReadBehavior = readBehavior + ss.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters map[string]*StoredProcedureParameter + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + ss.StoredProcedureParameters = storedProcedureParameters + } + case "isolationLevel": + if v != nil { + var isolationLevel interface{} + err = json.Unmarshal(*v, &isolationLevel) + if err != nil { + return err + } + ss.IsolationLevel = isolationLevel + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + ss.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + ss.PartitionSettings = &partitionSettings } case "queryTimeout": if v != nil { @@ -195523,539 +196028,899 @@ func (ss *SalesforceSource) UnmarshalJSON(body []byte) error { return nil } -// SapBwCubeDataset the SAP BW cube dataset. -type SapBwCubeDataset struct { +// SSISAccessCredential SSIS access credential. +type SSISAccessCredential struct { + // Domain - Domain for windows authentication. + Domain interface{} `json:"domain,omitempty"` + // UserName - UseName for windows authentication. + UserName interface{} `json:"userName,omitempty"` + // Password - Password for windows authentication. + Password BasicSecretBase `json:"password,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SSISAccessCredential struct. +func (sac *SSISAccessCredential) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "domain": + if v != nil { + var domain interface{} + err = json.Unmarshal(*v, &domain) + if err != nil { + return err + } + sac.Domain = domain + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + sac.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sac.Password = password + } + } + } + + return nil +} + +// SSISChildPackage SSIS embedded child package. +type SSISChildPackage struct { + // PackagePath - Path for embedded child package. Type: string (or Expression with resultType string). + PackagePath interface{} `json:"packagePath,omitempty"` + // PackageName - Name for embedded child package. + PackageName *string `json:"packageName,omitempty"` + // PackageContent - Content for embedded child package. Type: string (or Expression with resultType string). + PackageContent interface{} `json:"packageContent,omitempty"` + // PackageLastModifiedDate - Last modified date for embedded child package. + PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` +} + +// SSISExecutionCredential SSIS package execution credential. +type SSISExecutionCredential struct { + // Domain - Domain for windows authentication. + Domain interface{} `json:"domain,omitempty"` + // UserName - UseName for windows authentication. + UserName interface{} `json:"userName,omitempty"` + // Password - Password for windows authentication. + Password *SecureString `json:"password,omitempty"` +} + +// SSISExecutionParameter SSIS execution parameter. +type SSISExecutionParameter struct { + // Value - SSIS package execution parameter value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` +} + +// SSISLogLocation SSIS package execution log location +type SSISLogLocation struct { + // LogPath - The SSIS package execution log path. Type: string (or Expression with resultType string). + LogPath interface{} `json:"logPath,omitempty"` + // Type - The type of SSIS log location. + Type *string `json:"type,omitempty"` + // SSISLogLocationTypeProperties - SSIS package execution log location properties. + *SSISLogLocationTypeProperties `json:"typeProperties,omitempty"` +} + +// MarshalJSON is the custom marshaler for SSISLogLocation. +func (sll SSISLogLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sll.LogPath != nil { + objectMap["logPath"] = sll.LogPath + } + if sll.Type != nil { + objectMap["type"] = sll.Type + } + if sll.SSISLogLocationTypeProperties != nil { + objectMap["typeProperties"] = sll.SSISLogLocationTypeProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SSISLogLocation struct. +func (sll *SSISLogLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "logPath": + if v != nil { + var logPath interface{} + err = json.Unmarshal(*v, &logPath) + if err != nil { + return err + } + sll.LogPath = logPath + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sll.Type = &typeVar + } + case "typeProperties": + if v != nil { + var sSISLogLocationTypeProperties SSISLogLocationTypeProperties + err = json.Unmarshal(*v, &sSISLogLocationTypeProperties) + if err != nil { + return err + } + sll.SSISLogLocationTypeProperties = &sSISLogLocationTypeProperties + } + } + } + + return nil +} + +// SSISLogLocationTypeProperties SSIS package execution log location properties. +type SSISLogLocationTypeProperties struct { + // AccessCredential - The package execution log access credential. + AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"` + // LogRefreshInterval - Specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + LogRefreshInterval interface{} `json:"logRefreshInterval,omitempty"` +} + +// SSISPackageLocation SSIS package location. +type SSISPackageLocation struct { + // PackagePath - The SSIS package path. Type: string (or Expression with resultType string). + PackagePath interface{} `json:"packagePath,omitempty"` + // Type - The type of SSIS package location. Possible values include: 'SsisPackageLocationTypeSSISDB', 'SsisPackageLocationTypeFile', 'SsisPackageLocationTypeInlinePackage', 'SsisPackageLocationTypePackageStore' + Type SsisPackageLocationType `json:"type,omitempty"` + // SSISPackageLocationTypeProperties - SSIS package location properties. + *SSISPackageLocationTypeProperties `json:"typeProperties,omitempty"` +} + +// MarshalJSON is the custom marshaler for SSISPackageLocation. +func (spl SSISPackageLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if spl.PackagePath != nil { + objectMap["packagePath"] = spl.PackagePath + } + if spl.Type != "" { + objectMap["type"] = spl.Type + } + if spl.SSISPackageLocationTypeProperties != nil { + objectMap["typeProperties"] = spl.SSISPackageLocationTypeProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SSISPackageLocation struct. +func (spl *SSISPackageLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "packagePath": + if v != nil { + var packagePath interface{} + err = json.Unmarshal(*v, &packagePath) + if err != nil { + return err + } + spl.PackagePath = packagePath + } + case "type": + if v != nil { + var typeVar SsisPackageLocationType + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + spl.Type = typeVar + } + case "typeProperties": + if v != nil { + var sSISPackageLocationTypeProperties SSISPackageLocationTypeProperties + err = json.Unmarshal(*v, &sSISPackageLocationTypeProperties) + if err != nil { + return err + } + spl.SSISPackageLocationTypeProperties = &sSISPackageLocationTypeProperties + } + } + } + + return nil +} + +// SSISPackageLocationTypeProperties SSIS package location properties. +type SSISPackageLocationTypeProperties struct { + // PackagePassword - Password of the package. + PackagePassword BasicSecretBase `json:"packagePassword,omitempty"` + // AccessCredential - The package access credential. + AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"` + // ConfigurationPath - The configuration file of the package execution. Type: string (or Expression with resultType string). + ConfigurationPath interface{} `json:"configurationPath,omitempty"` + // ConfigurationAccessCredential - The configuration file access credential. + ConfigurationAccessCredential *SSISAccessCredential `json:"configurationAccessCredential,omitempty"` + // PackageName - The package name. + PackageName *string `json:"packageName,omitempty"` + // PackageContent - The embedded package content. Type: string (or Expression with resultType string). + PackageContent interface{} `json:"packageContent,omitempty"` + // PackageLastModifiedDate - The embedded package last modified date. + PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` + // ChildPackages - The embedded child package list. + ChildPackages *[]SSISChildPackage `json:"childPackages,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SSISPackageLocationTypeProperties struct. +func (spltp *SSISPackageLocationTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "packagePassword": + if v != nil { + packagePassword, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + spltp.PackagePassword = packagePassword + } + case "accessCredential": + if v != nil { + var accessCredential SSISAccessCredential + err = json.Unmarshal(*v, &accessCredential) + if err != nil { + return err + } + spltp.AccessCredential = &accessCredential + } + case "configurationPath": + if v != nil { + var configurationPath interface{} + err = json.Unmarshal(*v, &configurationPath) + if err != nil { + return err + } + spltp.ConfigurationPath = configurationPath + } + case "configurationAccessCredential": + if v != nil { + var configurationAccessCredential SSISAccessCredential + err = json.Unmarshal(*v, &configurationAccessCredential) + if err != nil { + return err + } + spltp.ConfigurationAccessCredential = &configurationAccessCredential + } + case "packageName": + if v != nil { + var packageName string + err = json.Unmarshal(*v, &packageName) + if err != nil { + return err + } + spltp.PackageName = &packageName + } + case "packageContent": + if v != nil { + var packageContent interface{} + err = json.Unmarshal(*v, &packageContent) + if err != nil { + return err + } + spltp.PackageContent = packageContent + } + case "packageLastModifiedDate": + if v != nil { + var packageLastModifiedDate string + err = json.Unmarshal(*v, &packageLastModifiedDate) + if err != nil { + return err + } + spltp.PackageLastModifiedDate = &packageLastModifiedDate + } + case "childPackages": + if v != nil { + var childPackages []SSISChildPackage + err = json.Unmarshal(*v, &childPackages) + if err != nil { + return err + } + spltp.ChildPackages = &childPackages + } + } + } + + return nil +} + +// SSISPropertyOverride SSIS property override. +type SSISPropertyOverride struct { + // Value - SSIS package property override value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` + // IsSensitive - Whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB if it is true + IsSensitive *bool `json:"isSensitive,omitempty"` +} + +// SalesforceLinkedService linked service for Salesforce. +type SalesforceLinkedService struct { + // SalesforceLinkedServiceTypeProperties - Salesforce linked service properties. + *SalesforceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. + // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) MarshalJSON() ([]byte, error) { - sbcd.Type = TypeSapBwCube +// MarshalJSON is the custom marshaler for SalesforceLinkedService. +func (sls SalesforceLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeSalesforce objectMap := make(map[string]interface{}) - if sbcd.Description != nil { - objectMap["description"] = sbcd.Description - } - if sbcd.Structure != nil { - objectMap["structure"] = sbcd.Structure - } - if sbcd.Schema != nil { - objectMap["schema"] = sbcd.Schema + if sls.SalesforceLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.SalesforceLinkedServiceTypeProperties } - if sbcd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sbcd.LinkedServiceName + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia } - if sbcd.Parameters != nil { - objectMap["parameters"] = sbcd.Parameters + if sls.Description != nil { + objectMap["description"] = sls.Description } - if sbcd.Annotations != nil { - objectMap["annotations"] = sbcd.Annotations + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters } - if sbcd.Folder != nil { - objectMap["folder"] = sbcd.Folder + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations } - if sbcd.Type != "" { - objectMap["type"] = sbcd.Type + if sls.Type != "" { + objectMap["type"] = sls.Type } - for k, v := range sbcd.AdditionalProperties { + for k, v := range sls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return &sbcd, true +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return &sls, true +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDataset() (*Dataset, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsBasicDataset() (BasicDataset, bool) { - return &sbcd, true +// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SapBwCubeDataset struct. -func (sbcd *SapBwCubeDataset) UnmarshalJSON(body []byte) error { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceLinkedService struct. +func (sls *SalesforceLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -196063,6 +196928,15 @@ func (sbcd *SapBwCubeDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { + case "typeProperties": + if v != nil { + var salesforceLinkedServiceTypeProperties SalesforceLinkedServiceTypeProperties + err = json.Unmarshal(*v, &salesforceLinkedServiceTypeProperties) + if err != nil { + return err + } + sls.SalesforceLinkedServiceTypeProperties = &salesforceLinkedServiceTypeProperties + } default: if v != nil { var additionalProperties interface{} @@ -196070,10 +196944,19 @@ func (sbcd *SapBwCubeDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sbcd.AdditionalProperties == nil { - sbcd.AdditionalProperties = make(map[string]interface{}) + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) } - sbcd.AdditionalProperties[k] = additionalProperties + sls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sls.ConnectVia = &connectVia } case "description": if v != nil { @@ -196082,70 +196965,117 @@ func (sbcd *SapBwCubeDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sbcd.Description = &description + sls.Description = &description } - case "structure": + case "parameters": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - sbcd.Structure = structure + sls.Parameters = parameters } - case "schema": + case "annotations": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - sbcd.Schema = schema + sls.Annotations = &annotations } - case "linkedServiceName": + case "type": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sbcd.LinkedServiceName = &linkedServiceName + sls.Type = typeVar } - case "parameters": + } + } + + return nil +} + +// SalesforceLinkedServiceTypeProperties salesforce linked service properties. +type SalesforceLinkedServiceTypeProperties struct { + // EnvironmentURL - 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). + EnvironmentURL interface{} `json:"environmentUrl,omitempty"` + // Username - The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - The password for Basic authentication of the Salesforce instance. + Password BasicSecretBase `json:"password,omitempty"` + // SecurityToken - The security token is optional to remotely access Salesforce instance. + SecurityToken BasicSecretBase `json:"securityToken,omitempty"` + // APIVersion - The Salesforce API version used in ADF. Type: string (or Expression with resultType string). + APIVersion interface{} `json:"apiVersion,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceLinkedServiceTypeProperties struct. +func (slstp *SalesforceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "environmentUrl": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var environmentURL interface{} + err = json.Unmarshal(*v, &environmentURL) if err != nil { return err } - sbcd.Parameters = parameters + slstp.EnvironmentURL = environmentURL } - case "annotations": + case "username": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var username interface{} + err = json.Unmarshal(*v, &username) if err != nil { return err } - sbcd.Annotations = &annotations + slstp.Username = username } - case "folder": + case "password": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + password, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - sbcd.Folder = &folder + slstp.Password = password } - case "type": + case "securityToken": if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) + securityToken, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - sbcd.Type = typeVar + slstp.SecurityToken = securityToken + } + case "apiVersion": + if v != nil { + var APIVersion interface{} + err = json.Unmarshal(*v, &APIVersion) + if err != nil { + return err + } + slstp.APIVersion = APIVersion + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + slstp.EncryptedCredential = encryptedCredential } } } @@ -196153,10 +197083,10 @@ func (sbcd *SapBwCubeDataset) UnmarshalJSON(body []byte) error { return nil } -// SapBWLinkedService SAP Business Warehouse Linked Service. -type SapBWLinkedService struct { - // SapBWLinkedServiceTypeProperties - Properties specific to this linked service type. - *SapBWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SalesforceMarketingCloudLinkedService salesforce Marketing Cloud linked service. +type SalesforceMarketingCloudLinkedService struct { + // SalesforceMarketingCloudLinkedServiceTypeProperties - Salesforce Marketing Cloud linked service properties. + *SalesforceMarketingCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -196171,546 +197101,546 @@ type SapBWLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapBWLinkedService. -func (sbls SapBWLinkedService) MarshalJSON() ([]byte, error) { - sbls.Type = TypeSapBW +// MarshalJSON is the custom marshaler for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) MarshalJSON() ([]byte, error) { + smcls.Type = TypeSalesforceMarketingCloud objectMap := make(map[string]interface{}) - if sbls.SapBWLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sbls.SapBWLinkedServiceTypeProperties + if smcls.SalesforceMarketingCloudLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = smcls.SalesforceMarketingCloudLinkedServiceTypeProperties } - if sbls.ConnectVia != nil { - objectMap["connectVia"] = sbls.ConnectVia + if smcls.ConnectVia != nil { + objectMap["connectVia"] = smcls.ConnectVia } - if sbls.Description != nil { - objectMap["description"] = sbls.Description + if smcls.Description != nil { + objectMap["description"] = smcls.Description } - if sbls.Parameters != nil { - objectMap["parameters"] = sbls.Parameters + if smcls.Parameters != nil { + objectMap["parameters"] = smcls.Parameters } - if sbls.Annotations != nil { - objectMap["annotations"] = sbls.Annotations + if smcls.Annotations != nil { + objectMap["annotations"] = smcls.Annotations } - if sbls.Type != "" { - objectMap["type"] = sbls.Type + if smcls.Type != "" { + objectMap["type"] = smcls.Type } - for k, v := range sbls.AdditionalProperties { + for k, v := range smcls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return &smcls, true } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return &sbls, true +// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sbls, true +// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &smcls, true } -// UnmarshalJSON is the custom unmarshaler for SapBWLinkedService struct. -func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudLinkedService struct. +func (smcls *SalesforceMarketingCloudLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -196720,12 +197650,12 @@ func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var sapBWLinkedServiceTypeProperties SapBWLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapBWLinkedServiceTypeProperties) + var salesforceMarketingCloudLinkedServiceTypeProperties SalesforceMarketingCloudLinkedServiceTypeProperties + err = json.Unmarshal(*v, &salesforceMarketingCloudLinkedServiceTypeProperties) if err != nil { return err } - sbls.SapBWLinkedServiceTypeProperties = &sapBWLinkedServiceTypeProperties + smcls.SalesforceMarketingCloudLinkedServiceTypeProperties = &salesforceMarketingCloudLinkedServiceTypeProperties } default: if v != nil { @@ -196734,10 +197664,10 @@ func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sbls.AdditionalProperties == nil { - sbls.AdditionalProperties = make(map[string]interface{}) + if smcls.AdditionalProperties == nil { + smcls.AdditionalProperties = make(map[string]interface{}) } - sbls.AdditionalProperties[k] = additionalProperties + smcls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -196746,7 +197676,7 @@ func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sbls.ConnectVia = &connectVia + smcls.ConnectVia = &connectVia } case "description": if v != nil { @@ -196755,7 +197685,7 @@ func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sbls.Description = &description + smcls.Description = &description } case "parameters": if v != nil { @@ -196764,7 +197694,7 @@ func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sbls.Parameters = parameters + smcls.Parameters = parameters } case "annotations": if v != nil { @@ -196773,7 +197703,7 @@ func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sbls.Annotations = &annotations + smcls.Annotations = &annotations } case "type": if v != nil { @@ -196782,7 +197712,7 @@ func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sbls.Type = typeVar + smcls.Type = typeVar } } } @@ -196790,24 +197720,27 @@ func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { return nil } -// SapBWLinkedServiceTypeProperties properties specific to this linked service type. -type SapBWLinkedServiceTypeProperties struct { - // Server - Host name of the SAP BW instance. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // SystemNumber - System number of the BW system. (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). - SystemNumber interface{} `json:"systemNumber,omitempty"` - // ClientID - 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). +// SalesforceMarketingCloudLinkedServiceTypeProperties salesforce Marketing Cloud linked service +// properties. +type SalesforceMarketingCloudLinkedServiceTypeProperties struct { + // ConnectionProperties - Properties used to connect to Salesforce Marketing Cloud. It is mutually exclusive with any other properties in the linked service. Type: object. + ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + // ClientID - The client ID associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). ClientID interface{} `json:"clientId,omitempty"` - // UserName - Username to access the SAP BW server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to access the SAP BW server. - Password BasicSecretBase `json:"password,omitempty"` + // ClientSecret - The client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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). + UseHostVerification interface{} `json:"useHostVerification,omitempty"` + // UsePeerVerification - 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). + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for SapBWLinkedServiceTypeProperties struct. -func (sblstp *SapBWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudLinkedServiceTypeProperties struct. +func (smclstp *SalesforceMarketingCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -196815,49 +197748,58 @@ func (sblstp *SapBWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error } for k, v := range m { switch k { - case "server": + case "connectionProperties": if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) + var connectionProperties interface{} + err = json.Unmarshal(*v, &connectionProperties) if err != nil { return err } - sblstp.Server = server + smclstp.ConnectionProperties = connectionProperties } - case "systemNumber": + case "clientId": if v != nil { - var systemNumber interface{} - err = json.Unmarshal(*v, &systemNumber) + var clientID interface{} + err = json.Unmarshal(*v, &clientID) if err != nil { return err } - sblstp.SystemNumber = systemNumber + smclstp.ClientID = clientID } - case "clientId": + case "clientSecret": if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) + clientSecret, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - sblstp.ClientID = clientID + smclstp.ClientSecret = clientSecret } - case "userName": + case "useEncryptedEndpoints": if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) if err != nil { return err } - sblstp.UserName = userName + smclstp.UseEncryptedEndpoints = useEncryptedEndpoints } - case "password": + case "useHostVerification": if v != nil { - password, err := unmarshalBasicSecretBase(*v) + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) if err != nil { return err } - sblstp.Password = password + smclstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + smclstp.UsePeerVerification = usePeerVerification } case "encryptedCredential": if v != nil { @@ -196866,7 +197808,7 @@ func (sblstp *SapBWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error if err != nil { return err } - sblstp.EncryptedCredential = encryptedCredential + smclstp.EncryptedCredential = encryptedCredential } } } @@ -196874,539 +197816,544 @@ func (sblstp *SapBWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error return nil } -// SapBwSource a copy activity source for SapBW server via MDX. -type SapBwSource struct { - // Query - MDX query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// SalesforceMarketingCloudObjectDataset salesforce Marketing Cloud dataset. +type SalesforceMarketingCloudObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapBwSource. -func (sbs SapBwSource) MarshalJSON() ([]byte, error) { - sbs.Type = TypeSapBwSource +// MarshalJSON is the custom marshaler for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) MarshalJSON() ([]byte, error) { + smcod.Type = TypeSalesforceMarketingCloudObject objectMap := make(map[string]interface{}) - if sbs.Query != nil { - objectMap["query"] = sbs.Query + if smcod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = smcod.GenericDatasetTypeProperties } - if sbs.QueryTimeout != nil { - objectMap["queryTimeout"] = sbs.QueryTimeout + if smcod.Description != nil { + objectMap["description"] = smcod.Description } - if sbs.AdditionalColumns != nil { - objectMap["additionalColumns"] = sbs.AdditionalColumns + if smcod.Structure != nil { + objectMap["structure"] = smcod.Structure } - if sbs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sbs.SourceRetryCount + if smcod.Schema != nil { + objectMap["schema"] = smcod.Schema } - if sbs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sbs.SourceRetryWait + if smcod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = smcod.LinkedServiceName } - if sbs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sbs.MaxConcurrentConnections + if smcod.Parameters != nil { + objectMap["parameters"] = smcod.Parameters } - if sbs.Type != "" { - objectMap["type"] = sbs.Type + if smcod.Annotations != nil { + objectMap["annotations"] = smcod.Annotations } - for k, v := range sbs.AdditionalProperties { + if smcod.Folder != nil { + objectMap["folder"] = smcod.Folder + } + if smcod.Type != "" { + objectMap["type"] = smcod.Type + } + for k, v := range smcod.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsHTTPSource() (*HTTPSource, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsOffice365Source() (*Office365Source, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return &smcod, true } -// AsMongoDbSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsWebSource() (*WebSource, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsOracleSource() (*OracleSource, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsHdfsSource() (*HdfsSource, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsRestSource() (*RestSource, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsODataSource() (*ODataSource, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsRelationalSource() (*RelationalSource, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsBlobSource() (*BlobSource, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsVerticaSource() (*VerticaSource, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsZohoSource() (*ZohoSource, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsXeroSource() (*XeroSource, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSquareSource() (*SquareSource, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSparkSource() (*SparkSource, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsShopifySource() (*ShopifySource, bool) { +// AsHTTPDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsWebTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsPrestoSource() (*PrestoSource, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMagentoSource() (*MagentoSource, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsJiraSource() (*JiraSource, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsHubspotSource() (*HubspotSource, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsHiveSource() (*HiveSource, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsHBaseSource() (*HBaseSource, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsEloquaSource() (*EloquaSource, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDrillSource() (*DrillSource, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsConcurSource() (*ConcurSource, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCassandraSource() (*CassandraSource, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsTeradataSource() (*TeradataSource, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSQLMISource() (*SQLMISource, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSQLSource() (*SQLSource, bool) { +// AsFileShareDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapTableSource() (*SapTableSource, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapEccSource() (*SapEccSource, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapBwSource() (*SapBwSource, bool) { - return &sbs, true +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSybaseSource() (*SybaseSource, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsCustomDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMySQLSource() (*MySQLSource, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsOdbcSource() (*OdbcSource, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDb2Source() (*Db2Source, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsInformixSource() (*InformixSource, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sbs, true +// AsBinaryDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsBinarySource() (*BinarySource, bool) { +// AsOrcDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsOrcSource() (*OrcSource, bool) { +// AsXMLDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsXMLSource() (*XMLSource, bool) { +// AsJSONDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsJSONSource() (*JSONSource, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsParquetDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsParquetSource() (*ParquetSource, bool) { +// AsExcelDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsExcelSource() (*ExcelSource, bool) { +// AsAvroDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAvroSource() (*AvroSource, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCopySource() (*CopySource, bool) { +// AsDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sbs, true +// AsBasicDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &smcod, true } -// UnmarshalJSON is the custom unmarshaler for SapBwSource struct. -func (sbs *SapBwSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudObjectDataset struct. +func (smcod *SalesforceMarketingCloudObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -197414,80 +198361,98 @@ func (sbs *SapBwSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) if err != nil { return err } - sbs.Query = query + smcod.GenericDatasetTypeProperties = &genericDatasetTypeProperties } - case "queryTimeout": + default: if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sbs.QueryTimeout = queryTimeout + if smcod.AdditionalProperties == nil { + smcod.AdditionalProperties = make(map[string]interface{}) + } + smcod.AdditionalProperties[k] = additionalProperties } - case "additionalColumns": + case "description": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - sbs.AdditionalColumns = &additionalColumns + smcod.Description = &description } - default: + case "structure": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - if sbs.AdditionalProperties == nil { - sbs.AdditionalProperties = make(map[string]interface{}) + smcod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err } - sbs.AdditionalProperties[k] = additionalProperties + smcod.Schema = schema } - case "sourceRetryCount": + case "linkedServiceName": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - sbs.SourceRetryCount = sourceRetryCount + smcod.LinkedServiceName = &linkedServiceName } - case "sourceRetryWait": + case "parameters": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - sbs.SourceRetryWait = sourceRetryWait + smcod.Parameters = parameters } - case "maxConcurrentConnections": + case "annotations": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - sbs.MaxConcurrentConnections = maxConcurrentConnections + smcod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + smcod.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sbs.Type = typeVar + smcod.Type = typeVar } } } @@ -197495,564 +198460,539 @@ func (sbs *SapBwSource) UnmarshalJSON(body []byte) error { return nil } -// SapCloudForCustomerLinkedService linked service for SAP Cloud for Customer. -type SapCloudForCustomerLinkedService struct { - // SapCloudForCustomerLinkedServiceTypeProperties - SAP Cloud for Customer linked service properties. - *SapCloudForCustomerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SalesforceMarketingCloudSource a copy activity Salesforce Marketing Cloud source. +type SalesforceMarketingCloudSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) MarshalJSON() ([]byte, error) { - scfcls.Type = TypeSapCloudForCustomer +// MarshalJSON is the custom marshaler for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) MarshalJSON() ([]byte, error) { + smcs.Type = TypeSalesforceMarketingCloudSource objectMap := make(map[string]interface{}) - if scfcls.SapCloudForCustomerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = scfcls.SapCloudForCustomerLinkedServiceTypeProperties + if smcs.Query != nil { + objectMap["query"] = smcs.Query } - if scfcls.ConnectVia != nil { - objectMap["connectVia"] = scfcls.ConnectVia + if smcs.QueryTimeout != nil { + objectMap["queryTimeout"] = smcs.QueryTimeout } - if scfcls.Description != nil { - objectMap["description"] = scfcls.Description + if smcs.AdditionalColumns != nil { + objectMap["additionalColumns"] = smcs.AdditionalColumns } - if scfcls.Parameters != nil { - objectMap["parameters"] = scfcls.Parameters + if smcs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = smcs.SourceRetryCount } - if scfcls.Annotations != nil { - objectMap["annotations"] = scfcls.Annotations + if smcs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = smcs.SourceRetryWait } - if scfcls.Type != "" { - objectMap["type"] = scfcls.Type + if smcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = smcs.MaxConcurrentConnections } - for k, v := range scfcls.AdditionalProperties { + if smcs.Type != "" { + objectMap["type"] = smcs.Type + } + for k, v := range smcs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsRestSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return &smcs, true } -// AsDrillLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsVerticaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsZohoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsXeroSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsSquareSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSparkSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsShopifySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsPrestoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsPaypalSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsMarketoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsMagentoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsJiraSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return &scfcls, true -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsImpalaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsHubspotSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsHiveSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsHBaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsEloquaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsDrillSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsConcurSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsCassandraSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsTeradataSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsSQLMISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSapTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsSapEccSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSapBwSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsSybaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsMySQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsOdbcSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsDb2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsInformixSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsTabularSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &smcs, true } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsBinarySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsOrcSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsXMLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsJSONSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsParquetSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsExcelSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAvroSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsCopySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &scfcls, true +// AsBasicCopySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsBasicCopySource() (BasicCopySource, bool) { + return &smcs, true } -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerLinkedService struct. -func (scfcls *SapCloudForCustomerLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudSource struct. +func (smcs *SalesforceMarketingCloudSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -198060,133 +199000,80 @@ func (scfcls *SapCloudForCustomerLinkedService) UnmarshalJSON(body []byte) error } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var sapCloudForCustomerLinkedServiceTypeProperties SapCloudForCustomerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapCloudForCustomerLinkedServiceTypeProperties) - if err != nil { - return err - } - scfcls.SapCloudForCustomerLinkedServiceTypeProperties = &sapCloudForCustomerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if scfcls.AdditionalProperties == nil { - scfcls.AdditionalProperties = make(map[string]interface{}) - } - scfcls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": + case "query": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - scfcls.ConnectVia = &connectVia + smcs.Query = query } - case "description": + case "queryTimeout": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - scfcls.Description = &description + smcs.QueryTimeout = queryTimeout } - case "parameters": + case "additionalColumns": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - scfcls.Parameters = parameters + smcs.AdditionalColumns = &additionalColumns } - case "annotations": + default: if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - scfcls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err + if smcs.AdditionalProperties == nil { + smcs.AdditionalProperties = make(map[string]interface{}) } - scfcls.Type = typeVar + smcs.AdditionalProperties[k] = additionalProperties } - } - } - - return nil -} - -// SapCloudForCustomerLinkedServiceTypeProperties SAP Cloud for Customer linked service properties. -type SapCloudForCustomerLinkedServiceTypeProperties struct { - // URL - 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). - URL interface{} `json:"url,omitempty"` - // Username - The username for Basic authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - 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). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerLinkedServiceTypeProperties struct. -func (scfclstp *SapCloudForCustomerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": + case "sourceRetryCount": if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - scfclstp.URL = URL + smcs.SourceRetryCount = sourceRetryCount } - case "username": + case "sourceRetryWait": if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - scfclstp.Username = username + smcs.SourceRetryWait = sourceRetryWait } - case "password": + case "maxConcurrentConnections": if v != nil { - password, err := unmarshalBasicSecretBase(*v) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - scfclstp.Password = password + smcs.MaxConcurrentConnections = maxConcurrentConnections } - case "encryptedCredential": + case "type": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - scfclstp.EncryptedCredential = encryptedCredential + smcs.Type = typeVar } } } @@ -198194,10 +199081,10 @@ func (scfclstp *SapCloudForCustomerLinkedServiceTypeProperties) UnmarshalJSON(bo return nil } -// SapCloudForCustomerResourceDataset the path of the SAP Cloud for Customer OData entity. -type SapCloudForCustomerResourceDataset struct { - // SapCloudForCustomerResourceDatasetTypeProperties - SAP Cloud For Customer OData resource dataset properties. - *SapCloudForCustomerResourceDatasetTypeProperties `json:"typeProperties,omitempty"` +// SalesforceObjectDataset the Salesforce object dataset. +type SalesforceObjectDataset struct { + // SalesforceObjectDatasetTypeProperties - Salesforce object dataset properties. + *SalesforceObjectDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -198218,520 +199105,520 @@ type SapCloudForCustomerResourceDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) MarshalJSON() ([]byte, error) { - scfcrd.Type = TypeSapCloudForCustomerResource +// MarshalJSON is the custom marshaler for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) MarshalJSON() ([]byte, error) { + sod.Type = TypeSalesforceObject objectMap := make(map[string]interface{}) - if scfcrd.SapCloudForCustomerResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = scfcrd.SapCloudForCustomerResourceDatasetTypeProperties + if sod.SalesforceObjectDatasetTypeProperties != nil { + objectMap["typeProperties"] = sod.SalesforceObjectDatasetTypeProperties } - if scfcrd.Description != nil { - objectMap["description"] = scfcrd.Description + if sod.Description != nil { + objectMap["description"] = sod.Description } - if scfcrd.Structure != nil { - objectMap["structure"] = scfcrd.Structure + if sod.Structure != nil { + objectMap["structure"] = sod.Structure } - if scfcrd.Schema != nil { - objectMap["schema"] = scfcrd.Schema + if sod.Schema != nil { + objectMap["schema"] = sod.Schema } - if scfcrd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = scfcrd.LinkedServiceName + if sod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sod.LinkedServiceName } - if scfcrd.Parameters != nil { - objectMap["parameters"] = scfcrd.Parameters + if sod.Parameters != nil { + objectMap["parameters"] = sod.Parameters } - if scfcrd.Annotations != nil { - objectMap["annotations"] = scfcrd.Annotations + if sod.Annotations != nil { + objectMap["annotations"] = sod.Annotations } - if scfcrd.Folder != nil { - objectMap["folder"] = scfcrd.Folder + if sod.Folder != nil { + objectMap["folder"] = sod.Folder } - if scfcrd.Type != "" { - objectMap["type"] = scfcrd.Type + if sod.Type != "" { + objectMap["type"] = sod.Type } - for k, v := range scfcrd.AdditionalProperties { + for k, v := range sod.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return &scfcrd, true +// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return &sod, true +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &scfcrd, true +// AsBasicDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &sod, true } -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerResourceDataset struct. -func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SalesforceObjectDataset struct. +func (sod *SalesforceObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -198741,12 +199628,12 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err switch k { case "typeProperties": if v != nil { - var sapCloudForCustomerResourceDatasetTypeProperties SapCloudForCustomerResourceDatasetTypeProperties - err = json.Unmarshal(*v, &sapCloudForCustomerResourceDatasetTypeProperties) + var salesforceObjectDatasetTypeProperties SalesforceObjectDatasetTypeProperties + err = json.Unmarshal(*v, &salesforceObjectDatasetTypeProperties) if err != nil { return err } - scfcrd.SapCloudForCustomerResourceDatasetTypeProperties = &sapCloudForCustomerResourceDatasetTypeProperties + sod.SalesforceObjectDatasetTypeProperties = &salesforceObjectDatasetTypeProperties } default: if v != nil { @@ -198755,10 +199642,10 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err if err != nil { return err } - if scfcrd.AdditionalProperties == nil { - scfcrd.AdditionalProperties = make(map[string]interface{}) + if sod.AdditionalProperties == nil { + sod.AdditionalProperties = make(map[string]interface{}) } - scfcrd.AdditionalProperties[k] = additionalProperties + sod.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -198767,7 +199654,7 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err if err != nil { return err } - scfcrd.Description = &description + sod.Description = &description } case "structure": if v != nil { @@ -198776,7 +199663,7 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err if err != nil { return err } - scfcrd.Structure = structure + sod.Structure = structure } case "schema": if v != nil { @@ -198785,7 +199672,7 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err if err != nil { return err } - scfcrd.Schema = schema + sod.Schema = schema } case "linkedServiceName": if v != nil { @@ -198794,7 +199681,7 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err if err != nil { return err } - scfcrd.LinkedServiceName = &linkedServiceName + sod.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -198803,7 +199690,7 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err if err != nil { return err } - scfcrd.Parameters = parameters + sod.Parameters = parameters } case "annotations": if v != nil { @@ -198812,7 +199699,7 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err if err != nil { return err } - scfcrd.Annotations = &annotations + sod.Annotations = &annotations } case "folder": if v != nil { @@ -198821,7 +199708,7 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err if err != nil { return err } - scfcrd.Folder = &folder + sod.Folder = &folder } case "type": if v != nil { @@ -198830,7 +199717,7 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err if err != nil { return err } - scfcrd.Type = typeVar + sod.Type = typeVar } } } @@ -198838,266 +199725,570 @@ func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) err return nil } -// SapCloudForCustomerResourceDatasetTypeProperties sap Cloud For Customer OData resource dataset -// properties. -type SapCloudForCustomerResourceDatasetTypeProperties struct { - // Path - The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` +// SalesforceObjectDatasetTypeProperties salesforce object dataset properties. +type SalesforceObjectDatasetTypeProperties struct { + // ObjectAPIName - The Salesforce object API name. Type: string (or Expression with resultType string). + ObjectAPIName interface{} `json:"objectApiName,omitempty"` } -// SapCloudForCustomerSink a copy activity SAP Cloud for Customer sink. -type SapCloudForCustomerSink struct { - // WriteBehavior - The write behavior for the operation. Default is 'Insert'. Possible values include: 'Insert', 'Update' - WriteBehavior SapCloudForCustomerSinkWriteBehavior `json:"writeBehavior,omitempty"` - // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` +// SalesforceServiceCloudLinkedService linked service for Salesforce Service Cloud. +type SalesforceServiceCloudLinkedService struct { + // SalesforceServiceCloudLinkedServiceTypeProperties - Salesforce Service Cloud linked service properties. + *SalesforceServiceCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) MarshalJSON() ([]byte, error) { - scfcs.Type = TypeSapCloudForCustomerSink +// MarshalJSON is the custom marshaler for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) MarshalJSON() ([]byte, error) { + sscls.Type = TypeSalesforceServiceCloud objectMap := make(map[string]interface{}) - if scfcs.WriteBehavior != "" { - objectMap["writeBehavior"] = scfcs.WriteBehavior - } - if scfcs.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = scfcs.HTTPRequestTimeout - } - if scfcs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = scfcs.WriteBatchSize + if sscls.SalesforceServiceCloudLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sscls.SalesforceServiceCloudLinkedServiceTypeProperties } - if scfcs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = scfcs.WriteBatchTimeout + if sscls.ConnectVia != nil { + objectMap["connectVia"] = sscls.ConnectVia } - if scfcs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = scfcs.SinkRetryCount + if sscls.Description != nil { + objectMap["description"] = sscls.Description } - if scfcs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = scfcs.SinkRetryWait + if sscls.Parameters != nil { + objectMap["parameters"] = sscls.Parameters } - if scfcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections + if sscls.Annotations != nil { + objectMap["annotations"] = sscls.Annotations } - if scfcs.Type != "" { - objectMap["type"] = scfcs.Type + if sscls.Type != "" { + objectMap["type"] = sscls.Type } - for k, v := range scfcs.AdditionalProperties { + for k, v := range sscls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsInformixSink() (*InformixSink, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsOdbcSink() (*OdbcSink, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsOracleSink() (*OracleSink, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSQLMISink() (*SQLMISink, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSQLSink() (*SQLSink, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsBlobSink() (*BlobSink, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsBinarySink() (*BinarySink, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsParquetSink() (*ParquetSink, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAvroSink() (*AvroSink, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return &scfcs, true +// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsRestSink() (*RestSink, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsOrcSink() (*OrcSink, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsJSONSink() (*JSONSink, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsCopySink() (*CopySink, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsBasicCopySink() (BasicCopySink, bool) { - return &scfcs, true +// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerSink struct. -func (scfcs *SapCloudForCustomerSink) UnmarshalJSON(body []byte) error { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return &sscls, true +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sscls, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudLinkedService struct. +func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -199105,89 +200296,165 @@ func (scfcs *SapCloudForCustomerSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "writeBehavior": + case "typeProperties": if v != nil { - var writeBehavior SapCloudForCustomerSinkWriteBehavior - err = json.Unmarshal(*v, &writeBehavior) + var salesforceServiceCloudLinkedServiceTypeProperties SalesforceServiceCloudLinkedServiceTypeProperties + err = json.Unmarshal(*v, &salesforceServiceCloudLinkedServiceTypeProperties) if err != nil { return err } - scfcs.WriteBehavior = writeBehavior + sscls.SalesforceServiceCloudLinkedServiceTypeProperties = &salesforceServiceCloudLinkedServiceTypeProperties } - case "httpRequestTimeout": + default: if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - scfcs.HTTPRequestTimeout = HTTPRequestTimeout + if sscls.AdditionalProperties == nil { + sscls.AdditionalProperties = make(map[string]interface{}) + } + sscls.AdditionalProperties[k] = additionalProperties } - default: + case "connectVia": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - if scfcs.AdditionalProperties == nil { - scfcs.AdditionalProperties = make(map[string]interface{}) + sscls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err } - scfcs.AdditionalProperties[k] = additionalProperties + sscls.Description = &description } - case "writeBatchSize": + case "parameters": if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - scfcs.WriteBatchSize = writeBatchSize + sscls.Parameters = parameters } - case "writeBatchTimeout": + case "annotations": if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - scfcs.WriteBatchTimeout = writeBatchTimeout + sscls.Annotations = &annotations } - case "sinkRetryCount": + case "type": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - scfcs.SinkRetryCount = sinkRetryCount + sscls.Type = typeVar } - case "sinkRetryWait": + } + } + + return nil +} + +// SalesforceServiceCloudLinkedServiceTypeProperties salesforce Service Cloud linked service properties. +type SalesforceServiceCloudLinkedServiceTypeProperties struct { + // EnvironmentURL - 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). + EnvironmentURL interface{} `json:"environmentUrl,omitempty"` + // Username - The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - The password for Basic authentication of the Salesforce instance. + Password BasicSecretBase `json:"password,omitempty"` + // SecurityToken - The security token is optional to remotely access Salesforce instance. + SecurityToken BasicSecretBase `json:"securityToken,omitempty"` + // APIVersion - The Salesforce API version used in ADF. Type: string (or Expression with resultType string). + APIVersion interface{} `json:"apiVersion,omitempty"` + // ExtendedProperties - Extended properties appended to the connection string. Type: string (or Expression with resultType string). + ExtendedProperties interface{} `json:"extendedProperties,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudLinkedServiceTypeProperties struct. +func (ssclstp *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "environmentUrl": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var environmentURL interface{} + err = json.Unmarshal(*v, &environmentURL) if err != nil { return err } - scfcs.SinkRetryWait = sinkRetryWait + ssclstp.EnvironmentURL = environmentURL } - case "maxConcurrentConnections": + case "username": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var username interface{} + err = json.Unmarshal(*v, &username) if err != nil { return err } - scfcs.MaxConcurrentConnections = maxConcurrentConnections + ssclstp.Username = username } - case "type": + case "password": if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) + password, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - scfcs.Type = typeVar + ssclstp.Password = password + } + case "securityToken": + if v != nil { + securityToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + ssclstp.SecurityToken = securityToken + } + case "apiVersion": + if v != nil { + var APIVersion interface{} + err = json.Unmarshal(*v, &APIVersion) + if err != nil { + return err + } + ssclstp.APIVersion = APIVersion + } + case "extendedProperties": + if v != nil { + var extendedProperties interface{} + err = json.Unmarshal(*v, &extendedProperties) + if err != nil { + return err + } + ssclstp.ExtendedProperties = extendedProperties + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + ssclstp.EncryptedCredential = encryptedCredential } } } @@ -199195,544 +200462,544 @@ func (scfcs *SapCloudForCustomerSink) UnmarshalJSON(body []byte) error { return nil } -// SapCloudForCustomerSource a copy activity source for SAP Cloud for Customer source. -type SapCloudForCustomerSource struct { - // Query - SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// SalesforceServiceCloudObjectDataset the Salesforce Service Cloud object dataset. +type SalesforceServiceCloudObjectDataset struct { + // SalesforceServiceCloudObjectDatasetTypeProperties - Salesforce Service Cloud object dataset properties. + *SalesforceServiceCloudObjectDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } - -// MarshalJSON is the custom marshaler for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) MarshalJSON() ([]byte, error) { - scfcs.Type = TypeSapCloudForCustomerSource + +// MarshalJSON is the custom marshaler for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { + sscod.Type = TypeSalesforceServiceCloudObject objectMap := make(map[string]interface{}) - if scfcs.Query != nil { - objectMap["query"] = scfcs.Query + if sscod.SalesforceServiceCloudObjectDatasetTypeProperties != nil { + objectMap["typeProperties"] = sscod.SalesforceServiceCloudObjectDatasetTypeProperties } - if scfcs.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = scfcs.HTTPRequestTimeout + if sscod.Description != nil { + objectMap["description"] = sscod.Description } - if scfcs.QueryTimeout != nil { - objectMap["queryTimeout"] = scfcs.QueryTimeout + if sscod.Structure != nil { + objectMap["structure"] = sscod.Structure } - if scfcs.AdditionalColumns != nil { - objectMap["additionalColumns"] = scfcs.AdditionalColumns + if sscod.Schema != nil { + objectMap["schema"] = sscod.Schema } - if scfcs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = scfcs.SourceRetryCount + if sscod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sscod.LinkedServiceName } - if scfcs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = scfcs.SourceRetryWait + if sscod.Parameters != nil { + objectMap["parameters"] = sscod.Parameters } - if scfcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections + if sscod.Annotations != nil { + objectMap["annotations"] = sscod.Annotations } - if scfcs.Type != "" { - objectMap["type"] = scfcs.Type + if sscod.Folder != nil { + objectMap["folder"] = sscod.Folder } - for k, v := range scfcs.AdditionalProperties { + if sscod.Type != "" { + objectMap["type"] = sscod.Type + } + for k, v := range sscod.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHTTPSource() (*HTTPSource, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOffice365Source() (*Office365Source, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsWebSource() (*WebSource, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOracleSource() (*OracleSource, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHdfsSource() (*HdfsSource, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsRestSource() (*RestSource, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsODataSource() (*ODataSource, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsRelationalSource() (*RelationalSource, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsBlobSource() (*BlobSource, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsVerticaSource() (*VerticaSource, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsZohoSource() (*ZohoSource, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsXeroSource() (*XeroSource, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSquareSource() (*SquareSource, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSparkSource() (*SparkSource, bool) { +// AsHTTPDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsShopifySource() (*ShopifySource, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsWebTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPrestoSource() (*PrestoSource, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMagentoSource() (*MagentoSource, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsJiraSource() (*JiraSource, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return &sscod, true } -// AsHubspotSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHubspotSource() (*HubspotSource, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHiveSource() (*HiveSource, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHBaseSource() (*HBaseSource, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsEloquaSource() (*EloquaSource, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDrillSource() (*DrillSource, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsConcurSource() (*ConcurSource, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCassandraSource() (*CassandraSource, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsTeradataSource() (*TeradataSource, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSQLMISource() (*SQLMISource, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsFileShareDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSQLSource() (*SQLSource, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapTableSource() (*SapTableSource, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapEccSource() (*SapEccSource, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return &scfcs, true -} - -// AsSalesforceSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapBwSource() (*SapBwSource, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSybaseSource() (*SybaseSource, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsCustomDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMySQLSource() (*MySQLSource, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOdbcSource() (*OdbcSource, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDb2Source() (*Db2Source, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsInformixSource() (*InformixSource, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &scfcs, true +// AsBinaryDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsBinarySource() (*BinarySource, bool) { +// AsOrcDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOrcSource() (*OrcSource, bool) { +// AsXMLDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsXMLSource() (*XMLSource, bool) { +// AsJSONDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsJSONSource() (*JSONSource, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsParquetDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsParquetSource() (*ParquetSource, bool) { +// AsExcelDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsExcelSource() (*ExcelSource, bool) { +// AsAvroDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAvroSource() (*AvroSource, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCopySource() (*CopySource, bool) { +// AsDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsBasicCopySource() (BasicCopySource, bool) { - return &scfcs, true +// AsBasicDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &sscod, true } -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerSource struct. -func (scfcs *SapCloudForCustomerSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudObjectDataset struct. +func (sscod *SalesforceServiceCloudObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -199740,89 +201007,98 @@ func (scfcs *SapCloudForCustomerSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var salesforceServiceCloudObjectDatasetTypeProperties SalesforceServiceCloudObjectDatasetTypeProperties + err = json.Unmarshal(*v, &salesforceServiceCloudObjectDatasetTypeProperties) if err != nil { return err } - scfcs.Query = query + sscod.SalesforceServiceCloudObjectDatasetTypeProperties = &salesforceServiceCloudObjectDatasetTypeProperties } - case "httpRequestTimeout": + default: if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - scfcs.HTTPRequestTimeout = HTTPRequestTimeout + if sscod.AdditionalProperties == nil { + sscod.AdditionalProperties = make(map[string]interface{}) + } + sscod.AdditionalProperties[k] = additionalProperties } - case "queryTimeout": + case "description": if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - scfcs.QueryTimeout = queryTimeout + sscod.Description = &description } - case "additionalColumns": + case "structure": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - scfcs.AdditionalColumns = &additionalColumns + sscod.Structure = structure } - default: + case "schema": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - if scfcs.AdditionalProperties == nil { - scfcs.AdditionalProperties = make(map[string]interface{}) + sscod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err } - scfcs.AdditionalProperties[k] = additionalProperties + sscod.LinkedServiceName = &linkedServiceName } - case "sourceRetryCount": + case "parameters": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - scfcs.SourceRetryCount = sourceRetryCount + sscod.Parameters = parameters } - case "sourceRetryWait": + case "annotations": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - scfcs.SourceRetryWait = sourceRetryWait + sscod.Annotations = &annotations } - case "maxConcurrentConnections": + case "folder": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - scfcs.MaxConcurrentConnections = maxConcurrentConnections + sscod.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - scfcs.Type = typeVar + sscod.Type = typeVar } } } @@ -199830,1243 +201106,1275 @@ func (scfcs *SapCloudForCustomerSource) UnmarshalJSON(body []byte) error { return nil } -// SapEccLinkedService linked service for SAP ERP Central Component(SAP ECC). -type SapEccLinkedService struct { - // SapEccLinkedServiceTypeProperties - SAP ECC linked service properties. - *SapEccLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SalesforceServiceCloudObjectDatasetTypeProperties salesforce Service Cloud object dataset properties. +type SalesforceServiceCloudObjectDatasetTypeProperties struct { + // ObjectAPIName - The Salesforce Service Cloud object API name. Type: string (or Expression with resultType string). + ObjectAPIName interface{} `json:"objectApiName,omitempty"` +} + +// SalesforceServiceCloudSink a copy activity Salesforce Service Cloud sink. +type SalesforceServiceCloudSink struct { + // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceSinkWriteBehaviorInsert', 'SalesforceSinkWriteBehaviorUpsert' + WriteBehavior SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` + // ExternalIDFieldName - The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with resultType string). + ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` + // IgnoreNullValues - The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. Default value is false. If set it to true, it means ADF will leave the data in the destination object unchanged when doing upsert/update operation and insert defined default value when doing insert operation, versus ADF will update the data in the destination object to NULL when doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType boolean). + IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapEccLinkedService. -func (sels SapEccLinkedService) MarshalJSON() ([]byte, error) { - sels.Type = TypeSapEcc +// MarshalJSON is the custom marshaler for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) MarshalJSON() ([]byte, error) { + sscs.Type = TypeSalesforceServiceCloudSink objectMap := make(map[string]interface{}) - if sels.SapEccLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sels.SapEccLinkedServiceTypeProperties + if sscs.WriteBehavior != "" { + objectMap["writeBehavior"] = sscs.WriteBehavior } - if sels.ConnectVia != nil { - objectMap["connectVia"] = sels.ConnectVia + if sscs.ExternalIDFieldName != nil { + objectMap["externalIdFieldName"] = sscs.ExternalIDFieldName } - if sels.Description != nil { - objectMap["description"] = sels.Description + if sscs.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = sscs.IgnoreNullValues } - if sels.Parameters != nil { - objectMap["parameters"] = sels.Parameters + if sscs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = sscs.WriteBatchSize } - if sels.Annotations != nil { - objectMap["annotations"] = sels.Annotations + if sscs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = sscs.WriteBatchTimeout } - if sels.Type != "" { - objectMap["type"] = sels.Type + if sscs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = sscs.SinkRetryCount } - for k, v := range sels.AdditionalProperties { + if sscs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = sscs.SinkRetryWait + } + if sscs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections + } + if sscs.Type != "" { + objectMap["type"] = sscs.Type + } + for k, v := range sscs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return &sscs, true } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsSalesforceSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsDynamicsSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsInformixSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsOdbcSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsOracleSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsSQLDWSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsSQLMISink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsSQLServerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsFileSystemSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsBlobSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsBinarySink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsParquetSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsAvroSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsAzureTableSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsOrcSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return &sels, true -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsJSONSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsCopySink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false +// AsBasicCopySink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsBasicCopySink() (BasicCopySink, bool) { + return &sscs, true } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudSink struct. +func (sscs *SalesforceServiceCloudSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior SalesforceSinkWriteBehavior + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + sscs.WriteBehavior = writeBehavior + } + case "externalIdFieldName": + if v != nil { + var externalIDFieldName interface{} + err = json.Unmarshal(*v, &externalIDFieldName) + if err != nil { + return err + } + sscs.ExternalIDFieldName = externalIDFieldName + } + case "ignoreNullValues": + if v != nil { + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) + if err != nil { + return err + } + sscs.IgnoreNullValues = ignoreNullValues + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sscs.AdditionalProperties == nil { + sscs.AdditionalProperties = make(map[string]interface{}) + } + sscs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + sscs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + sscs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + sscs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + sscs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sscs.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sscs.Type = typeVar + } + } + } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false + return nil } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false +// SalesforceServiceCloudSource a copy activity Salesforce Service Cloud source. +type SalesforceServiceCloudSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // ReadBehavior - The read behavior for the operation. Default is Query. Possible values include: 'Query', 'QueryAll' + ReadBehavior SalesforceSourceReadBehavior `json:"readBehavior,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) MarshalJSON() ([]byte, error) { + sscs.Type = TypeSalesforceServiceCloudSource + objectMap := make(map[string]interface{}) + if sscs.Query != nil { + objectMap["query"] = sscs.Query + } + if sscs.ReadBehavior != "" { + objectMap["readBehavior"] = sscs.ReadBehavior + } + if sscs.AdditionalColumns != nil { + objectMap["additionalColumns"] = sscs.AdditionalColumns + } + if sscs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sscs.SourceRetryCount + } + if sscs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sscs.SourceRetryWait + } + if sscs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections + } + if sscs.Type != "" { + objectMap["type"] = sscs.Type + } + for k, v := range sscs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsRestSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return &sscs, true } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsVerticaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsZohoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsXeroSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsSquareSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sels, true +// AsSparkSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSparkSource() (*SparkSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SapEccLinkedService struct. -func (sels *SapEccLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapEccLinkedServiceTypeProperties SapEccLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapEccLinkedServiceTypeProperties) - if err != nil { - return err - } - sels.SapEccLinkedServiceTypeProperties = &sapEccLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sels.AdditionalProperties == nil { - sels.AdditionalProperties = make(map[string]interface{}) - } - sels.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sels.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sels.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sels.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sels.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sels.Type = typeVar - } - } - } - - return nil +// AsShopifySource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false } -// SapEccLinkedServiceTypeProperties SAP ECC linked service properties. -type SapEccLinkedServiceTypeProperties struct { - // URL - The URL of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). - URL *string `json:"url,omitempty"` - // Username - The username for Basic authentication. Type: string (or Expression with resultType string). - Username *string `json:"username,omitempty"` - // Password - The password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - 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). - EncryptedCredential *string `json:"encryptedCredential,omitempty"` +// AsServiceNowSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SapEccLinkedServiceTypeProperties struct. -func (selstp *SapEccLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL string - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - selstp.URL = &URL - } - case "username": - if v != nil { - var username string - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - selstp.Username = &username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - selstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - selstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil +// AsQuickBooksSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false } -// SapEccResourceDataset the path of the SAP ECC OData entity. -type SapEccResourceDataset struct { - // SapEccResourceDatasetTypeProperties - SAP ECC OData resource dataset properties. - *SapEccResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` +// AsPrestoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for SapEccResourceDataset. -func (serd SapEccResourceDataset) MarshalJSON() ([]byte, error) { - serd.Type = TypeSapEccResource - objectMap := make(map[string]interface{}) - if serd.SapEccResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = serd.SapEccResourceDatasetTypeProperties - } - if serd.Description != nil { - objectMap["description"] = serd.Description - } - if serd.Structure != nil { - objectMap["structure"] = serd.Structure - } - if serd.Schema != nil { - objectMap["schema"] = serd.Schema - } - if serd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = serd.LinkedServiceName - } - if serd.Parameters != nil { - objectMap["parameters"] = serd.Parameters - } - if serd.Annotations != nil { - objectMap["annotations"] = serd.Annotations - } - if serd.Folder != nil { - objectMap["folder"] = serd.Folder - } - if serd.Type != "" { - objectMap["type"] = serd.Type - } - for k, v := range serd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsPhoenixSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsPaypalSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsBinarySource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return &serd, true +// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsAvroSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsCopySource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false +// AsBasicCopySource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sscs, true } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudSource struct. +func (sscs *SalesforceServiceCloudSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + sscs.Query = query + } + case "readBehavior": + if v != nil { + var readBehavior SalesforceSourceReadBehavior + err = json.Unmarshal(*v, &readBehavior) + if err != nil { + return err + } + sscs.ReadBehavior = readBehavior + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sscs.AdditionalColumns = &additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sscs.AdditionalProperties == nil { + sscs.AdditionalProperties = make(map[string]interface{}) + } + sscs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sscs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sscs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sscs.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sscs.Type = typeVar + } + } + } + + return nil } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false +// SalesforceSink a copy activity Salesforce sink. +type SalesforceSink struct { + // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceSinkWriteBehaviorInsert', 'SalesforceSinkWriteBehaviorUpsert' + WriteBehavior SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` + // ExternalIDFieldName - The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with resultType string). + ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` + // IgnoreNullValues - The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. Default value is false. If set it to true, it means ADF will leave the data in the destination object unchanged when doing upsert/update operation and insert defined default value when doing insert operation, versus ADF will update the data in the destination object to NULL when doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType boolean). + IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// AsMySQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for SalesforceSink. +func (ss SalesforceSink) MarshalJSON() ([]byte, error) { + ss.Type = TypeSalesforceSink + objectMap := make(map[string]interface{}) + if ss.WriteBehavior != "" { + objectMap["writeBehavior"] = ss.WriteBehavior + } + if ss.ExternalIDFieldName != nil { + objectMap["externalIdFieldName"] = ss.ExternalIDFieldName + } + if ss.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = ss.IgnoreNullValues + } + if ss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ss.WriteBatchSize + } + if ss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout + } + if ss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ss.SinkRetryCount + } + if ss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ss.SinkRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsOdbcTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsSalesforceSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSalesforceSink() (*SalesforceSink, bool) { + return &ss, true +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsDynamicsSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsInformixSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsOdbcSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOracleSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSnowflakeSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSnowflakeSink() (*SnowflakeSink, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSQLDWSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSQLMISink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSQLServerSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSQLSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsFileSystemSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsBlobSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsBinarySink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsParquetSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAvroSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureTableSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsRestSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsOrcSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsJSONSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDataset() (*Dataset, bool) { +// AsCopySink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &serd, true +// AsBasicCopySink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ss, true } -// UnmarshalJSON is the custom unmarshaler for SapEccResourceDataset struct. -func (serd *SapEccResourceDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SalesforceSink struct. +func (ss *SalesforceSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -201074,98 +202382,98 @@ func (serd *SapEccResourceDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "writeBehavior": if v != nil { - var sapEccResourceDatasetTypeProperties SapEccResourceDatasetTypeProperties - err = json.Unmarshal(*v, &sapEccResourceDatasetTypeProperties) + var writeBehavior SalesforceSinkWriteBehavior + err = json.Unmarshal(*v, &writeBehavior) if err != nil { return err } - serd.SapEccResourceDatasetTypeProperties = &sapEccResourceDatasetTypeProperties + ss.WriteBehavior = writeBehavior } - default: + case "externalIdFieldName": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var externalIDFieldName interface{} + err = json.Unmarshal(*v, &externalIDFieldName) if err != nil { return err } - if serd.AdditionalProperties == nil { - serd.AdditionalProperties = make(map[string]interface{}) - } - serd.AdditionalProperties[k] = additionalProperties + ss.ExternalIDFieldName = externalIDFieldName } - case "description": + case "ignoreNullValues": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) if err != nil { return err } - serd.Description = &description + ss.IgnoreNullValues = ignoreNullValues } - case "structure": + default: if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - serd.Structure = structure + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties } - case "schema": + case "writeBatchSize": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - serd.Schema = schema + ss.WriteBatchSize = writeBatchSize } - case "linkedServiceName": + case "writeBatchTimeout": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - serd.LinkedServiceName = &linkedServiceName + ss.WriteBatchTimeout = writeBatchTimeout } - case "parameters": + case "sinkRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) if err != nil { return err } - serd.Parameters = parameters + ss.SinkRetryCount = sinkRetryCount } - case "annotations": + case "sinkRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) if err != nil { return err } - serd.Annotations = &annotations + ss.SinkRetryWait = sinkRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - serd.Folder = &folder + ss.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - serd.Type = typeVar + ss.Type = typeVar } } } @@ -201173,18 +202481,12 @@ func (serd *SapEccResourceDataset) UnmarshalJSON(body []byte) error { return nil } -// SapEccResourceDatasetTypeProperties sap ECC OData resource dataset properties. -type SapEccResourceDatasetTypeProperties struct { - // Path - The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// SapEccSource a copy activity source for SAP ECC source. -type SapEccSource struct { - // Query - SAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType string). +// SalesforceSource a copy activity Salesforce source. +type SalesforceSource struct { + // Query - Database query. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` - // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + // ReadBehavior - The read behavior for the operation. Default is Query. Possible values include: 'Query', 'QueryAll' + ReadBehavior SalesforceSourceReadBehavior `json:"readBehavior,omitempty"` // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). @@ -201201,522 +202503,522 @@ type SapEccSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapEccSource. -func (ses SapEccSource) MarshalJSON() ([]byte, error) { - ses.Type = TypeSapEccSource +// MarshalJSON is the custom marshaler for SalesforceSource. +func (ss SalesforceSource) MarshalJSON() ([]byte, error) { + ss.Type = TypeSalesforceSource objectMap := make(map[string]interface{}) - if ses.Query != nil { - objectMap["query"] = ses.Query + if ss.Query != nil { + objectMap["query"] = ss.Query } - if ses.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = ses.HTTPRequestTimeout + if ss.ReadBehavior != "" { + objectMap["readBehavior"] = ss.ReadBehavior } - if ses.QueryTimeout != nil { - objectMap["queryTimeout"] = ses.QueryTimeout + if ss.QueryTimeout != nil { + objectMap["queryTimeout"] = ss.QueryTimeout } - if ses.AdditionalColumns != nil { - objectMap["additionalColumns"] = ses.AdditionalColumns + if ss.AdditionalColumns != nil { + objectMap["additionalColumns"] = ss.AdditionalColumns } - if ses.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ses.SourceRetryCount + if ss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ss.SourceRetryCount } - if ses.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ses.SourceRetryWait + if ss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ss.SourceRetryWait } - if ses.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ses.MaxConcurrentConnections + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } - if ses.Type != "" { - objectMap["type"] = ses.Type + if ss.Type != "" { + objectMap["type"] = ss.Type } - for k, v := range ses.AdditionalProperties { + for k, v := range ss.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapEccSource() (*SapEccSource, bool) { - return &ses, true +// AsSapEccSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false +// AsSalesforceSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSalesforceSource() (*SalesforceSource, bool) { + return &ss, true } -// AsSapBwSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ses, true +// AsBasicTabularSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ss, true } -// AsBinarySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ses, true +// AsBasicCopySource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ss, true } -// UnmarshalJSON is the custom unmarshaler for SapEccSource struct. -func (ses *SapEccSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SalesforceSource struct. +func (ss *SalesforceSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -201731,16 +203033,16 @@ func (ses *SapEccSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ses.Query = query + ss.Query = query } - case "httpRequestTimeout": + case "readBehavior": if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) + var readBehavior SalesforceSourceReadBehavior + err = json.Unmarshal(*v, &readBehavior) if err != nil { return err } - ses.HTTPRequestTimeout = HTTPRequestTimeout + ss.ReadBehavior = readBehavior } case "queryTimeout": if v != nil { @@ -201749,7 +203051,7 @@ func (ses *SapEccSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ses.QueryTimeout = queryTimeout + ss.QueryTimeout = queryTimeout } case "additionalColumns": if v != nil { @@ -201758,7 +203060,7 @@ func (ses *SapEccSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ses.AdditionalColumns = &additionalColumns + ss.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -201767,10 +203069,10 @@ func (ses *SapEccSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if ses.AdditionalProperties == nil { - ses.AdditionalProperties = make(map[string]interface{}) + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) } - ses.AdditionalProperties[k] = additionalProperties + ss.AdditionalProperties[k] = additionalProperties } case "sourceRetryCount": if v != nil { @@ -201779,7 +203081,7 @@ func (ses *SapEccSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ses.SourceRetryCount = sourceRetryCount + ss.SourceRetryCount = sourceRetryCount } case "sourceRetryWait": if v != nil { @@ -201788,7 +203090,7 @@ func (ses *SapEccSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ses.SourceRetryWait = sourceRetryWait + ss.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -201797,7 +203099,7 @@ func (ses *SapEccSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ses.MaxConcurrentConnections = maxConcurrentConnections + ss.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { @@ -201806,7 +203108,7 @@ func (ses *SapEccSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - ses.Type = typeVar + ss.Type = typeVar } } } @@ -201814,10 +203116,10 @@ func (ses *SapEccSource) UnmarshalJSON(body []byte) error { return nil } -// SapHanaLinkedService SAP HANA Linked Service. -type SapHanaLinkedService struct { - // SapHanaLinkedServiceProperties - Properties specific to this linked service type. - *SapHanaLinkedServiceProperties `json:"typeProperties,omitempty"` +// SapBWLinkedService SAP Business Warehouse Linked Service. +type SapBWLinkedService struct { + // SapBWLinkedServiceTypeProperties - Properties specific to this linked service type. + *SapBWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -201832,546 +203134,546 @@ type SapHanaLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapHanaLinkedService. -func (shls SapHanaLinkedService) MarshalJSON() ([]byte, error) { - shls.Type = TypeSapHana +// MarshalJSON is the custom marshaler for SapBWLinkedService. +func (sbls SapBWLinkedService) MarshalJSON() ([]byte, error) { + sbls.Type = TypeSapBW objectMap := make(map[string]interface{}) - if shls.SapHanaLinkedServiceProperties != nil { - objectMap["typeProperties"] = shls.SapHanaLinkedServiceProperties + if sbls.SapBWLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sbls.SapBWLinkedServiceTypeProperties } - if shls.ConnectVia != nil { - objectMap["connectVia"] = shls.ConnectVia + if sbls.ConnectVia != nil { + objectMap["connectVia"] = sbls.ConnectVia } - if shls.Description != nil { - objectMap["description"] = shls.Description + if sbls.Description != nil { + objectMap["description"] = sbls.Description } - if shls.Parameters != nil { - objectMap["parameters"] = shls.Parameters + if sbls.Parameters != nil { + objectMap["parameters"] = sbls.Parameters } - if shls.Annotations != nil { - objectMap["annotations"] = shls.Annotations + if sbls.Annotations != nil { + objectMap["annotations"] = sbls.Annotations } - if shls.Type != "" { - objectMap["type"] = shls.Type + if sbls.Type != "" { + objectMap["type"] = sbls.Type } - for k, v := range shls.AdditionalProperties { + for k, v := range sbls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return &shls, true +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false +// AsSapBWLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return &sbls, true } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &shls, true +// AsBasicLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sbls, true } -// UnmarshalJSON is the custom unmarshaler for SapHanaLinkedService struct. -func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapBWLinkedService struct. +func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -202381,12 +203683,12 @@ func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var sapHanaLinkedServiceProperties SapHanaLinkedServiceProperties - err = json.Unmarshal(*v, &sapHanaLinkedServiceProperties) + var sapBWLinkedServiceTypeProperties SapBWLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapBWLinkedServiceTypeProperties) if err != nil { return err } - shls.SapHanaLinkedServiceProperties = &sapHanaLinkedServiceProperties + sbls.SapBWLinkedServiceTypeProperties = &sapBWLinkedServiceTypeProperties } default: if v != nil { @@ -202395,10 +203697,10 @@ func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if shls.AdditionalProperties == nil { - shls.AdditionalProperties = make(map[string]interface{}) + if sbls.AdditionalProperties == nil { + sbls.AdditionalProperties = make(map[string]interface{}) } - shls.AdditionalProperties[k] = additionalProperties + sbls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -202407,7 +203709,7 @@ func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - shls.ConnectVia = &connectVia + sbls.ConnectVia = &connectVia } case "description": if v != nil { @@ -202416,7 +203718,7 @@ func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - shls.Description = &description + sbls.Description = &description } case "parameters": if v != nil { @@ -202425,7 +203727,7 @@ func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - shls.Parameters = parameters + sbls.Parameters = parameters } case "annotations": if v != nil { @@ -202434,7 +203736,7 @@ func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - shls.Annotations = &annotations + sbls.Annotations = &annotations } case "type": if v != nil { @@ -202443,7 +203745,7 @@ func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - shls.Type = typeVar + sbls.Type = typeVar } } } @@ -202451,24 +203753,24 @@ func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { return nil } -// SapHanaLinkedServiceProperties properties specific to this linked service type. -type SapHanaLinkedServiceProperties struct { - // ConnectionString - SAP HANA ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Server - Host name of the SAP HANA server. Type: string (or Expression with resultType string). +// SapBWLinkedServiceTypeProperties properties specific to this linked service type. +type SapBWLinkedServiceTypeProperties struct { + // Server - Host name of the SAP BW instance. Type: string (or Expression with resultType string). Server interface{} `json:"server,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the SAP HANA server. Possible values include: 'SapHanaAuthenticationTypeBasic', 'SapHanaAuthenticationTypeWindows' - AuthenticationType SapHanaAuthenticationType `json:"authenticationType,omitempty"` - // UserName - Username to access the SAP HANA server. Type: string (or Expression with resultType string). + // SystemNumber - System number of the BW system. (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). + SystemNumber interface{} `json:"systemNumber,omitempty"` + // ClientID - 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). + ClientID interface{} `json:"clientId,omitempty"` + // UserName - Username to access the SAP BW server. Type: string (or Expression with resultType string). UserName interface{} `json:"userName,omitempty"` - // Password - Password to access the SAP HANA server. + // Password - Password to access the SAP BW server. Password BasicSecretBase `json:"password,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for SapHanaLinkedServiceProperties struct. -func (shlsp *SapHanaLinkedServiceProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapBWLinkedServiceTypeProperties struct. +func (sblstp *SapBWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -202476,32 +203778,32 @@ func (shlsp *SapHanaLinkedServiceProperties) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "connectionString": + case "server": if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) + var server interface{} + err = json.Unmarshal(*v, &server) if err != nil { return err } - shlsp.ConnectionString = connectionString + sblstp.Server = server } - case "server": + case "systemNumber": if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) + var systemNumber interface{} + err = json.Unmarshal(*v, &systemNumber) if err != nil { return err } - shlsp.Server = server + sblstp.SystemNumber = systemNumber } - case "authenticationType": + case "clientId": if v != nil { - var authenticationType SapHanaAuthenticationType - err = json.Unmarshal(*v, &authenticationType) + var clientID interface{} + err = json.Unmarshal(*v, &clientID) if err != nil { return err } - shlsp.AuthenticationType = authenticationType + sblstp.ClientID = clientID } case "userName": if v != nil { @@ -202510,7 +203812,7 @@ func (shlsp *SapHanaLinkedServiceProperties) UnmarshalJSON(body []byte) error { if err != nil { return err } - shlsp.UserName = userName + sblstp.UserName = userName } case "password": if v != nil { @@ -202518,7 +203820,7 @@ func (shlsp *SapHanaLinkedServiceProperties) UnmarshalJSON(body []byte) error { if err != nil { return err } - shlsp.Password = password + sblstp.Password = password } case "encryptedCredential": if v != nil { @@ -202527,7 +203829,7 @@ func (shlsp *SapHanaLinkedServiceProperties) UnmarshalJSON(body []byte) error { if err != nil { return err } - shlsp.EncryptedCredential = encryptedCredential + sblstp.EncryptedCredential = encryptedCredential } } } @@ -202535,560 +203837,539 @@ func (shlsp *SapHanaLinkedServiceProperties) UnmarshalJSON(body []byte) error { return nil } -// SapHanaPartitionSettings the settings that will be leveraged for SAP HANA source partitioning. -type SapHanaPartitionSettings struct { - // PartitionColumnName - The name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` -} - -// SapHanaSource a copy activity source for SAP HANA source. -type SapHanaSource struct { - // Query - SAP HANA Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // PacketSize - The packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). - PacketSize interface{} `json:"packetSize,omitempty"` - // PartitionOption - The partition mechanism that will be used for SAP HANA read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for SAP HANA source partitioning. - PartitionSettings *SapHanaPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// SapBwCubeDataset the SAP BW cube dataset. +type SapBwCubeDataset struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapHanaSource. -func (shs SapHanaSource) MarshalJSON() ([]byte, error) { - shs.Type = TypeSapHanaSource +// MarshalJSON is the custom marshaler for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) MarshalJSON() ([]byte, error) { + sbcd.Type = TypeSapBwCube objectMap := make(map[string]interface{}) - if shs.Query != nil { - objectMap["query"] = shs.Query - } - if shs.PacketSize != nil { - objectMap["packetSize"] = shs.PacketSize - } - if shs.PartitionOption != nil { - objectMap["partitionOption"] = shs.PartitionOption + if sbcd.Description != nil { + objectMap["description"] = sbcd.Description } - if shs.PartitionSettings != nil { - objectMap["partitionSettings"] = shs.PartitionSettings + if sbcd.Structure != nil { + objectMap["structure"] = sbcd.Structure } - if shs.QueryTimeout != nil { - objectMap["queryTimeout"] = shs.QueryTimeout + if sbcd.Schema != nil { + objectMap["schema"] = sbcd.Schema } - if shs.AdditionalColumns != nil { - objectMap["additionalColumns"] = shs.AdditionalColumns + if sbcd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sbcd.LinkedServiceName } - if shs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = shs.SourceRetryCount + if sbcd.Parameters != nil { + objectMap["parameters"] = sbcd.Parameters } - if shs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = shs.SourceRetryWait + if sbcd.Annotations != nil { + objectMap["annotations"] = sbcd.Annotations } - if shs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = shs.MaxConcurrentConnections + if sbcd.Folder != nil { + objectMap["folder"] = sbcd.Folder } - if shs.Type != "" { - objectMap["type"] = shs.Type + if sbcd.Type != "" { + objectMap["type"] = sbcd.Type } - for k, v := range shs.AdditionalProperties { + for k, v := range sbcd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsHTTPSource() (*HTTPSource, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsOffice365Source() (*Office365Source, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsWebSource() (*WebSource, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsOracleSource() (*OracleSource, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsHdfsSource() (*HdfsSource, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsRestSource() (*RestSource, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsODataSource() (*ODataSource, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsRelationalSource() (*RelationalSource, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsBlobSource() (*BlobSource, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsVerticaSource() (*VerticaSource, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsZohoSource() (*ZohoSource, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsXeroSource() (*XeroSource, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSquareSource() (*SquareSource, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSparkSource() (*SparkSource, bool) { +// AsHTTPDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsShopifySource() (*ShopifySource, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsWebTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsPrestoSource() (*PrestoSource, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false +// AsSapBwCubeDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return &sbcd, true } -// AsJiraSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsJiraSource() (*JiraSource, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsHubspotSource() (*HubspotSource, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsHiveSource() (*HiveSource, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsHBaseSource() (*HBaseSource, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsEloquaSource() (*EloquaSource, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDrillSource() (*DrillSource, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsConcurSource() (*ConcurSource, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCassandraSource() (*CassandraSource, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsTeradataSource() (*TeradataSource, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSQLMISource() (*SQLMISource, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsFileShareDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSQLSource() (*SQLSource, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapTableSource() (*SapTableSource, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapHanaSource() (*SapHanaSource, bool) { - return &shs, true -} - -// AsSapEccSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapEccSource() (*SapEccSource, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapBwSource() (*SapBwSource, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSybaseSource() (*SybaseSource, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsCustomDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMySQLSource() (*MySQLSource, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsOdbcSource() (*OdbcSource, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDb2Source() (*Db2Source, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsInformixSource() (*InformixSource, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &shs, true +// AsBinaryDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsBinarySource() (*BinarySource, bool) { +// AsOrcDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsOrcSource() (*OrcSource, bool) { +// AsXMLDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsXMLSource() (*XMLSource, bool) { +// AsJSONDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsJSONSource() (*JSONSource, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsParquetDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsParquetSource() (*ParquetSource, bool) { +// AsExcelDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsExcelSource() (*ExcelSource, bool) { +// AsAvroDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAvroSource() (*AvroSource, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCopySource() (*CopySource, bool) { +// AsDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &shs, true +// AsBasicDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsBasicDataset() (BasicDataset, bool) { + return &sbcd, true } -// UnmarshalJSON is the custom unmarshaler for SapHanaSource struct. -func (shs *SapHanaSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapBwCubeDataset struct. +func (sbcd *SapBwCubeDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -203096,107 +204377,89 @@ func (shs *SapHanaSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - shs.Query = query - } - case "packetSize": + default: if v != nil { - var packetSize interface{} - err = json.Unmarshal(*v, &packetSize) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - shs.PacketSize = packetSize - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err + if sbcd.AdditionalProperties == nil { + sbcd.AdditionalProperties = make(map[string]interface{}) } - shs.PartitionOption = partitionOption + sbcd.AdditionalProperties[k] = additionalProperties } - case "partitionSettings": + case "description": if v != nil { - var partitionSettings SapHanaPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - shs.PartitionSettings = &partitionSettings + sbcd.Description = &description } - case "queryTimeout": + case "structure": if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - shs.QueryTimeout = queryTimeout + sbcd.Structure = structure } - case "additionalColumns": + case "schema": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - shs.AdditionalColumns = &additionalColumns + sbcd.Schema = schema } - default: + case "linkedServiceName": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - if shs.AdditionalProperties == nil { - shs.AdditionalProperties = make(map[string]interface{}) - } - shs.AdditionalProperties[k] = additionalProperties + sbcd.LinkedServiceName = &linkedServiceName } - case "sourceRetryCount": + case "parameters": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - shs.SourceRetryCount = sourceRetryCount + sbcd.Parameters = parameters } - case "sourceRetryWait": + case "annotations": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - shs.SourceRetryWait = sourceRetryWait + sbcd.Annotations = &annotations } - case "maxConcurrentConnections": + case "folder": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - shs.MaxConcurrentConnections = maxConcurrentConnections + sbcd.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - shs.Type = typeVar + sbcd.Type = typeVar } } } @@ -203204,544 +204467,539 @@ func (shs *SapHanaSource) UnmarshalJSON(body []byte) error { return nil } -// SapHanaTableDataset SAP HANA Table properties. -type SapHanaTableDataset struct { - // SapHanaTableDatasetTypeProperties - SAP HANA Table properties. - *SapHanaTableDatasetTypeProperties `json:"typeProperties,omitempty"` +// SapBwSource a copy activity source for SapBW server via MDX. +type SapBwSource struct { + // Query - MDX query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapHanaTableDataset. -func (shtd SapHanaTableDataset) MarshalJSON() ([]byte, error) { - shtd.Type = TypeSapHanaTable +// MarshalJSON is the custom marshaler for SapBwSource. +func (sbs SapBwSource) MarshalJSON() ([]byte, error) { + sbs.Type = TypeSapBwSource objectMap := make(map[string]interface{}) - if shtd.SapHanaTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = shtd.SapHanaTableDatasetTypeProperties - } - if shtd.Description != nil { - objectMap["description"] = shtd.Description - } - if shtd.Structure != nil { - objectMap["structure"] = shtd.Structure + if sbs.Query != nil { + objectMap["query"] = sbs.Query } - if shtd.Schema != nil { - objectMap["schema"] = shtd.Schema + if sbs.QueryTimeout != nil { + objectMap["queryTimeout"] = sbs.QueryTimeout } - if shtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = shtd.LinkedServiceName + if sbs.AdditionalColumns != nil { + objectMap["additionalColumns"] = sbs.AdditionalColumns } - if shtd.Parameters != nil { - objectMap["parameters"] = shtd.Parameters + if sbs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sbs.SourceRetryCount } - if shtd.Annotations != nil { - objectMap["annotations"] = shtd.Annotations + if sbs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sbs.SourceRetryWait } - if shtd.Folder != nil { - objectMap["folder"] = shtd.Folder + if sbs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sbs.MaxConcurrentConnections } - if shtd.Type != "" { - objectMap["type"] = shtd.Type + if sbs.Type != "" { + objectMap["type"] = sbs.Type } - for k, v := range shtd.AdditionalProperties { + for k, v := range sbs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsHTTPSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOffice365Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsWebSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsOracleSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsHdfsSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsRestSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsODataSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsRelationalSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsBlobSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsResponsysSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsVerticaSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsZohoSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsXeroSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSquareSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsSparkSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsShopifySource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsPrestoSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsPaypalSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return &shtd, true +// AsMarketoSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false +// AsSapBwSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapBwSource() (*SapBwSource, bool) { + return &sbs, true } -// AsCustomDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sbs, true +} + +// AsBinarySource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAvroSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDataset() (*Dataset, bool) { +// AsCopySource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &shtd, true +// AsBasicCopySource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sbs, true } -// UnmarshalJSON is the custom unmarshaler for SapHanaTableDataset struct. -func (shtd *SapHanaTableDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapBwSource struct. +func (sbs *SapBwSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -203749,98 +205007,80 @@ func (shtd *SapHanaTableDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var sapHanaTableDatasetTypeProperties SapHanaTableDatasetTypeProperties - err = json.Unmarshal(*v, &sapHanaTableDatasetTypeProperties) - if err != nil { - return err - } - shtd.SapHanaTableDatasetTypeProperties = &sapHanaTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if shtd.AdditionalProperties == nil { - shtd.AdditionalProperties = make(map[string]interface{}) - } - shtd.AdditionalProperties[k] = additionalProperties - } - case "description": + case "query": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - shtd.Description = &description + sbs.Query = query } - case "structure": + case "queryTimeout": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - shtd.Structure = structure + sbs.QueryTimeout = queryTimeout } - case "schema": + case "additionalColumns": if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - shtd.Schema = schema + sbs.AdditionalColumns = &additionalColumns } - case "linkedServiceName": + default: if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - shtd.LinkedServiceName = &linkedServiceName + if sbs.AdditionalProperties == nil { + sbs.AdditionalProperties = make(map[string]interface{}) + } + sbs.AdditionalProperties[k] = additionalProperties } - case "parameters": + case "sourceRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - shtd.Parameters = parameters + sbs.SourceRetryCount = sourceRetryCount } - case "annotations": + case "sourceRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - shtd.Annotations = &annotations + sbs.SourceRetryWait = sourceRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - shtd.Folder = &folder + sbs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - shtd.Type = typeVar + sbs.Type = typeVar } } } @@ -203848,18 +205088,10 @@ func (shtd *SapHanaTableDataset) UnmarshalJSON(body []byte) error { return nil } -// SapHanaTableDatasetTypeProperties SAP HANA Table properties. -type SapHanaTableDatasetTypeProperties struct { - // Schema - The schema name of SAP HANA. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of SAP HANA. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// SapOpenHubLinkedService SAP Business Warehouse Open Hub Destination Linked Service. -type SapOpenHubLinkedService struct { - // SapOpenHubLinkedServiceTypeProperties - Properties specific to SAP Business Warehouse Open Hub Destination linked service type. - *SapOpenHubLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SapCloudForCustomerLinkedService linked service for SAP Cloud for Customer. +type SapCloudForCustomerLinkedService struct { + // SapCloudForCustomerLinkedServiceTypeProperties - SAP Cloud for Customer linked service properties. + *SapCloudForCustomerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -203874,546 +205106,546 @@ type SapOpenHubLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) MarshalJSON() ([]byte, error) { - sohls.Type = TypeSapOpenHub +// MarshalJSON is the custom marshaler for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) MarshalJSON() ([]byte, error) { + scfcls.Type = TypeSapCloudForCustomer objectMap := make(map[string]interface{}) - if sohls.SapOpenHubLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sohls.SapOpenHubLinkedServiceTypeProperties + if scfcls.SapCloudForCustomerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = scfcls.SapCloudForCustomerLinkedServiceTypeProperties } - if sohls.ConnectVia != nil { - objectMap["connectVia"] = sohls.ConnectVia + if scfcls.ConnectVia != nil { + objectMap["connectVia"] = scfcls.ConnectVia } - if sohls.Description != nil { - objectMap["description"] = sohls.Description + if scfcls.Description != nil { + objectMap["description"] = scfcls.Description } - if sohls.Parameters != nil { - objectMap["parameters"] = sohls.Parameters + if scfcls.Parameters != nil { + objectMap["parameters"] = scfcls.Parameters } - if sohls.Annotations != nil { - objectMap["annotations"] = sohls.Annotations + if scfcls.Annotations != nil { + objectMap["annotations"] = scfcls.Annotations } - if sohls.Type != "" { - objectMap["type"] = sohls.Type + if scfcls.Type != "" { + objectMap["type"] = scfcls.Type } - for k, v := range sohls.AdditionalProperties { + for k, v := range scfcls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return &sohls, true +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return &scfcls, true } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sohls, true +// AsBasicLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &scfcls, true } -// UnmarshalJSON is the custom unmarshaler for SapOpenHubLinkedService struct. -func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerLinkedService struct. +func (scfcls *SapCloudForCustomerLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -204423,12 +205655,12 @@ func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var sapOpenHubLinkedServiceTypeProperties SapOpenHubLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapOpenHubLinkedServiceTypeProperties) + var sapCloudForCustomerLinkedServiceTypeProperties SapCloudForCustomerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapCloudForCustomerLinkedServiceTypeProperties) if err != nil { return err } - sohls.SapOpenHubLinkedServiceTypeProperties = &sapOpenHubLinkedServiceTypeProperties + scfcls.SapCloudForCustomerLinkedServiceTypeProperties = &sapCloudForCustomerLinkedServiceTypeProperties } default: if v != nil { @@ -204437,10 +205669,10 @@ func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sohls.AdditionalProperties == nil { - sohls.AdditionalProperties = make(map[string]interface{}) + if scfcls.AdditionalProperties == nil { + scfcls.AdditionalProperties = make(map[string]interface{}) } - sohls.AdditionalProperties[k] = additionalProperties + scfcls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -204449,7 +205681,7 @@ func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sohls.ConnectVia = &connectVia + scfcls.ConnectVia = &connectVia } case "description": if v != nil { @@ -204458,7 +205690,7 @@ func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sohls.Description = &description + scfcls.Description = &description } case "parameters": if v != nil { @@ -204467,7 +205699,7 @@ func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sohls.Parameters = parameters + scfcls.Parameters = parameters } case "annotations": if v != nil { @@ -204476,7 +205708,7 @@ func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sohls.Annotations = &annotations + scfcls.Annotations = &annotations } case "type": if v != nil { @@ -204485,7 +205717,7 @@ func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sohls.Type = typeVar + scfcls.Type = typeVar } } } @@ -204493,35 +205725,20 @@ func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { return nil } -// SapOpenHubLinkedServiceTypeProperties properties specific to SAP Business Warehouse Open Hub Destination -// linked service type. -type SapOpenHubLinkedServiceTypeProperties struct { - // Server - Host name of the SAP BW instance where the open hub destination is located. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // SystemNumber - 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). - SystemNumber interface{} `json:"systemNumber,omitempty"` - // ClientID - 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). - ClientID interface{} `json:"clientId,omitempty"` - // Language - Language of the BW system where the open hub destination is located. The default value is EN. Type: string (or Expression with resultType string). - Language interface{} `json:"language,omitempty"` - // SystemID - SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` - // UserName - Username to access the SAP BW server where the open hub destination is located. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to access the SAP BW server where the open hub destination is located. +// SapCloudForCustomerLinkedServiceTypeProperties SAP Cloud for Customer linked service properties. +type SapCloudForCustomerLinkedServiceTypeProperties struct { + // URL - 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). + URL interface{} `json:"url,omitempty"` + // Username - The username for Basic authentication. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - The password for Basic authentication. Password BasicSecretBase `json:"password,omitempty"` - // MessageServer - The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` - // MessageServerService - The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` - // LogonGroup - The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + // EncryptedCredential - 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). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for SapOpenHubLinkedServiceTypeProperties struct. -func (sohlstp *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerLinkedServiceTypeProperties struct. +func (scfclstp *SapCloudForCustomerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -204529,59 +205746,23 @@ func (sohlstp *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(body []byte) } for k, v := range m { switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - sohlstp.Server = server - } - case "systemNumber": - if v != nil { - var systemNumber interface{} - err = json.Unmarshal(*v, &systemNumber) - if err != nil { - return err - } - sohlstp.SystemNumber = systemNumber - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - sohlstp.ClientID = clientID - } - case "language": - if v != nil { - var language interface{} - err = json.Unmarshal(*v, &language) - if err != nil { - return err - } - sohlstp.Language = language - } - case "systemId": + case "url": if v != nil { - var systemID interface{} - err = json.Unmarshal(*v, &systemID) + var URL interface{} + err = json.Unmarshal(*v, &URL) if err != nil { return err } - sohlstp.SystemID = systemID + scfclstp.URL = URL } - case "userName": + case "username": if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) + var username interface{} + err = json.Unmarshal(*v, &username) if err != nil { return err } - sohlstp.UserName = userName + scfclstp.Username = username } case "password": if v != nil { @@ -204589,34 +205770,7 @@ func (sohlstp *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(body []byte) if err != nil { return err } - sohlstp.Password = password - } - case "messageServer": - if v != nil { - var messageServer interface{} - err = json.Unmarshal(*v, &messageServer) - if err != nil { - return err - } - sohlstp.MessageServer = messageServer - } - case "messageServerService": - if v != nil { - var messageServerService interface{} - err = json.Unmarshal(*v, &messageServerService) - if err != nil { - return err - } - sohlstp.MessageServerService = messageServerService - } - case "logonGroup": - if v != nil { - var logonGroup interface{} - err = json.Unmarshal(*v, &logonGroup) - if err != nil { - return err - } - sohlstp.LogonGroup = logonGroup + scfclstp.Password = password } case "encryptedCredential": if v != nil { @@ -204625,7 +205779,7 @@ func (sohlstp *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(body []byte) if err != nil { return err } - sohlstp.EncryptedCredential = encryptedCredential + scfclstp.EncryptedCredential = encryptedCredential } } } @@ -204633,554 +205787,920 @@ func (sohlstp *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(body []byte) return nil } -// SapOpenHubSource a copy activity source for SAP Business Warehouse Open Hub Destination source. -type SapOpenHubSource struct { - // ExcludeLastRequest - Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType boolean). - ExcludeLastRequest interface{} `json:"excludeLastRequest,omitempty"` - // BaseRequestID - 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 ). - BaseRequestID interface{} `json:"baseRequestId,omitempty"` - // CustomRfcReadTableFunctionModule - Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with resultType string). - CustomRfcReadTableFunctionModule interface{} `json:"customRfcReadTableFunctionModule,omitempty"` - // SapDataColumnDelimiter - The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with resultType string). - SapDataColumnDelimiter interface{} `json:"sapDataColumnDelimiter,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// SapCloudForCustomerResourceDataset the path of the SAP Cloud for Customer OData entity. +type SapCloudForCustomerResourceDataset struct { + // SapCloudForCustomerResourceDatasetTypeProperties - SAP Cloud For Customer OData resource dataset properties. + *SapCloudForCustomerResourceDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapOpenHubSource. -func (sohs SapOpenHubSource) MarshalJSON() ([]byte, error) { - sohs.Type = TypeSapOpenHubSource +// MarshalJSON is the custom marshaler for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) MarshalJSON() ([]byte, error) { + scfcrd.Type = TypeSapCloudForCustomerResource objectMap := make(map[string]interface{}) - if sohs.ExcludeLastRequest != nil { - objectMap["excludeLastRequest"] = sohs.ExcludeLastRequest - } - if sohs.BaseRequestID != nil { - objectMap["baseRequestId"] = sohs.BaseRequestID + if scfcrd.SapCloudForCustomerResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = scfcrd.SapCloudForCustomerResourceDatasetTypeProperties } - if sohs.CustomRfcReadTableFunctionModule != nil { - objectMap["customRfcReadTableFunctionModule"] = sohs.CustomRfcReadTableFunctionModule + if scfcrd.Description != nil { + objectMap["description"] = scfcrd.Description } - if sohs.SapDataColumnDelimiter != nil { - objectMap["sapDataColumnDelimiter"] = sohs.SapDataColumnDelimiter + if scfcrd.Structure != nil { + objectMap["structure"] = scfcrd.Structure } - if sohs.QueryTimeout != nil { - objectMap["queryTimeout"] = sohs.QueryTimeout + if scfcrd.Schema != nil { + objectMap["schema"] = scfcrd.Schema } - if sohs.AdditionalColumns != nil { - objectMap["additionalColumns"] = sohs.AdditionalColumns + if scfcrd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = scfcrd.LinkedServiceName } - if sohs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sohs.SourceRetryCount + if scfcrd.Parameters != nil { + objectMap["parameters"] = scfcrd.Parameters } - if sohs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sohs.SourceRetryWait + if scfcrd.Annotations != nil { + objectMap["annotations"] = scfcrd.Annotations } - if sohs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sohs.MaxConcurrentConnections + if scfcrd.Folder != nil { + objectMap["folder"] = scfcrd.Folder } - if sohs.Type != "" { - objectMap["type"] = sohs.Type + if scfcrd.Type != "" { + objectMap["type"] = scfcrd.Type } - for k, v := range sohs.AdditionalProperties { + for k, v := range scfcrd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsHTTPSource() (*HTTPSource, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsOffice365Source() (*Office365Source, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsWebSource() (*WebSource, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsOracleSource() (*OracleSource, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsHdfsSource() (*HdfsSource, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return &scfcrd, true +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsRestSource() (*RestSource, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsODataSource() (*ODataSource, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsRelationalSource() (*RelationalSource, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsFileShareDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsBlobSource() (*BlobSource, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsVerticaSource() (*VerticaSource, bool) { +// AsCustomDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsZohoSource() (*ZohoSource, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsXeroSource() (*XeroSource, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSquareSource() (*SquareSource, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSparkSource() (*SparkSource, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsShopifySource() (*ShopifySource, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsBinaryDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsOrcDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsPrestoSource() (*PrestoSource, bool) { +// AsXMLDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsJSONDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsPaypalSource() (*PaypalSource, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMarketoSource() (*MarketoSource, bool) { +// AsParquetDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsExcelDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsAvroDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMagentoSource() (*MagentoSource, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsJiraSource() (*JiraSource, bool) { +// AsDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false +// AsBasicDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &scfcrd, true } -// AsHubspotSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerResourceDataset struct. +func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapCloudForCustomerResourceDatasetTypeProperties SapCloudForCustomerResourceDatasetTypeProperties + err = json.Unmarshal(*v, &sapCloudForCustomerResourceDatasetTypeProperties) + if err != nil { + return err + } + scfcrd.SapCloudForCustomerResourceDatasetTypeProperties = &sapCloudForCustomerResourceDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if scfcrd.AdditionalProperties == nil { + scfcrd.AdditionalProperties = make(map[string]interface{}) + } + scfcrd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + scfcrd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + scfcrd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + scfcrd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + scfcrd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + scfcrd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + scfcrd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + scfcrd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + scfcrd.Type = typeVar + } + } + } + + return nil } -// AsHiveSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsHiveSource() (*HiveSource, bool) { - return nil, false +// SapCloudForCustomerResourceDatasetTypeProperties sap Cloud For Customer OData resource dataset +// properties. +type SapCloudForCustomerResourceDatasetTypeProperties struct { + // Path - The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` } -// AsHBaseSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false +// SapCloudForCustomerSink a copy activity SAP Cloud for Customer sink. +type SapCloudForCustomerSink struct { + // WriteBehavior - The write behavior for the operation. Default is 'Insert'. Possible values include: 'Insert', 'Update' + WriteBehavior SapCloudForCustomerSinkWriteBehavior `json:"writeBehavior,omitempty"` + // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// AsGreenplumSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) MarshalJSON() ([]byte, error) { + scfcs.Type = TypeSapCloudForCustomerSink + objectMap := make(map[string]interface{}) + if scfcs.WriteBehavior != "" { + objectMap["writeBehavior"] = scfcs.WriteBehavior + } + if scfcs.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = scfcs.HTTPRequestTimeout + } + if scfcs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = scfcs.WriteBatchSize + } + if scfcs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = scfcs.WriteBatchTimeout + } + if scfcs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = scfcs.SinkRetryCount + } + if scfcs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = scfcs.SinkRetryWait + } + if scfcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections + } + if scfcs.Type != "" { + objectMap["type"] = scfcs.Type + } + for k, v := range scfcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsEloquaSource() (*EloquaSource, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDrillSource() (*DrillSource, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsConcurSource() (*ConcurSource, bool) { +// AsSalesforceSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCassandraSource() (*CassandraSource, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsTeradataSource() (*TeradataSource, bool) { +// AsDynamicsSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsInformixSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSQLMISource() (*SQLMISource, bool) { +// AsOdbcSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSQLSource() (*SQLSource, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapTableSource() (*SapTableSource, bool) { +// AsOracleSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return &sohs, true +// AsSnowflakeSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSQLDWSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSQLMISink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSQLServerSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSybaseSource() (*SybaseSource, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMySQLSource() (*MySQLSource, bool) { +// AsFileSystemSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsOdbcSource() (*OdbcSource, bool) { +// AsBlobSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDb2Source() (*Db2Source, bool) { +// AsBinarySink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsInformixSource() (*InformixSource, bool) { +// AsParquetSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAvroSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsTabularSource() (*TabularSource, bool) { +// AsAzureTableSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sohs, true +// AsAzureQueueSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsBinarySource() (*BinarySource, bool) { - return nil, false +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return &scfcs, true } -// AsOrcSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsOrcSource() (*OrcSource, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsXMLSource() (*XMLSource, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsJSONSource() (*JSONSource, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsRestSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsParquetSource() (*ParquetSource, bool) { +// AsOrcSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsExcelSource() (*ExcelSource, bool) { +// AsJSONSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAvroSource() (*AvroSource, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCopySource() (*CopySource, bool) { +// AsCopySink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sohs, true +// AsBasicCopySink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsBasicCopySink() (BasicCopySink, bool) { + return &scfcs, true } -// UnmarshalJSON is the custom unmarshaler for SapOpenHubSource struct. -func (sohs *SapOpenHubSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerSink struct. +func (scfcs *SapCloudForCustomerSink) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -205188,89 +206708,71 @@ func (sohs *SapOpenHubSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "excludeLastRequest": - if v != nil { - var excludeLastRequest interface{} - err = json.Unmarshal(*v, &excludeLastRequest) - if err != nil { - return err - } - sohs.ExcludeLastRequest = excludeLastRequest - } - case "baseRequestId": + case "writeBehavior": if v != nil { - var baseRequestID interface{} - err = json.Unmarshal(*v, &baseRequestID) + var writeBehavior SapCloudForCustomerSinkWriteBehavior + err = json.Unmarshal(*v, &writeBehavior) if err != nil { return err } - sohs.BaseRequestID = baseRequestID + scfcs.WriteBehavior = writeBehavior } - case "customRfcReadTableFunctionModule": + case "httpRequestTimeout": if v != nil { - var customRfcReadTableFunctionModule interface{} - err = json.Unmarshal(*v, &customRfcReadTableFunctionModule) + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) if err != nil { return err } - sohs.CustomRfcReadTableFunctionModule = customRfcReadTableFunctionModule + scfcs.HTTPRequestTimeout = HTTPRequestTimeout } - case "sapDataColumnDelimiter": + default: if v != nil { - var sapDataColumnDelimiter interface{} - err = json.Unmarshal(*v, &sapDataColumnDelimiter) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sohs.SapDataColumnDelimiter = sapDataColumnDelimiter - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err + if scfcs.AdditionalProperties == nil { + scfcs.AdditionalProperties = make(map[string]interface{}) } - sohs.QueryTimeout = queryTimeout + scfcs.AdditionalProperties[k] = additionalProperties } - case "additionalColumns": + case "writeBatchSize": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) if err != nil { return err } - sohs.AdditionalColumns = &additionalColumns + scfcs.WriteBatchSize = writeBatchSize } - default: + case "writeBatchTimeout": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) if err != nil { return err } - if sohs.AdditionalProperties == nil { - sohs.AdditionalProperties = make(map[string]interface{}) - } - sohs.AdditionalProperties[k] = additionalProperties + scfcs.WriteBatchTimeout = writeBatchTimeout } - case "sourceRetryCount": + case "sinkRetryCount": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) if err != nil { return err } - sohs.SourceRetryCount = sourceRetryCount + scfcs.SinkRetryCount = sinkRetryCount } - case "sourceRetryWait": + case "sinkRetryWait": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) if err != nil { return err } - sohs.SourceRetryWait = sourceRetryWait + scfcs.SinkRetryWait = sinkRetryWait } case "maxConcurrentConnections": if v != nil { @@ -205279,16 +206781,16 @@ func (sohs *SapOpenHubSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - sohs.MaxConcurrentConnections = maxConcurrentConnections + scfcs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicCopySink err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sohs.Type = typeVar + scfcs.Type = typeVar } } } @@ -205296,544 +206798,544 @@ func (sohs *SapOpenHubSource) UnmarshalJSON(body []byte) error { return nil } -// SapOpenHubTableDataset sap Business Warehouse Open Hub Destination Table properties. -type SapOpenHubTableDataset struct { - // SapOpenHubTableDatasetTypeProperties - Sap Business Warehouse Open Hub Destination Table properties. - *SapOpenHubTableDatasetTypeProperties `json:"typeProperties,omitempty"` +// SapCloudForCustomerSource a copy activity source for SAP Cloud for Customer source. +type SapCloudForCustomerSource struct { + // Query - SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) MarshalJSON() ([]byte, error) { - sohtd.Type = TypeSapOpenHubTable +// MarshalJSON is the custom marshaler for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) MarshalJSON() ([]byte, error) { + scfcs.Type = TypeSapCloudForCustomerSource objectMap := make(map[string]interface{}) - if sohtd.SapOpenHubTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = sohtd.SapOpenHubTableDatasetTypeProperties - } - if sohtd.Description != nil { - objectMap["description"] = sohtd.Description + if scfcs.Query != nil { + objectMap["query"] = scfcs.Query } - if sohtd.Structure != nil { - objectMap["structure"] = sohtd.Structure + if scfcs.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = scfcs.HTTPRequestTimeout } - if sohtd.Schema != nil { - objectMap["schema"] = sohtd.Schema + if scfcs.QueryTimeout != nil { + objectMap["queryTimeout"] = scfcs.QueryTimeout } - if sohtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sohtd.LinkedServiceName + if scfcs.AdditionalColumns != nil { + objectMap["additionalColumns"] = scfcs.AdditionalColumns } - if sohtd.Parameters != nil { - objectMap["parameters"] = sohtd.Parameters + if scfcs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = scfcs.SourceRetryCount } - if sohtd.Annotations != nil { - objectMap["annotations"] = sohtd.Annotations + if scfcs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = scfcs.SourceRetryWait } - if sohtd.Folder != nil { - objectMap["folder"] = sohtd.Folder + if scfcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections } - if sohtd.Type != "" { - objectMap["type"] = sohtd.Type + if scfcs.Type != "" { + objectMap["type"] = scfcs.Type } - for k, v := range sohtd.AdditionalProperties { + for k, v := range scfcs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsHTTPSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOffice365Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsWebSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsOracleSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsHdfsSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsRestSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsODataSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsRelationalSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsBlobSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsResponsysSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsVerticaSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsZohoSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsXeroSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSquareSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsSparkSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsShopifySource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsPrestoSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return &sohtd, true +// AsPaypalSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return &scfcs, true } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &scfcs, true +} + +// AsBinarySource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAvroSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDataset() (*Dataset, bool) { +// AsCopySource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &sohtd, true +// AsBasicCopySource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsBasicCopySource() (BasicCopySource, bool) { + return &scfcs, true } -// UnmarshalJSON is the custom unmarshaler for SapOpenHubTableDataset struct. -func (sohtd *SapOpenHubTableDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerSource struct. +func (scfcs *SapCloudForCustomerSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -205841,98 +207343,89 @@ func (sohtd *SapOpenHubTableDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": + case "query": if v != nil { - var sapOpenHubTableDatasetTypeProperties SapOpenHubTableDatasetTypeProperties - err = json.Unmarshal(*v, &sapOpenHubTableDatasetTypeProperties) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - sohtd.SapOpenHubTableDatasetTypeProperties = &sapOpenHubTableDatasetTypeProperties + scfcs.Query = query } - default: + case "httpRequestTimeout": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) if err != nil { return err } - if sohtd.AdditionalProperties == nil { - sohtd.AdditionalProperties = make(map[string]interface{}) - } - sohtd.AdditionalProperties[k] = additionalProperties + scfcs.HTTPRequestTimeout = HTTPRequestTimeout } - case "description": + case "queryTimeout": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - sohtd.Description = &description + scfcs.QueryTimeout = queryTimeout } - case "structure": + case "additionalColumns": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - sohtd.Structure = structure + scfcs.AdditionalColumns = &additionalColumns } - case "schema": + default: if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sohtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err + if scfcs.AdditionalProperties == nil { + scfcs.AdditionalProperties = make(map[string]interface{}) } - sohtd.LinkedServiceName = &linkedServiceName + scfcs.AdditionalProperties[k] = additionalProperties } - case "parameters": + case "sourceRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - sohtd.Parameters = parameters + scfcs.SourceRetryCount = sourceRetryCount } - case "annotations": + case "sourceRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - sohtd.Annotations = &annotations + scfcs.SourceRetryWait = sourceRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - sohtd.Folder = &folder + scfcs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sohtd.Type = typeVar + scfcs.Type = typeVar } } } @@ -205940,20 +207433,10 @@ func (sohtd *SapOpenHubTableDataset) UnmarshalJSON(body []byte) error { return nil } -// SapOpenHubTableDatasetTypeProperties sap Business Warehouse Open Hub Destination Table properties. -type SapOpenHubTableDatasetTypeProperties struct { - // OpenHubDestinationName - The name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with resultType string). - OpenHubDestinationName interface{} `json:"openHubDestinationName,omitempty"` - // ExcludeLastRequest - Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType boolean). - ExcludeLastRequest interface{} `json:"excludeLastRequest,omitempty"` - // BaseRequestID - 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 ). - BaseRequestID interface{} `json:"baseRequestId,omitempty"` -} - -// SapTableLinkedService SAP Table Linked Service. -type SapTableLinkedService struct { - // SapTableLinkedServiceTypeProperties - Properties specific to this linked service type. - *SapTableLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SapEccLinkedService linked service for SAP ERP Central Component(SAP ECC). +type SapEccLinkedService struct { + // SapEccLinkedServiceTypeProperties - SAP ECC linked service properties. + *SapEccLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -205968,546 +207451,546 @@ type SapTableLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapTableLinkedService. -func (stls SapTableLinkedService) MarshalJSON() ([]byte, error) { - stls.Type = TypeSapTable +// MarshalJSON is the custom marshaler for SapEccLinkedService. +func (sels SapEccLinkedService) MarshalJSON() ([]byte, error) { + sels.Type = TypeSapEcc objectMap := make(map[string]interface{}) - if stls.SapTableLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = stls.SapTableLinkedServiceTypeProperties + if sels.SapEccLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sels.SapEccLinkedServiceTypeProperties } - if stls.ConnectVia != nil { - objectMap["connectVia"] = stls.ConnectVia + if sels.ConnectVia != nil { + objectMap["connectVia"] = sels.ConnectVia } - if stls.Description != nil { - objectMap["description"] = stls.Description + if sels.Description != nil { + objectMap["description"] = sels.Description } - if stls.Parameters != nil { - objectMap["parameters"] = stls.Parameters + if sels.Parameters != nil { + objectMap["parameters"] = sels.Parameters } - if stls.Annotations != nil { - objectMap["annotations"] = stls.Annotations + if sels.Annotations != nil { + objectMap["annotations"] = sels.Annotations } - if stls.Type != "" { - objectMap["type"] = stls.Type + if sels.Type != "" { + objectMap["type"] = sels.Type } - for k, v := range stls.AdditionalProperties { + for k, v := range sels.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return &stls, true +// AsSapTableLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false +// AsSapEccLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return &sels, true } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &stls, true +// AsBasicLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sels, true } -// UnmarshalJSON is the custom unmarshaler for SapTableLinkedService struct. -func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapEccLinkedService struct. +func (sels *SapEccLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -206517,12 +208000,12 @@ func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var sapTableLinkedServiceTypeProperties SapTableLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapTableLinkedServiceTypeProperties) + var sapEccLinkedServiceTypeProperties SapEccLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapEccLinkedServiceTypeProperties) if err != nil { return err } - stls.SapTableLinkedServiceTypeProperties = &sapTableLinkedServiceTypeProperties + sels.SapEccLinkedServiceTypeProperties = &sapEccLinkedServiceTypeProperties } default: if v != nil { @@ -206531,10 +208014,10 @@ func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if stls.AdditionalProperties == nil { - stls.AdditionalProperties = make(map[string]interface{}) + if sels.AdditionalProperties == nil { + sels.AdditionalProperties = make(map[string]interface{}) } - stls.AdditionalProperties[k] = additionalProperties + sels.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -206543,7 +208026,7 @@ func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - stls.ConnectVia = &connectVia + sels.ConnectVia = &connectVia } case "description": if v != nil { @@ -206552,7 +208035,7 @@ func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - stls.Description = &description + sels.Description = &description } case "parameters": if v != nil { @@ -206561,7 +208044,7 @@ func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - stls.Parameters = parameters + sels.Parameters = parameters } case "annotations": if v != nil { @@ -206570,7 +208053,7 @@ func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - stls.Annotations = &annotations + sels.Annotations = &annotations } case "type": if v != nil { @@ -206579,7 +208062,7 @@ func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - stls.Type = typeVar + sels.Type = typeVar } } } @@ -206587,44 +208070,20 @@ func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { return nil } -// SapTableLinkedServiceTypeProperties properties specific to this linked service type. -type SapTableLinkedServiceTypeProperties struct { - // Server - Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // SystemNumber - 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). - SystemNumber interface{} `json:"systemNumber,omitempty"` - // ClientID - 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). - ClientID interface{} `json:"clientId,omitempty"` - // Language - Language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType string). - Language interface{} `json:"language,omitempty"` - // SystemID - SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` - // UserName - Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to access the SAP server where the table is located. +// SapEccLinkedServiceTypeProperties SAP ECC linked service properties. +type SapEccLinkedServiceTypeProperties struct { + // URL - The URL of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). + URL *string `json:"url,omitempty"` + // Username - The username for Basic authentication. Type: string (or Expression with resultType string). + Username *string `json:"username,omitempty"` + // Password - The password for Basic authentication. Password BasicSecretBase `json:"password,omitempty"` - // MessageServer - The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` - // MessageServerService - The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` - // SncMode - 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). - SncMode interface{} `json:"sncMode,omitempty"` - // SncMyName - Initiator's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). - SncMyName interface{} `json:"sncMyName,omitempty"` - // SncPartnerName - Communication partner's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). - SncPartnerName interface{} `json:"sncPartnerName,omitempty"` - // SncLibraryPath - External security product's library to access the SAP server where the table is located. Type: string (or Expression with resultType string). - SncLibraryPath interface{} `json:"sncLibraryPath,omitempty"` - // SncQop - SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). - SncQop interface{} `json:"sncQop,omitempty"` - // LogonGroup - The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // EncryptedCredential - 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). + EncryptedCredential *string `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for SapTableLinkedServiceTypeProperties struct. -func (stlstp *SapTableLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapEccLinkedServiceTypeProperties struct. +func (selstp *SapEccLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -206632,59 +208091,23 @@ func (stlstp *SapTableLinkedServiceTypeProperties) UnmarshalJSON(body []byte) er } for k, v := range m { switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - stlstp.Server = server - } - case "systemNumber": - if v != nil { - var systemNumber interface{} - err = json.Unmarshal(*v, &systemNumber) - if err != nil { - return err - } - stlstp.SystemNumber = systemNumber - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - stlstp.ClientID = clientID - } - case "language": - if v != nil { - var language interface{} - err = json.Unmarshal(*v, &language) - if err != nil { - return err - } - stlstp.Language = language - } - case "systemId": + case "url": if v != nil { - var systemID interface{} - err = json.Unmarshal(*v, &systemID) + var URL string + err = json.Unmarshal(*v, &URL) if err != nil { return err } - stlstp.SystemID = systemID + selstp.URL = &URL } - case "userName": + case "username": if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) + var username string + err = json.Unmarshal(*v, &username) if err != nil { return err } - stlstp.UserName = userName + selstp.Username = &username } case "password": if v != nil { @@ -206692,88 +208115,16 @@ func (stlstp *SapTableLinkedServiceTypeProperties) UnmarshalJSON(body []byte) er if err != nil { return err } - stlstp.Password = password - } - case "messageServer": - if v != nil { - var messageServer interface{} - err = json.Unmarshal(*v, &messageServer) - if err != nil { - return err - } - stlstp.MessageServer = messageServer - } - case "messageServerService": - if v != nil { - var messageServerService interface{} - err = json.Unmarshal(*v, &messageServerService) - if err != nil { - return err - } - stlstp.MessageServerService = messageServerService - } - case "sncMode": - if v != nil { - var sncMode interface{} - err = json.Unmarshal(*v, &sncMode) - if err != nil { - return err - } - stlstp.SncMode = sncMode - } - case "sncMyName": - if v != nil { - var sncMyName interface{} - err = json.Unmarshal(*v, &sncMyName) - if err != nil { - return err - } - stlstp.SncMyName = sncMyName - } - case "sncPartnerName": - if v != nil { - var sncPartnerName interface{} - err = json.Unmarshal(*v, &sncPartnerName) - if err != nil { - return err - } - stlstp.SncPartnerName = sncPartnerName - } - case "sncLibraryPath": - if v != nil { - var sncLibraryPath interface{} - err = json.Unmarshal(*v, &sncLibraryPath) - if err != nil { - return err - } - stlstp.SncLibraryPath = sncLibraryPath - } - case "sncQop": - if v != nil { - var sncQop interface{} - err = json.Unmarshal(*v, &sncQop) - if err != nil { - return err - } - stlstp.SncQop = sncQop - } - case "logonGroup": - if v != nil { - var logonGroup interface{} - err = json.Unmarshal(*v, &logonGroup) - if err != nil { - return err - } - stlstp.LogonGroup = logonGroup + selstp.Password = password } case "encryptedCredential": if v != nil { - var encryptedCredential interface{} + var encryptedCredential string err = json.Unmarshal(*v, &encryptedCredential) if err != nil { return err } - stlstp.EncryptedCredential = encryptedCredential + selstp.EncryptedCredential = &encryptedCredential } } } @@ -206781,22 +208132,10 @@ func (stlstp *SapTableLinkedServiceTypeProperties) UnmarshalJSON(body []byte) er return nil } -// SapTablePartitionSettings the settings that will be leveraged for SAP table source partitioning. -type SapTablePartitionSettings struct { - // PartitionColumnName - The name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` - // PartitionUpperBound - The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` - // PartitionLowerBound - The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` - // MaxPartitionsNumber - The maximum value of partitions the table will be split into. Type: integer (or Expression with resultType string). - MaxPartitionsNumber interface{} `json:"maxPartitionsNumber,omitempty"` -} - -// SapTableResourceDataset SAP Table Resource properties. -type SapTableResourceDataset struct { - // SapTableResourceDatasetTypeProperties - SAP Table Resource properties. - *SapTableResourceDatasetTypeProperties `json:"typeProperties,omitempty"` +// SapEccResourceDataset the path of the SAP ECC OData entity. +type SapEccResourceDataset struct { + // SapEccResourceDatasetTypeProperties - SAP ECC OData resource dataset properties. + *SapEccResourceDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -206817,520 +208156,520 @@ type SapTableResourceDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapTableResourceDataset. -func (strd SapTableResourceDataset) MarshalJSON() ([]byte, error) { - strd.Type = TypeSapTableResource +// MarshalJSON is the custom marshaler for SapEccResourceDataset. +func (serd SapEccResourceDataset) MarshalJSON() ([]byte, error) { + serd.Type = TypeSapEccResource objectMap := make(map[string]interface{}) - if strd.SapTableResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = strd.SapTableResourceDatasetTypeProperties + if serd.SapEccResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = serd.SapEccResourceDatasetTypeProperties } - if strd.Description != nil { - objectMap["description"] = strd.Description + if serd.Description != nil { + objectMap["description"] = serd.Description } - if strd.Structure != nil { - objectMap["structure"] = strd.Structure + if serd.Structure != nil { + objectMap["structure"] = serd.Structure } - if strd.Schema != nil { - objectMap["schema"] = strd.Schema + if serd.Schema != nil { + objectMap["schema"] = serd.Schema } - if strd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = strd.LinkedServiceName + if serd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = serd.LinkedServiceName } - if strd.Parameters != nil { - objectMap["parameters"] = strd.Parameters + if serd.Parameters != nil { + objectMap["parameters"] = serd.Parameters } - if strd.Annotations != nil { - objectMap["annotations"] = strd.Annotations + if serd.Annotations != nil { + objectMap["annotations"] = serd.Annotations } - if strd.Folder != nil { - objectMap["folder"] = strd.Folder + if serd.Folder != nil { + objectMap["folder"] = serd.Folder } - if strd.Type != "" { - objectMap["type"] = strd.Type + if serd.Type != "" { + objectMap["type"] = serd.Type } - for k, v := range strd.AdditionalProperties { + for k, v := range serd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return &strd, true +// AsSapTableResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false +// AsSapEccResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return &serd, true } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &strd, true +// AsBasicDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &serd, true } -// UnmarshalJSON is the custom unmarshaler for SapTableResourceDataset struct. -func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapEccResourceDataset struct. +func (serd *SapEccResourceDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -207340,12 +208679,12 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var sapTableResourceDatasetTypeProperties SapTableResourceDatasetTypeProperties - err = json.Unmarshal(*v, &sapTableResourceDatasetTypeProperties) + var sapEccResourceDatasetTypeProperties SapEccResourceDatasetTypeProperties + err = json.Unmarshal(*v, &sapEccResourceDatasetTypeProperties) if err != nil { return err } - strd.SapTableResourceDatasetTypeProperties = &sapTableResourceDatasetTypeProperties + serd.SapEccResourceDatasetTypeProperties = &sapEccResourceDatasetTypeProperties } default: if v != nil { @@ -207354,10 +208693,10 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if strd.AdditionalProperties == nil { - strd.AdditionalProperties = make(map[string]interface{}) + if serd.AdditionalProperties == nil { + serd.AdditionalProperties = make(map[string]interface{}) } - strd.AdditionalProperties[k] = additionalProperties + serd.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -207366,7 +208705,7 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - strd.Description = &description + serd.Description = &description } case "structure": if v != nil { @@ -207375,7 +208714,7 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - strd.Structure = structure + serd.Structure = structure } case "schema": if v != nil { @@ -207384,7 +208723,7 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - strd.Schema = schema + serd.Schema = schema } case "linkedServiceName": if v != nil { @@ -207393,7 +208732,7 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - strd.LinkedServiceName = &linkedServiceName + serd.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -207402,7 +208741,7 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - strd.Parameters = parameters + serd.Parameters = parameters } case "annotations": if v != nil { @@ -207411,7 +208750,7 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - strd.Annotations = &annotations + serd.Annotations = &annotations } case "folder": if v != nil { @@ -207420,7 +208759,7 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - strd.Folder = &folder + serd.Folder = &folder } case "type": if v != nil { @@ -207429,7 +208768,7 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - strd.Type = typeVar + serd.Type = typeVar } } } @@ -207437,32 +208776,18 @@ func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { return nil } -// SapTableResourceDatasetTypeProperties SAP Table Resource properties. -type SapTableResourceDatasetTypeProperties struct { - // TableName - The name of the SAP Table. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` +// SapEccResourceDatasetTypeProperties sap ECC OData resource dataset properties. +type SapEccResourceDatasetTypeProperties struct { + // Path - The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` } -// SapTableSource a copy activity source for SAP Table source. -type SapTableSource struct { - // RowCount - The number of rows to be retrieved. Type: integer(or Expression with resultType integer). - RowCount interface{} `json:"rowCount,omitempty"` - // RowSkips - The number of rows that will be skipped. Type: integer (or Expression with resultType integer). - RowSkips interface{} `json:"rowSkips,omitempty"` - // RfcTableFields - The fields of the SAP table that will be retrieved. For example, column0, column1. Type: string (or Expression with resultType string). - RfcTableFields interface{} `json:"rfcTableFields,omitempty"` - // RfcTableOptions - The options for the filtering of the SAP Table. For example, COLUMN0 EQ SOME VALUE. Type: string (or Expression with resultType string). - RfcTableOptions interface{} `json:"rfcTableOptions,omitempty"` - // BatchSize - Specifies the maximum number of rows that will be retrieved at a time when retrieving data from SAP Table. Type: integer (or Expression with resultType integer). - BatchSize interface{} `json:"batchSize,omitempty"` - // CustomRfcReadTableFunctionModule - Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with resultType string). - CustomRfcReadTableFunctionModule interface{} `json:"customRfcReadTableFunctionModule,omitempty"` - // SapDataColumnDelimiter - The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with resultType string). - SapDataColumnDelimiter interface{} `json:"sapDataColumnDelimiter,omitempty"` - // PartitionOption - The partition mechanism that will be used for SAP table read in parallel. Possible values include: "None", "PartitionOnInt", "PartitionOnCalendarYear", "PartitionOnCalendarMonth", "PartitionOnCalendarDate", "PartitionOnTime". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for SAP table source partitioning. - PartitionSettings *SapTablePartitionSettings `json:"partitionSettings,omitempty"` +// SapEccSource a copy activity source for SAP ECC source. +type SapEccSource struct { + // Query - SAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // HTTPRequestTimeout - The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:05:00. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). @@ -207479,1261 +208804,1177 @@ type SapTableSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SapTableSource. -func (sts SapTableSource) MarshalJSON() ([]byte, error) { - sts.Type = TypeSapTableSource +// MarshalJSON is the custom marshaler for SapEccSource. +func (ses SapEccSource) MarshalJSON() ([]byte, error) { + ses.Type = TypeSapEccSource objectMap := make(map[string]interface{}) - if sts.RowCount != nil { - objectMap["rowCount"] = sts.RowCount - } - if sts.RowSkips != nil { - objectMap["rowSkips"] = sts.RowSkips - } - if sts.RfcTableFields != nil { - objectMap["rfcTableFields"] = sts.RfcTableFields - } - if sts.RfcTableOptions != nil { - objectMap["rfcTableOptions"] = sts.RfcTableOptions - } - if sts.BatchSize != nil { - objectMap["batchSize"] = sts.BatchSize - } - if sts.CustomRfcReadTableFunctionModule != nil { - objectMap["customRfcReadTableFunctionModule"] = sts.CustomRfcReadTableFunctionModule - } - if sts.SapDataColumnDelimiter != nil { - objectMap["sapDataColumnDelimiter"] = sts.SapDataColumnDelimiter - } - if sts.PartitionOption != nil { - objectMap["partitionOption"] = sts.PartitionOption + if ses.Query != nil { + objectMap["query"] = ses.Query } - if sts.PartitionSettings != nil { - objectMap["partitionSettings"] = sts.PartitionSettings + if ses.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = ses.HTTPRequestTimeout } - if sts.QueryTimeout != nil { - objectMap["queryTimeout"] = sts.QueryTimeout + if ses.QueryTimeout != nil { + objectMap["queryTimeout"] = ses.QueryTimeout } - if sts.AdditionalColumns != nil { - objectMap["additionalColumns"] = sts.AdditionalColumns + if ses.AdditionalColumns != nil { + objectMap["additionalColumns"] = ses.AdditionalColumns } - if sts.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sts.SourceRetryCount + if ses.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ses.SourceRetryCount } - if sts.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sts.SourceRetryWait + if ses.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ses.SourceRetryWait } - if sts.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sts.MaxConcurrentConnections + if ses.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ses.MaxConcurrentConnections } - if sts.Type != "" { - objectMap["type"] = sts.Type + if ses.Type != "" { + objectMap["type"] = ses.Type } - for k, v := range sts.AdditionalProperties { + for k, v := range ses.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapTableSource() (*SapTableSource, bool) { - return &sts, true +// AsSapTableSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapEccSource() (*SapEccSource, bool) { + return &ses, true +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ses, true +} + +// AsBinarySource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ses, true +} + +// UnmarshalJSON is the custom unmarshaler for SapEccSource struct. +func (ses *SapEccSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ses.Query = query + } + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + ses.HTTPRequestTimeout = HTTPRequestTimeout + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ses.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ses.AdditionalColumns = &additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ses.AdditionalProperties == nil { + ses.AdditionalProperties = make(map[string]interface{}) + } + ses.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ses.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ses.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ses.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ses.Type = typeVar + } + } + } + + return nil +} + +// SapHanaLinkedService SAP HANA Linked Service. +type SapHanaLinkedService struct { + // SapHanaLinkedServiceProperties - Properties specific to this linked service type. + *SapHanaLinkedServiceProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapHanaLinkedService. +func (shls SapHanaLinkedService) MarshalJSON() ([]byte, error) { + shls.Type = TypeSapHana + objectMap := make(map[string]interface{}) + if shls.SapHanaLinkedServiceProperties != nil { + objectMap["typeProperties"] = shls.SapHanaLinkedServiceProperties + } + if shls.ConnectVia != nil { + objectMap["connectVia"] = shls.ConnectVia + } + if shls.Description != nil { + objectMap["description"] = shls.Description + } + if shls.Parameters != nil { + objectMap["parameters"] = shls.Parameters + } + if shls.Annotations != nil { + objectMap["annotations"] = shls.Annotations + } + if shls.Type != "" { + objectMap["type"] = shls.Type + } + for k, v := range shls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapEccSource() (*SapEccSource, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapBwSource() (*SapBwSource, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSybaseSource() (*SybaseSource, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMySQLSource() (*MySQLSource, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsOdbcSource() (*OdbcSource, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDb2Source() (*Db2Source, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsInformixSource() (*InformixSource, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsTabularSource() (*TabularSource, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sts, true +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsBinarySource() (*BinarySource, bool) { - return nil, false +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return &shls, true } -// AsOrcSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsOrcSource() (*OrcSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsXMLSource() (*XMLSource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsJSONSource() (*JSONSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsExcelSource() (*ExcelSource, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAvroSource() (*AvroSource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCopySource() (*CopySource, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sts, true +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SapTableSource struct. -func (sts *SapTableSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "rowCount": - if v != nil { - var rowCount interface{} - err = json.Unmarshal(*v, &rowCount) - if err != nil { - return err - } - sts.RowCount = rowCount - } - case "rowSkips": - if v != nil { - var rowSkips interface{} - err = json.Unmarshal(*v, &rowSkips) - if err != nil { - return err - } - sts.RowSkips = rowSkips - } - case "rfcTableFields": - if v != nil { - var rfcTableFields interface{} - err = json.Unmarshal(*v, &rfcTableFields) - if err != nil { - return err - } - sts.RfcTableFields = rfcTableFields - } - case "rfcTableOptions": - if v != nil { - var rfcTableOptions interface{} - err = json.Unmarshal(*v, &rfcTableOptions) - if err != nil { - return err - } - sts.RfcTableOptions = rfcTableOptions - } - case "batchSize": - if v != nil { - var batchSize interface{} - err = json.Unmarshal(*v, &batchSize) - if err != nil { - return err - } - sts.BatchSize = batchSize - } - case "customRfcReadTableFunctionModule": - if v != nil { - var customRfcReadTableFunctionModule interface{} - err = json.Unmarshal(*v, &customRfcReadTableFunctionModule) - if err != nil { - return err - } - sts.CustomRfcReadTableFunctionModule = customRfcReadTableFunctionModule - } - case "sapDataColumnDelimiter": - if v != nil { - var sapDataColumnDelimiter interface{} - err = json.Unmarshal(*v, &sapDataColumnDelimiter) - if err != nil { - return err - } - sts.SapDataColumnDelimiter = sapDataColumnDelimiter - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - sts.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings SapTablePartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - sts.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - sts.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sts.AdditionalColumns = &additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sts.AdditionalProperties == nil { - sts.AdditionalProperties = make(map[string]interface{}) - } - sts.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sts.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sts.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sts.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sts.Type = typeVar - } - } - } - - return nil +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false } -// ScheduleTrigger trigger that creates pipeline runs periodically, on schedule. -type ScheduleTrigger struct { - // ScheduleTriggerTypeProperties - Schedule Trigger properties. - *ScheduleTriggerTypeProperties `json:"typeProperties,omitempty"` - // Pipelines - Pipelines that need to be started. - Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Annotations - List of tags that can be used for describing the trigger. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeTrigger', 'TypeChainingTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeCustomEventsTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` +// AsSapEccLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for ScheduleTrigger. -func (st ScheduleTrigger) MarshalJSON() ([]byte, error) { - st.Type = TypeScheduleTrigger - objectMap := make(map[string]interface{}) - if st.ScheduleTriggerTypeProperties != nil { - objectMap["typeProperties"] = st.ScheduleTriggerTypeProperties - } - if st.Pipelines != nil { - objectMap["pipelines"] = st.Pipelines - } - if st.Description != nil { - objectMap["description"] = st.Description - } - if st.Annotations != nil { - objectMap["annotations"] = st.Annotations - } - if st.Type != "" { - objectMap["type"] = st.Type - } - for k, v := range st.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false } -// AsChainingTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsTumblingWindowTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsCustomEventsTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsBlobEventsTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsBlobTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBlobTrigger() (*BlobTrigger, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsScheduleTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return &st, true +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false } -// AsMultiplePipelineTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return &st, true +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false } -// AsTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsTrigger() (*Trigger, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsBasicTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &st, true +// AsWebLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for ScheduleTrigger struct. -func (st *ScheduleTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var scheduleTriggerTypeProperties ScheduleTriggerTypeProperties - err = json.Unmarshal(*v, &scheduleTriggerTypeProperties) - if err != nil { - return err - } - st.ScheduleTriggerTypeProperties = &scheduleTriggerTypeProperties - } - case "pipelines": - if v != nil { - var pipelines []TriggerPipelineReference - err = json.Unmarshal(*v, &pipelines) - if err != nil { - return err - } - st.Pipelines = &pipelines - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if st.AdditionalProperties == nil { - st.AdditionalProperties = make(map[string]interface{}) - } - st.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - st.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - st.RuntimeState = runtimeState - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - st.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - st.Type = typeVar - } - } - } - - return nil +// AsODataLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false } -// ScheduleTriggerRecurrence the workflow trigger recurrence. -type ScheduleTriggerRecurrence struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Frequency - The frequency. Possible values include: 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' - Frequency RecurrenceFrequency `json:"frequency,omitempty"` - // Interval - The interval. - Interval *int32 `json:"interval,omitempty"` - // StartTime - The start time. - StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - The end time. - EndTime *date.Time `json:"endTime,omitempty"` - // TimeZone - The time zone. - TimeZone *string `json:"timeZone,omitempty"` - // Schedule - The recurrence schedule. - Schedule *RecurrenceSchedule `json:"schedule,omitempty"` +// AsHdfsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for ScheduleTriggerRecurrence. -func (str ScheduleTriggerRecurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if str.Frequency != "" { - objectMap["frequency"] = str.Frequency - } - if str.Interval != nil { - objectMap["interval"] = str.Interval - } - if str.StartTime != nil { - objectMap["startTime"] = str.StartTime - } - if str.EndTime != nil { - objectMap["endTime"] = str.EndTime - } - if str.TimeZone != nil { - objectMap["timeZone"] = str.TimeZone - } - if str.Schedule != nil { - objectMap["schedule"] = str.Schedule - } - for k, v := range str.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for ScheduleTriggerRecurrence struct. -func (str *ScheduleTriggerRecurrence) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if str.AdditionalProperties == nil { - str.AdditionalProperties = make(map[string]interface{}) - } - str.AdditionalProperties[k] = additionalProperties - } - case "frequency": - if v != nil { - var frequency RecurrenceFrequency - err = json.Unmarshal(*v, &frequency) - if err != nil { - return err - } - str.Frequency = frequency - } - case "interval": - if v != nil { - var interval int32 - err = json.Unmarshal(*v, &interval) - if err != nil { - return err - } - str.Interval = &interval - } - case "startTime": - if v != nil { - var startTime date.Time - err = json.Unmarshal(*v, &startTime) - if err != nil { - return err - } - str.StartTime = &startTime - } - case "endTime": - if v != nil { - var endTime date.Time - err = json.Unmarshal(*v, &endTime) - if err != nil { - return err - } - str.EndTime = &endTime - } - case "timeZone": - if v != nil { - var timeZone string - err = json.Unmarshal(*v, &timeZone) - if err != nil { - return err - } - str.TimeZone = &timeZone - } - case "schedule": - if v != nil { - var schedule RecurrenceSchedule - err = json.Unmarshal(*v, &schedule) - if err != nil { - return err - } - str.Schedule = &schedule - } - } - } - - return nil +// AsInformixLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false } -// ScheduleTriggerTypeProperties schedule Trigger properties. -type ScheduleTriggerTypeProperties struct { - // Recurrence - Recurrence schedule configuration. - Recurrence *ScheduleTriggerRecurrence `json:"recurrence,omitempty"` +// AsOdbcLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false } -// ScriptAction custom script action to run on HDI ondemand cluster once it's up. -type ScriptAction struct { - // Name - The user provided name of the script action. - Name *string `json:"name,omitempty"` - // URI - The URI for the script action. - URI *string `json:"uri,omitempty"` - // Roles - The node types on which the script action should be executed. - Roles interface{} `json:"roles,omitempty"` - // Parameters - The parameters for the script action. - Parameters *string `json:"parameters,omitempty"` +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false } -// BasicSecretBase the base definition of a secret type. -type BasicSecretBase interface { - AsSecureString() (*SecureString, bool) - AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) - AsSecretBase() (*SecretBase, bool) +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false } -// SecretBase the base definition of a secret type. -type SecretBase struct { - // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' - Type Type `json:"type,omitempty"` +// AsTeradataLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false } -func unmarshalBasicSecretBase(body []byte) (BasicSecretBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeSecureString): - var ss SecureString - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeAzureKeyVaultSecret): - var akvsr AzureKeyVaultSecretReference - err := json.Unmarshal(body, &akvsr) - return akvsr, err - default: - var sb SecretBase - err := json.Unmarshal(body, &sb) - return sb, err - } +// AsDb2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false } -func unmarshalBasicSecretBaseArray(body []byte) ([]BasicSecretBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - sbArray := make([]BasicSecretBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sb, err := unmarshalBasicSecretBase(*rawMessage) - if err != nil { - return nil, err - } - sbArray[index] = sb - } - return sbArray, nil +// AsSybaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for SecretBase. -func (sb SecretBase) MarshalJSON() ([]byte, error) { - sb.Type = TypeSecretBase - objectMap := make(map[string]interface{}) - if sb.Type != "" { - objectMap["type"] = sb.Type - } - return json.Marshal(objectMap) +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false } -// AsSecureString is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsSecureString() (*SecureString, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsSecretBase is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsSecretBase() (*SecretBase, bool) { - return &sb, true +// AsOracleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false } -// AsBasicSecretBase is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsBasicSecretBase() (BasicSecretBase, bool) { - return &sb, true +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false } -// SecureString azure Data Factory secure string definition. The string value will be masked with asterisks -// '*' during Get or List API calls. -type SecureString struct { - // Value - Value of secure string. - Value *string `json:"value,omitempty"` - // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' - Type Type `json:"type,omitempty"` +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for SecureString. -func (ss SecureString) MarshalJSON() ([]byte, error) { - ss.Type = TypeSecureString - objectMap := make(map[string]interface{}) - if ss.Value != nil { - objectMap["value"] = ss.Value - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - return json.Marshal(objectMap) +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false } -// AsSecureString is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsSecureString() (*SecureString, bool) { - return &ss, true +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false } -// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsSecretBase is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsSecretBase() (*SecretBase, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsBasicSecretBase is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsBasicSecretBase() (BasicSecretBase, bool) { - return &ss, true +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false } -// SelfDependencyTumblingWindowTriggerReference self referenced tumbling window trigger dependency. -type SelfDependencyTumblingWindowTriggerReference struct { - // Offset - Timespan applied to the start time of a tumbling window when evaluating dependency. - Offset *string `json:"offset,omitempty"` - // Size - The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used. - Size *string `json:"size,omitempty"` - // Type - Possible values include: 'TypeDependencyReference', 'TypeSelfDependencyTumblingWindowTriggerReference', 'TypeTumblingWindowTriggerDependencyReference', 'TypeTriggerDependencyReference' - Type TypeBasicDependencyReference `json:"type,omitempty"` +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) MarshalJSON() ([]byte, error) { - sdtwtr.Type = TypeSelfDependencyTumblingWindowTriggerReference - objectMap := make(map[string]interface{}) - if sdtwtr.Offset != nil { - objectMap["offset"] = sdtwtr.Offset - } - if sdtwtr.Size != nil { - objectMap["size"] = sdtwtr.Size - } - if sdtwtr.Type != "" { - objectMap["type"] = sdtwtr.Type - } - return json.Marshal(objectMap) +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false } -// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { - return &sdtwtr, true +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false } -// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsDependencyReference() (*DependencyReference, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsBasicDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { - return &sdtwtr, true +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false } -// SelfHostedIntegrationRuntime self-hosted integration runtime. -type SelfHostedIntegrationRuntime struct { - // SelfHostedIntegrationRuntimeTypeProperties - When this property is not null, means this is a linked integration runtime. The property is used to access original integration runtime. - *SelfHostedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Integration runtime description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeIntegrationRuntime', 'TypeSelfHosted', 'TypeManaged' - Type TypeBasicIntegrationRuntime `json:"type,omitempty"` +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) MarshalJSON() ([]byte, error) { - shir.Type = TypeSelfHosted - objectMap := make(map[string]interface{}) - if shir.SelfHostedIntegrationRuntimeTypeProperties != nil { - objectMap["typeProperties"] = shir.SelfHostedIntegrationRuntimeTypeProperties - } - if shir.Description != nil { - objectMap["description"] = shir.Description - } - if shir.Type != "" { - objectMap["type"] = shir.Type - } - for k, v := range shir.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false } -// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { - return &shir, true +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false } -// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { +// AsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { - return &shir, true +// AsBasicLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &shls, true } -// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntime struct. -func (shir *SelfHostedIntegrationRuntime) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapHanaLinkedService struct. +func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -208743,12 +209984,12 @@ func (shir *SelfHostedIntegrationRuntime) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var selfHostedIntegrationRuntimeTypeProperties SelfHostedIntegrationRuntimeTypeProperties - err = json.Unmarshal(*v, &selfHostedIntegrationRuntimeTypeProperties) + var sapHanaLinkedServiceProperties SapHanaLinkedServiceProperties + err = json.Unmarshal(*v, &sapHanaLinkedServiceProperties) if err != nil { return err } - shir.SelfHostedIntegrationRuntimeTypeProperties = &selfHostedIntegrationRuntimeTypeProperties + shls.SapHanaLinkedServiceProperties = &sapHanaLinkedServiceProperties } default: if v != nil { @@ -208757,10 +209998,19 @@ func (shir *SelfHostedIntegrationRuntime) UnmarshalJSON(body []byte) error { if err != nil { return err } - if shir.AdditionalProperties == nil { - shir.AdditionalProperties = make(map[string]interface{}) + if shls.AdditionalProperties == nil { + shls.AdditionalProperties = make(map[string]interface{}) } - shir.AdditionalProperties[k] = additionalProperties + shls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + shls.ConnectVia = &connectVia } case "description": if v != nil { @@ -208769,16 +210019,34 @@ func (shir *SelfHostedIntegrationRuntime) UnmarshalJSON(body []byte) error { if err != nil { return err } - shir.Description = &description + shls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + shls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + shls.Annotations = &annotations } case "type": if v != nil { - var typeVar TypeBasicIntegrationRuntime + var typeVar TypeBasicLinkedService err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - shir.Type = typeVar + shls.Type = typeVar } } } @@ -208786,105 +210054,24 @@ func (shir *SelfHostedIntegrationRuntime) UnmarshalJSON(body []byte) error { return nil } -// SelfHostedIntegrationRuntimeNode properties of Self-hosted integration runtime node. -type SelfHostedIntegrationRuntimeNode struct { - autorest.Response `json:"-"` - // NodeName - READ-ONLY; Name of the integration runtime node. - NodeName *string `json:"nodeName,omitempty"` - // MachineName - READ-ONLY; Machine name of the integration runtime node. - MachineName *string `json:"machineName,omitempty"` - // HostServiceURI - READ-ONLY; URI for the host machine of the integration runtime. - HostServiceURI *string `json:"hostServiceUri,omitempty"` - // Status - READ-ONLY; Status of the integration runtime node. Possible values include: 'SelfHostedIntegrationRuntimeNodeStatusNeedRegistration', 'SelfHostedIntegrationRuntimeNodeStatusOnline', 'SelfHostedIntegrationRuntimeNodeStatusLimited', 'SelfHostedIntegrationRuntimeNodeStatusOffline', 'SelfHostedIntegrationRuntimeNodeStatusUpgrading', 'SelfHostedIntegrationRuntimeNodeStatusInitializing', 'SelfHostedIntegrationRuntimeNodeStatusInitializeFailed' - Status SelfHostedIntegrationRuntimeNodeStatus `json:"status,omitempty"` - // Capabilities - READ-ONLY; The integration runtime capabilities dictionary - Capabilities map[string]*string `json:"capabilities"` - // VersionStatus - READ-ONLY; Status of the integration runtime node version. - VersionStatus *string `json:"versionStatus,omitempty"` - // Version - READ-ONLY; Version of the integration runtime node. - Version *string `json:"version,omitempty"` - // RegisterTime - READ-ONLY; The time at which the integration runtime node was registered in ISO8601 format. - RegisterTime *date.Time `json:"registerTime,omitempty"` - // LastConnectTime - READ-ONLY; The most recent time at which the integration runtime was connected in ISO8601 format. - LastConnectTime *date.Time `json:"lastConnectTime,omitempty"` - // ExpiryTime - READ-ONLY; The time at which the integration runtime will expire in ISO8601 format. - ExpiryTime *date.Time `json:"expiryTime,omitempty"` - // LastStartTime - READ-ONLY; The time the node last started up. - LastStartTime *date.Time `json:"lastStartTime,omitempty"` - // LastStopTime - READ-ONLY; The integration runtime node last stop time. - LastStopTime *date.Time `json:"lastStopTime,omitempty"` - // LastUpdateResult - READ-ONLY; The result of the last integration runtime node update. Possible values include: 'IntegrationRuntimeUpdateResultNone', 'IntegrationRuntimeUpdateResultSucceed', 'IntegrationRuntimeUpdateResultFail' - LastUpdateResult IntegrationRuntimeUpdateResult `json:"lastUpdateResult,omitempty"` - // LastStartUpdateTime - READ-ONLY; The last time for the integration runtime node update start. - LastStartUpdateTime *date.Time `json:"lastStartUpdateTime,omitempty"` - // LastEndUpdateTime - READ-ONLY; The last time for the integration runtime node update end. - LastEndUpdateTime *date.Time `json:"lastEndUpdateTime,omitempty"` - // IsActiveDispatcher - READ-ONLY; Indicates whether this node is the active dispatcher for integration runtime requests. - IsActiveDispatcher *bool `json:"isActiveDispatcher,omitempty"` - // ConcurrentJobsLimit - READ-ONLY; Maximum concurrent jobs on the integration runtime node. - ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` - // MaxConcurrentJobs - READ-ONLY; The maximum concurrent jobs in this integration runtime. - MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty"` -} - -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeNode. -func (shirn SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// SelfHostedIntegrationRuntimeStatus self-hosted integration runtime status. -type SelfHostedIntegrationRuntimeStatus struct { - // SelfHostedIntegrationRuntimeStatusTypeProperties - Self-hosted integration runtime status type properties. - *SelfHostedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` - // State - READ-ONLY; The state of integration runtime. Possible values include: 'IntegrationRuntimeStateInitial', 'IntegrationRuntimeStateStopped', 'IntegrationRuntimeStateStarted', 'IntegrationRuntimeStateStarting', 'IntegrationRuntimeStateStopping', 'IntegrationRuntimeStateNeedRegistration', 'IntegrationRuntimeStateOnline', 'IntegrationRuntimeStateLimited', 'IntegrationRuntimeStateOffline', 'IntegrationRuntimeStateAccessDenied' - State IntegrationRuntimeState `json:"state,omitempty"` - // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' - Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - shirs.Type = TypeBasicIntegrationRuntimeStatusTypeSelfHosted - objectMap := make(map[string]interface{}) - if shirs.SelfHostedIntegrationRuntimeStatusTypeProperties != nil { - objectMap["typeProperties"] = shirs.SelfHostedIntegrationRuntimeStatusTypeProperties - } - if shirs.Type != "" { - objectMap["type"] = shirs.Type - } - for k, v := range shirs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { - return &shirs, true -} - -// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { - return nil, false -} - -// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { - return nil, false -} - -// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { - return &shirs, true +// SapHanaLinkedServiceProperties properties specific to this linked service type. +type SapHanaLinkedServiceProperties struct { + // ConnectionString - SAP HANA ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Server - Host name of the SAP HANA server. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // AuthenticationType - The authentication type to be used to connect to the SAP HANA server. Possible values include: 'SapHanaAuthenticationTypeBasic', 'SapHanaAuthenticationTypeWindows' + AuthenticationType SapHanaAuthenticationType `json:"authenticationType,omitempty"` + // UserName - Username to access the SAP HANA server. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to access the SAP HANA server. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntimeStatus struct. -func (shirs *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapHanaLinkedServiceProperties struct. +func (shlsp *SapHanaLinkedServiceProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -208892,129 +210079,58 @@ func (shirs *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) erro } for k, v := range m { switch k { - case "typeProperties": + case "connectionString": if v != nil { - var selfHostedIntegrationRuntimeStatusTypeProperties SelfHostedIntegrationRuntimeStatusTypeProperties - err = json.Unmarshal(*v, &selfHostedIntegrationRuntimeStatusTypeProperties) + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) if err != nil { return err } - shirs.SelfHostedIntegrationRuntimeStatusTypeProperties = &selfHostedIntegrationRuntimeStatusTypeProperties + shlsp.ConnectionString = connectionString } - default: + case "server": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var server interface{} + err = json.Unmarshal(*v, &server) if err != nil { return err } - if shirs.AdditionalProperties == nil { - shirs.AdditionalProperties = make(map[string]interface{}) - } - shirs.AdditionalProperties[k] = additionalProperties + shlsp.Server = server } - case "dataFactoryName": + case "authenticationType": if v != nil { - var dataFactoryName string - err = json.Unmarshal(*v, &dataFactoryName) + var authenticationType SapHanaAuthenticationType + err = json.Unmarshal(*v, &authenticationType) if err != nil { return err } - shirs.DataFactoryName = &dataFactoryName + shlsp.AuthenticationType = authenticationType } - case "state": + case "userName": if v != nil { - var state IntegrationRuntimeState - err = json.Unmarshal(*v, &state) + var userName interface{} + err = json.Unmarshal(*v, &userName) if err != nil { return err } - shirs.State = state + shlsp.UserName = userName } - case "type": + case "password": if v != nil { - var typeVar TypeBasicIntegrationRuntimeStatus - err = json.Unmarshal(*v, &typeVar) + password, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - shirs.Type = typeVar + shlsp.Password = password } - } - } - - return nil -} - -// SelfHostedIntegrationRuntimeStatusTypeProperties self-hosted integration runtime status type properties. -type SelfHostedIntegrationRuntimeStatusTypeProperties struct { - // CreateTime - READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. - CreateTime *date.Time `json:"createTime,omitempty"` - // TaskQueueID - READ-ONLY; The task queue id of the integration runtime. - TaskQueueID *string `json:"taskQueueId,omitempty"` - // InternalChannelEncryption - READ-ONLY; It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration runtime nodes exist). Possible values include: 'NotSet', 'SslEncrypted', 'NotEncrypted' - InternalChannelEncryption IntegrationRuntimeInternalChannelEncryptionMode `json:"internalChannelEncryption,omitempty"` - // Version - READ-ONLY; Version of the integration runtime. - Version *string `json:"version,omitempty"` - // Nodes - The list of nodes for this integration runtime. - Nodes *[]SelfHostedIntegrationRuntimeNode `json:"nodes,omitempty"` - // ScheduledUpdateDate - READ-ONLY; The date at which the integration runtime will be scheduled to update, in ISO8601 format. - ScheduledUpdateDate *date.Time `json:"scheduledUpdateDate,omitempty"` - // UpdateDelayOffset - READ-ONLY; The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours - UpdateDelayOffset *string `json:"updateDelayOffset,omitempty"` - // LocalTimeZoneOffset - READ-ONLY; The local time zone offset in hours. - LocalTimeZoneOffset *string `json:"localTimeZoneOffset,omitempty"` - // Capabilities - READ-ONLY; Object with additional information about integration runtime capabilities. - Capabilities map[string]*string `json:"capabilities"` - // ServiceUrls - READ-ONLY; The URLs for the services used in integration runtime backend service. - ServiceUrls *[]string `json:"serviceUrls,omitempty"` - // AutoUpdate - READ-ONLY; Whether Self-hosted integration runtime auto update has been turned on. Possible values include: 'On', 'Off' - AutoUpdate IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty"` - // VersionStatus - READ-ONLY; Status of the integration runtime version. - VersionStatus *string `json:"versionStatus,omitempty"` - // Links - The list of linked integration runtimes that are created to share with this integration runtime. - Links *[]LinkedIntegrationRuntime `json:"links,omitempty"` - // PushedVersion - READ-ONLY; The version that the integration runtime is going to update to. - PushedVersion *string `json:"pushedVersion,omitempty"` - // LatestVersion - READ-ONLY; The latest version on download center. - LatestVersion *string `json:"latestVersion,omitempty"` - // AutoUpdateETA - READ-ONLY; The estimated time when the self-hosted integration runtime will be updated. - AutoUpdateETA *date.Time `json:"autoUpdateETA,omitempty"` -} - -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatusTypeProperties. -func (shirstp SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if shirstp.Nodes != nil { - objectMap["nodes"] = shirstp.Nodes - } - if shirstp.Links != nil { - objectMap["links"] = shirstp.Links - } - return json.Marshal(objectMap) -} - -// SelfHostedIntegrationRuntimeTypeProperties the self-hosted integration runtime properties. -type SelfHostedIntegrationRuntimeTypeProperties struct { - LinkedInfo BasicLinkedIntegrationRuntimeType `json:"linkedInfo,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntimeTypeProperties struct. -func (shirtp *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "linkedInfo": + case "encryptedCredential": if v != nil { - linkedInfo, err := unmarshalBasicLinkedIntegrationRuntimeType(*v) + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) if err != nil { return err } - shirtp.LinkedInfo = linkedInfo + shlsp.EncryptedCredential = encryptedCredential } } } @@ -209022,564 +210138,560 @@ func (shirtp *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(body []b return nil } -// ServiceNowLinkedService serviceNow server linked service. -type ServiceNowLinkedService struct { - // ServiceNowLinkedServiceTypeProperties - ServiceNow server linked service properties. - *ServiceNowLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SapHanaPartitionSettings the settings that will be leveraged for SAP HANA source partitioning. +type SapHanaPartitionSettings struct { + // PartitionColumnName - The name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` +} + +// SapHanaSource a copy activity source for SAP HANA source. +type SapHanaSource struct { + // Query - SAP HANA Sql query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // PacketSize - The packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). + PacketSize interface{} `json:"packetSize,omitempty"` + // PartitionOption - The partition mechanism that will be used for SAP HANA read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for SAP HANA source partitioning. + PartitionSettings *SapHanaPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) MarshalJSON() ([]byte, error) { - snls.Type = TypeServiceNow +// MarshalJSON is the custom marshaler for SapHanaSource. +func (shs SapHanaSource) MarshalJSON() ([]byte, error) { + shs.Type = TypeSapHanaSource objectMap := make(map[string]interface{}) - if snls.ServiceNowLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = snls.ServiceNowLinkedServiceTypeProperties + if shs.Query != nil { + objectMap["query"] = shs.Query } - if snls.ConnectVia != nil { - objectMap["connectVia"] = snls.ConnectVia + if shs.PacketSize != nil { + objectMap["packetSize"] = shs.PacketSize } - if snls.Description != nil { - objectMap["description"] = snls.Description + if shs.PartitionOption != nil { + objectMap["partitionOption"] = shs.PartitionOption } - if snls.Parameters != nil { - objectMap["parameters"] = snls.Parameters + if shs.PartitionSettings != nil { + objectMap["partitionSettings"] = shs.PartitionSettings } - if snls.Annotations != nil { - objectMap["annotations"] = snls.Annotations + if shs.QueryTimeout != nil { + objectMap["queryTimeout"] = shs.QueryTimeout } - if snls.Type != "" { - objectMap["type"] = snls.Type + if shs.AdditionalColumns != nil { + objectMap["additionalColumns"] = shs.AdditionalColumns } - for k, v := range snls.AdditionalProperties { + if shs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = shs.SourceRetryCount + } + if shs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = shs.SourceRetryWait + } + if shs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = shs.MaxConcurrentConnections + } + if shs.Type != "" { + objectMap["type"] = shs.Type + } + for k, v := range shs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return &snls, true -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsRestSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsVerticaSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsZohoSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsXeroSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSquareSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSparkSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsShopifySource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsPrestoSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsPaypalSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsMarketoSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsMagentoSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsJiraSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsImpalaSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsHubspotSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsHiveSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsHBaseSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsEloquaSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsDrillSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsConcurSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsCassandraSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsTeradataSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsSQLMISource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsSQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSapTableSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false +// AsSapHanaSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapHanaSource() (*SapHanaSource, bool) { + return &shs, true } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsSapEccSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSapBwSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsSybaseSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsMySQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsOdbcSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsDb2Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsInformixSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsTabularSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &shs, true } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsBinarySource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsOrcSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsXMLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsJSONSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsParquetSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsExcelSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAvroSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsCopySource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &snls, true +// AsBasicCopySource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsBasicCopySource() (BasicCopySource, bool) { + return &shs, true } -// UnmarshalJSON is the custom unmarshaler for ServiceNowLinkedService struct. -func (snls *ServiceNowLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapHanaSource struct. +func (shs *SapHanaSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -209587,198 +210699,107 @@ func (snls *ServiceNowLinkedService) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var serviceNowLinkedServiceTypeProperties ServiceNowLinkedServiceTypeProperties - err = json.Unmarshal(*v, &serviceNowLinkedServiceTypeProperties) - if err != nil { - return err - } - snls.ServiceNowLinkedServiceTypeProperties = &serviceNowLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if snls.AdditionalProperties == nil { - snls.AdditionalProperties = make(map[string]interface{}) - } - snls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - snls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - snls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - snls.Parameters = parameters - } - case "annotations": + case "query": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - snls.Annotations = &annotations + shs.Query = query } - case "type": + case "packetSize": if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) + var packetSize interface{} + err = json.Unmarshal(*v, &packetSize) if err != nil { return err } - snls.Type = typeVar + shs.PacketSize = packetSize } - } - } - - return nil -} - -// ServiceNowLinkedServiceTypeProperties serviceNow server linked service properties. -type ServiceNowLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the ServiceNow server. (i.e. .service-now.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // AuthenticationType - The authentication type to use. Possible values include: 'ServiceNowAuthenticationTypeBasic', 'ServiceNowAuthenticationTypeOAuth2' - AuthenticationType ServiceNowAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to connect to the ServiceNow server for Basic and OAuth2 authentication. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name for Basic and OAuth2 authentication. - Password BasicSecretBase `json:"password,omitempty"` - // ClientID - The client id for OAuth2 authentication. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret for OAuth2 authentication. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ServiceNowLinkedServiceTypeProperties struct. -func (snlstp *ServiceNowLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": + case "partitionOption": if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) if err != nil { return err } - snlstp.Endpoint = endpoint + shs.PartitionOption = partitionOption } - case "authenticationType": + case "partitionSettings": if v != nil { - var authenticationType ServiceNowAuthenticationType - err = json.Unmarshal(*v, &authenticationType) + var partitionSettings SapHanaPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) if err != nil { return err } - snlstp.AuthenticationType = authenticationType + shs.PartitionSettings = &partitionSettings } - case "username": + case "queryTimeout": if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - snlstp.Username = username + shs.QueryTimeout = queryTimeout } - case "password": + case "additionalColumns": if v != nil { - password, err := unmarshalBasicSecretBase(*v) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - snlstp.Password = password + shs.AdditionalColumns = &additionalColumns } - case "clientId": + default: if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - snlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err + if shs.AdditionalProperties == nil { + shs.AdditionalProperties = make(map[string]interface{}) } - snlstp.ClientSecret = clientSecret + shs.AdditionalProperties[k] = additionalProperties } - case "useEncryptedEndpoints": + case "sourceRetryCount": if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - snlstp.UseEncryptedEndpoints = useEncryptedEndpoints + shs.SourceRetryCount = sourceRetryCount } - case "useHostVerification": + case "sourceRetryWait": if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - snlstp.UseHostVerification = useHostVerification + shs.SourceRetryWait = sourceRetryWait } - case "usePeerVerification": + case "maxConcurrentConnections": if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - snlstp.UsePeerVerification = usePeerVerification + shs.MaxConcurrentConnections = maxConcurrentConnections } - case "encryptedCredential": + case "type": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - snlstp.EncryptedCredential = encryptedCredential + shs.Type = typeVar } } } @@ -209786,10 +210807,10 @@ func (snlstp *ServiceNowLinkedServiceTypeProperties) UnmarshalJSON(body []byte) return nil } -// ServiceNowObjectDataset serviceNow server dataset. -type ServiceNowObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` +// SapHanaTableDataset SAP HANA Table properties. +type SapHanaTableDataset struct { + // SapHanaTableDatasetTypeProperties - SAP HANA Table properties. + *SapHanaTableDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -209810,520 +210831,520 @@ type ServiceNowObjectDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) MarshalJSON() ([]byte, error) { - snod.Type = TypeServiceNowObject +// MarshalJSON is the custom marshaler for SapHanaTableDataset. +func (shtd SapHanaTableDataset) MarshalJSON() ([]byte, error) { + shtd.Type = TypeSapHanaTable objectMap := make(map[string]interface{}) - if snod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = snod.GenericDatasetTypeProperties + if shtd.SapHanaTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = shtd.SapHanaTableDatasetTypeProperties } - if snod.Description != nil { - objectMap["description"] = snod.Description + if shtd.Description != nil { + objectMap["description"] = shtd.Description } - if snod.Structure != nil { - objectMap["structure"] = snod.Structure + if shtd.Structure != nil { + objectMap["structure"] = shtd.Structure } - if snod.Schema != nil { - objectMap["schema"] = snod.Schema + if shtd.Schema != nil { + objectMap["schema"] = shtd.Schema } - if snod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = snod.LinkedServiceName + if shtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = shtd.LinkedServiceName } - if snod.Parameters != nil { - objectMap["parameters"] = snod.Parameters + if shtd.Parameters != nil { + objectMap["parameters"] = shtd.Parameters } - if snod.Annotations != nil { - objectMap["annotations"] = snod.Annotations + if shtd.Annotations != nil { + objectMap["annotations"] = shtd.Annotations } - if snod.Folder != nil { - objectMap["folder"] = snod.Folder + if shtd.Folder != nil { + objectMap["folder"] = shtd.Folder } - if snod.Type != "" { - objectMap["type"] = snod.Type + if shtd.Type != "" { + objectMap["type"] = shtd.Type } - for k, v := range snod.AdditionalProperties { + for k, v := range shtd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return &snod, true +// AsServiceNowObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false +// AsSapHanaTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return &shtd, true } -// AsSapEccResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &snod, true +// AsBasicDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &shtd, true } -// UnmarshalJSON is the custom unmarshaler for ServiceNowObjectDataset struct. -func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapHanaTableDataset struct. +func (shtd *SapHanaTableDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -210333,12 +211354,12 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) + var sapHanaTableDatasetTypeProperties SapHanaTableDatasetTypeProperties + err = json.Unmarshal(*v, &sapHanaTableDatasetTypeProperties) if err != nil { return err } - snod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + shtd.SapHanaTableDatasetTypeProperties = &sapHanaTableDatasetTypeProperties } default: if v != nil { @@ -210347,10 +211368,10 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if snod.AdditionalProperties == nil { - snod.AdditionalProperties = make(map[string]interface{}) + if shtd.AdditionalProperties == nil { + shtd.AdditionalProperties = make(map[string]interface{}) } - snod.AdditionalProperties[k] = additionalProperties + shtd.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -210359,7 +211380,7 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - snod.Description = &description + shtd.Description = &description } case "structure": if v != nil { @@ -210368,7 +211389,7 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - snod.Structure = structure + shtd.Structure = structure } case "schema": if v != nil { @@ -210377,7 +211398,7 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - snod.Schema = schema + shtd.Schema = schema } case "linkedServiceName": if v != nil { @@ -210386,7 +211407,7 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - snod.LinkedServiceName = &linkedServiceName + shtd.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -210395,7 +211416,7 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - snod.Parameters = parameters + shtd.Parameters = parameters } case "annotations": if v != nil { @@ -210404,7 +211425,7 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - snod.Annotations = &annotations + shtd.Annotations = &annotations } case "folder": if v != nil { @@ -210413,7 +211434,7 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - snod.Folder = &folder + shtd.Folder = &folder } case "type": if v != nil { @@ -210422,7 +211443,7 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - snod.Type = typeVar + shtd.Type = typeVar } } } @@ -210430,1270 +211451,1339 @@ func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { return nil } -// ServiceNowSource a copy activity ServiceNow server source. -type ServiceNowSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// SapHanaTableDatasetTypeProperties SAP HANA Table properties. +type SapHanaTableDatasetTypeProperties struct { + // Schema - The schema name of SAP HANA. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of SAP HANA. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// SapOpenHubLinkedService SAP Business Warehouse Open Hub Destination Linked Service. +type SapOpenHubLinkedService struct { + // SapOpenHubLinkedServiceTypeProperties - Properties specific to SAP Business Warehouse Open Hub Destination linked service type. + *SapOpenHubLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for ServiceNowSource. -func (sns ServiceNowSource) MarshalJSON() ([]byte, error) { - sns.Type = TypeServiceNowSource +// MarshalJSON is the custom marshaler for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) MarshalJSON() ([]byte, error) { + sohls.Type = TypeSapOpenHub objectMap := make(map[string]interface{}) - if sns.Query != nil { - objectMap["query"] = sns.Query - } - if sns.QueryTimeout != nil { - objectMap["queryTimeout"] = sns.QueryTimeout + if sohls.SapOpenHubLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sohls.SapOpenHubLinkedServiceTypeProperties } - if sns.AdditionalColumns != nil { - objectMap["additionalColumns"] = sns.AdditionalColumns + if sohls.ConnectVia != nil { + objectMap["connectVia"] = sohls.ConnectVia } - if sns.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sns.SourceRetryCount + if sohls.Description != nil { + objectMap["description"] = sohls.Description } - if sns.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sns.SourceRetryWait + if sohls.Parameters != nil { + objectMap["parameters"] = sohls.Parameters } - if sns.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sns.MaxConcurrentConnections + if sohls.Annotations != nil { + objectMap["annotations"] = sohls.Annotations } - if sns.Type != "" { - objectMap["type"] = sns.Type + if sohls.Type != "" { + objectMap["type"] = sohls.Type } - for k, v := range sns.AdditionalProperties { + for k, v := range sohls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHTTPSource() (*HTTPSource, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOffice365Source() (*Office365Source, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsWebSource() (*WebSource, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOracleSource() (*OracleSource, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHdfsSource() (*HdfsSource, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsRestSource() (*RestSource, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsODataSource() (*ODataSource, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsRelationalSource() (*RelationalSource, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsBlobSource() (*BlobSource, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsVerticaSource() (*VerticaSource, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsZohoSource() (*ZohoSource, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsXeroSource() (*XeroSource, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSquareSource() (*SquareSource, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSparkSource() (*SparkSource, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsShopifySource() (*ShopifySource, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return &sns, true +// AsConcurLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPrestoSource() (*PrestoSource, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMagentoSource() (*MagentoSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsJiraSource() (*JiraSource, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHubspotSource() (*HubspotSource, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHiveSource() (*HiveSource, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHBaseSource() (*HBaseSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return &sohls, true +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsEloquaSource() (*EloquaSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDrillSource() (*DrillSource, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsConcurSource() (*ConcurSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCassandraSource() (*CassandraSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsTeradataSource() (*TeradataSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSQLMISource() (*SQLMISource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSQLSource() (*SQLSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapTableSource() (*SapTableSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapEccSource() (*SapEccSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapBwSource() (*SapBwSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSybaseSource() (*SybaseSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sohls, true +} + +// UnmarshalJSON is the custom unmarshaler for SapOpenHubLinkedService struct. +func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapOpenHubLinkedServiceTypeProperties SapOpenHubLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapOpenHubLinkedServiceTypeProperties) + if err != nil { + return err + } + sohls.SapOpenHubLinkedServiceTypeProperties = &sapOpenHubLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sohls.AdditionalProperties == nil { + sohls.AdditionalProperties = make(map[string]interface{}) + } + sohls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sohls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sohls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sohls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sohls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sohls.Type = typeVar + } + } + } + + return nil +} + +// SapOpenHubLinkedServiceTypeProperties properties specific to SAP Business Warehouse Open Hub Destination +// linked service type. +type SapOpenHubLinkedServiceTypeProperties struct { + // Server - Host name of the SAP BW instance where the open hub destination is located. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // SystemNumber - 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). + SystemNumber interface{} `json:"systemNumber,omitempty"` + // ClientID - 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). + ClientID interface{} `json:"clientId,omitempty"` + // Language - Language of the BW system where the open hub destination is located. The default value is EN. Type: string (or Expression with resultType string). + Language interface{} `json:"language,omitempty"` + // SystemID - SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). + SystemID interface{} `json:"systemId,omitempty"` + // UserName - Username to access the SAP BW server where the open hub destination is located. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to access the SAP BW server where the open hub destination is located. + Password BasicSecretBase `json:"password,omitempty"` + // MessageServer - The hostname of the SAP Message Server. Type: string (or Expression with resultType string). + MessageServer interface{} `json:"messageServer,omitempty"` + // MessageServerService - The service name or port number of the Message Server. Type: string (or Expression with resultType string). + MessageServerService interface{} `json:"messageServerService,omitempty"` + // LogonGroup - The Logon Group for the SAP System. Type: string (or Expression with resultType string). + LogonGroup interface{} `json:"logonGroup,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SapOpenHubLinkedServiceTypeProperties struct. +func (sohlstp *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + sohlstp.Server = server + } + case "systemNumber": + if v != nil { + var systemNumber interface{} + err = json.Unmarshal(*v, &systemNumber) + if err != nil { + return err + } + sohlstp.SystemNumber = systemNumber + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + sohlstp.ClientID = clientID + } + case "language": + if v != nil { + var language interface{} + err = json.Unmarshal(*v, &language) + if err != nil { + return err + } + sohlstp.Language = language + } + case "systemId": + if v != nil { + var systemID interface{} + err = json.Unmarshal(*v, &systemID) + if err != nil { + return err + } + sohlstp.SystemID = systemID + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + sohlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sohlstp.Password = password + } + case "messageServer": + if v != nil { + var messageServer interface{} + err = json.Unmarshal(*v, &messageServer) + if err != nil { + return err + } + sohlstp.MessageServer = messageServer + } + case "messageServerService": + if v != nil { + var messageServerService interface{} + err = json.Unmarshal(*v, &messageServerService) + if err != nil { + return err + } + sohlstp.MessageServerService = messageServerService + } + case "logonGroup": + if v != nil { + var logonGroup interface{} + err = json.Unmarshal(*v, &logonGroup) + if err != nil { + return err + } + sohlstp.LogonGroup = logonGroup + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + sohlstp.EncryptedCredential = encryptedCredential + } + } + } + + return nil +} + +// SapOpenHubSource a copy activity source for SAP Business Warehouse Open Hub Destination source. +type SapOpenHubSource struct { + // ExcludeLastRequest - Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType boolean). + ExcludeLastRequest interface{} `json:"excludeLastRequest,omitempty"` + // BaseRequestID - 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 ). + BaseRequestID interface{} `json:"baseRequestId,omitempty"` + // CustomRfcReadTableFunctionModule - Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with resultType string). + CustomRfcReadTableFunctionModule interface{} `json:"customRfcReadTableFunctionModule,omitempty"` + // SapDataColumnDelimiter - The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with resultType string). + SapDataColumnDelimiter interface{} `json:"sapDataColumnDelimiter,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapOpenHubSource. +func (sohs SapOpenHubSource) MarshalJSON() ([]byte, error) { + sohs.Type = TypeSapOpenHubSource + objectMap := make(map[string]interface{}) + if sohs.ExcludeLastRequest != nil { + objectMap["excludeLastRequest"] = sohs.ExcludeLastRequest + } + if sohs.BaseRequestID != nil { + objectMap["baseRequestId"] = sohs.BaseRequestID + } + if sohs.CustomRfcReadTableFunctionModule != nil { + objectMap["customRfcReadTableFunctionModule"] = sohs.CustomRfcReadTableFunctionModule + } + if sohs.SapDataColumnDelimiter != nil { + objectMap["sapDataColumnDelimiter"] = sohs.SapDataColumnDelimiter + } + if sohs.QueryTimeout != nil { + objectMap["queryTimeout"] = sohs.QueryTimeout + } + if sohs.AdditionalColumns != nil { + objectMap["additionalColumns"] = sohs.AdditionalColumns + } + if sohs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sohs.SourceRetryCount + } + if sohs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sohs.SourceRetryWait + } + if sohs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sohs.MaxConcurrentConnections + } + if sohs.Type != "" { + objectMap["type"] = sohs.Type + } + for k, v := range sohs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMySQLSource() (*MySQLSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOdbcSource() (*OdbcSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDb2Source() (*Db2Source, bool) { +// AsHTTPSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsInformixSource() (*InformixSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsTabularSource() (*TabularSource, bool) { +// AsOffice365Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sns, true -} - -// AsBinarySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsBinarySource() (*BinarySource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOrcSource() (*OrcSource, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsXMLSource() (*XMLSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsJSONSource() (*JSONSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsWebSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsParquetSource() (*ParquetSource, bool) { +// AsOracleSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAvroSource() (*AvroSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCopySource() (*CopySource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sns, true -} - -// UnmarshalJSON is the custom unmarshaler for ServiceNowSource struct. -func (sns *ServiceNowSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - sns.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - sns.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sns.AdditionalColumns = &additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sns.AdditionalProperties == nil { - sns.AdditionalProperties = make(map[string]interface{}) - } - sns.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sns.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sns.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sns.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sns.Type = typeVar - } - } - } - - return nil +// AsRestSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsRestSource() (*RestSource, bool) { + return nil, false } -// SetVariableActivity set value for a Variable. -type SetVariableActivity struct { - // SetVariableActivityTypeProperties - Set Variable activity properties. - *SetVariableActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for SetVariableActivity. -func (sva SetVariableActivity) MarshalJSON() ([]byte, error) { - sva.Type = TypeSetVariable - objectMap := make(map[string]interface{}) - if sva.SetVariableActivityTypeProperties != nil { - objectMap["typeProperties"] = sva.SetVariableActivityTypeProperties - } - if sva.Name != nil { - objectMap["name"] = sva.Name - } - if sva.Description != nil { - objectMap["description"] = sva.Description - } - if sva.DependsOn != nil { - objectMap["dependsOn"] = sva.DependsOn - } - if sva.UserProperties != nil { - objectMap["userProperties"] = sva.UserProperties - } - if sva.Type != "" { - objectMap["type"] = sva.Type - } - for k, v := range sva.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsODataSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsODataSource() (*ODataSource, bool) { + return nil, false } -// AsExecuteDataFlowActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsAzureFunctionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { +// AsRelationalSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDatabricksSparkJarActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDatabricksNotebookActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { +// AsBlobSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGetMetadataActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsWebActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsWebActivity() (*WebActivity, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsLookupActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsLookupActivity() (*LookupActivity, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { +// AsResponsysSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsDeleteActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsDeleteActivity() (*DeleteActivity, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { +// AsVerticaSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCustomActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsCustomActivity() (*CustomActivity, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsExecuteSSISPackageActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { +// AsZohoSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsHDInsightSparkActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { +// AsXeroSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsHDInsightStreamingActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { +// AsSquareSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsHDInsightMapReduceActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { +// AsSparkSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsHDInsightPigActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { +// AsShopifySource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsHDInsightHiveActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsCopyActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsCopyActivity() (*CopyActivity, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsExecutionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsExecutionActivity() (*ExecutionActivity, bool) { +// AsPrestoSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsBasicExecutionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsWebHookActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsWebHookActivity() (*WebHookActivity, bool) { +// AsPaypalSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsAppendVariableActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { +// AsMarketoSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSetVariableActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return &sva, true +// AsAzureMariaDBSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false } -// AsFilterActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsFilterActivity() (*FilterActivity, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsValidationActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsValidationActivity() (*ValidationActivity, bool) { +// AsMagentoSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsUntilActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsUntilActivity() (*UntilActivity, bool) { +// AsJiraSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsWaitActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsWaitActivity() (*WaitActivity, bool) { +// AsImpalaSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsForEachActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsForEachActivity() (*ForEachActivity, bool) { +// AsHubspotSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsSwitchActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsSwitchActivity() (*SwitchActivity, bool) { +// AsHiveSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsIfConditionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { +// AsHBaseSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsExecutePipelineActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsControlActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsControlActivity() (*ControlActivity, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsBasicControlActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &sva, true +// AsEloquaSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false } -// AsActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsActivity() (*Activity, bool) { +// AsDrillSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsBasicActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsBasicActivity() (BasicActivity, bool) { - return &sva, true +// AsCouchbaseSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SetVariableActivity struct. -func (sva *SetVariableActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var setVariableActivityTypeProperties SetVariableActivityTypeProperties - err = json.Unmarshal(*v, &setVariableActivityTypeProperties) - if err != nil { - return err - } - sva.SetVariableActivityTypeProperties = &setVariableActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sva.AdditionalProperties == nil { - sva.AdditionalProperties = make(map[string]interface{}) - } - sva.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - sva.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sva.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - sva.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - sva.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sva.Type = typeVar - } - } - } - - return nil +// AsConcurSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false } -// SetVariableActivityTypeProperties setVariable activity properties. -type SetVariableActivityTypeProperties struct { - // VariableName - Name of the variable whose value needs to be set. - VariableName *string `json:"variableName,omitempty"` - // Value - Value to be set. Could be a static value or Expression - Value interface{} `json:"value,omitempty"` +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false } -// SftpLocation the location of SFTP dataset. -type SftpLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` +// AsAmazonMWSSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for SftpLocation. -func (sl SftpLocation) MarshalJSON() ([]byte, error) { - sl.Type = TypeSftpLocation - objectMap := make(map[string]interface{}) - if sl.FolderPath != nil { - objectMap["folderPath"] = sl.FolderPath - } - if sl.FileName != nil { - objectMap["fileName"] = sl.FileName - } - if sl.Type != "" { - objectMap["type"] = sl.Type - } - for k, v := range sl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsCassandraSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false } -// AsHdfsLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsHdfsLocation() (*HdfsLocation, bool) { +// AsTeradataSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsHTTPServerLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSftpLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsSftpLocation() (*SftpLocation, bool) { - return &sl, true +// AsSQLDWSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false } -// AsFtpServerLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { +// AsSQLMISource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { +// AsSQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { +// AsSapTableSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsFileServerLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false +// AsSapOpenHubSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return &sohs, true } -// AsAmazonS3Location is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { +// AsSapEccSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsDatasetLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsDatasetLocation() (*DatasetLocation, bool) { +// AsSapBwSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &sl, true +// AsSybaseSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SftpLocation struct. -func (sl *SftpLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sl.AdditionalProperties == nil { - sl.AdditionalProperties = make(map[string]interface{}) - } - sl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - sl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - sl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sl.Type = typeVar - } - } - } - - return nil +// AsPostgreSQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false } -// SftpReadSettings sftp read settings. -type SftpReadSettings struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // WildcardFolderPath - Sftp wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Sftp wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` - // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` +// AsMySQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for SftpReadSettings. -func (srs SftpReadSettings) MarshalJSON() ([]byte, error) { - srs.Type = TypeSftpReadSettings - objectMap := make(map[string]interface{}) - if srs.Recursive != nil { - objectMap["recursive"] = srs.Recursive - } - if srs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = srs.WildcardFolderPath - } - if srs.WildcardFileName != nil { - objectMap["wildcardFileName"] = srs.WildcardFileName - } - if srs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = srs.EnablePartitionDiscovery - } - if srs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = srs.PartitionRootPath - } - if srs.FileListPath != nil { - objectMap["fileListPath"] = srs.FileListPath - } - if srs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = srs.DeleteFilesAfterCompletion - } - if srs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = srs.ModifiedDatetimeStart - } - if srs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = srs.ModifiedDatetimeEnd - } - if srs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = srs.MaxConcurrentConnections - } - if srs.Type != "" { - objectMap["type"] = srs.Type - } - for k, v := range srs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsOdbcSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false } -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { +// AsDb2Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { +// AsInformixSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsSftpReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return &srs, true +// AsAzureTableSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false } -// AsFtpReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { +// AsTabularSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sohs, true } -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { +// AsBinarySource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { +// AsOrcSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { +// AsXMLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { +// AsJSONSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { +// AsParquetSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { +// AsExcelSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { +// AsAvroSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { +// AsCopySource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &srs, true +// AsBasicCopySource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sohs, true } -// UnmarshalJSON is the custom unmarshaler for SftpReadSettings struct. -func (srs *SftpReadSettings) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapOpenHubSource struct. +func (sohs *SapOpenHubSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -211701,98 +212791,89 @@ func (srs *SftpReadSettings) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "recursive": + case "excludeLastRequest": if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) + var excludeLastRequest interface{} + err = json.Unmarshal(*v, &excludeLastRequest) if err != nil { return err } - srs.Recursive = recursive + sohs.ExcludeLastRequest = excludeLastRequest } - case "wildcardFolderPath": + case "baseRequestId": if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) + var baseRequestID interface{} + err = json.Unmarshal(*v, &baseRequestID) if err != nil { return err } - srs.WildcardFolderPath = wildcardFolderPath + sohs.BaseRequestID = baseRequestID } - case "wildcardFileName": + case "customRfcReadTableFunctionModule": if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) + var customRfcReadTableFunctionModule interface{} + err = json.Unmarshal(*v, &customRfcReadTableFunctionModule) if err != nil { return err } - srs.WildcardFileName = wildcardFileName + sohs.CustomRfcReadTableFunctionModule = customRfcReadTableFunctionModule } - case "enablePartitionDiscovery": + case "sapDataColumnDelimiter": if v != nil { - var enablePartitionDiscovery bool - err = json.Unmarshal(*v, &enablePartitionDiscovery) + var sapDataColumnDelimiter interface{} + err = json.Unmarshal(*v, &sapDataColumnDelimiter) if err != nil { return err } - srs.EnablePartitionDiscovery = &enablePartitionDiscovery + sohs.SapDataColumnDelimiter = sapDataColumnDelimiter } - case "partitionRootPath": + case "queryTimeout": if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - srs.PartitionRootPath = partitionRootPath + sohs.QueryTimeout = queryTimeout } - case "fileListPath": + case "additionalColumns": if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - srs.FileListPath = fileListPath + sohs.AdditionalColumns = &additionalColumns } - case "deleteFilesAfterCompletion": + default: if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - srs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err + if sohs.AdditionalProperties == nil { + sohs.AdditionalProperties = make(map[string]interface{}) } - srs.ModifiedDatetimeStart = modifiedDatetimeStart + sohs.AdditionalProperties[k] = additionalProperties } - case "modifiedDatetimeEnd": + case "sourceRetryCount": if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - srs.ModifiedDatetimeEnd = modifiedDatetimeEnd + sohs.SourceRetryCount = sourceRetryCount } - default: + case "sourceRetryWait": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - if srs.AdditionalProperties == nil { - srs.AdditionalProperties = make(map[string]interface{}) - } - srs.AdditionalProperties[k] = additionalProperties + sohs.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -211801,16 +212882,16 @@ func (srs *SftpReadSettings) UnmarshalJSON(body []byte) error { if err != nil { return err } - srs.MaxConcurrentConnections = maxConcurrentConnections + sohs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicStoreReadSettings + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - srs.Type = typeVar + sohs.Type = typeVar } } } @@ -211818,564 +212899,544 @@ func (srs *SftpReadSettings) UnmarshalJSON(body []byte) error { return nil } -// SftpServerLinkedService a linked service for an SSH File Transfer Protocol (SFTP) server. -type SftpServerLinkedService struct { - // SftpServerLinkedServiceTypeProperties - Properties specific to this linked service type. - *SftpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SapOpenHubTableDataset sap Business Warehouse Open Hub Destination Table properties. +type SapOpenHubTableDataset struct { + // SapOpenHubTableDatasetTypeProperties - Sap Business Warehouse Open Hub Destination Table properties. + *SapOpenHubTableDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. + // Description - Dataset description. Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. + // Annotations - List of tags that can be used for describing the Dataset. Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SftpServerLinkedService. -func (ssls SftpServerLinkedService) MarshalJSON() ([]byte, error) { - ssls.Type = TypeSftp +// MarshalJSON is the custom marshaler for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) MarshalJSON() ([]byte, error) { + sohtd.Type = TypeSapOpenHubTable objectMap := make(map[string]interface{}) - if ssls.SftpServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ssls.SftpServerLinkedServiceTypeProperties + if sohtd.SapOpenHubTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = sohtd.SapOpenHubTableDatasetTypeProperties } - if ssls.ConnectVia != nil { - objectMap["connectVia"] = ssls.ConnectVia + if sohtd.Description != nil { + objectMap["description"] = sohtd.Description } - if ssls.Description != nil { - objectMap["description"] = ssls.Description + if sohtd.Structure != nil { + objectMap["structure"] = sohtd.Structure } - if ssls.Parameters != nil { - objectMap["parameters"] = ssls.Parameters + if sohtd.Schema != nil { + objectMap["schema"] = sohtd.Schema } - if ssls.Annotations != nil { - objectMap["annotations"] = ssls.Annotations + if sohtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sohtd.LinkedServiceName } - if ssls.Type != "" { - objectMap["type"] = ssls.Type + if sohtd.Parameters != nil { + objectMap["parameters"] = sohtd.Parameters } - for k, v := range ssls.AdditionalProperties { + if sohtd.Annotations != nil { + objectMap["annotations"] = sohtd.Annotations + } + if sohtd.Folder != nil { + objectMap["folder"] = sohtd.Folder + } + if sohtd.Type != "" { + objectMap["type"] = sohtd.Type + } + for k, v := range sohtd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return &ssls, true +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsHTTPDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsWebTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return &sohtd, true +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsFileShareDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCustomDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBinaryDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsOrcDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsXMLDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsJSONDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsParquetDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsExcelDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAvroDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ssls, true +// AsBasicDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &sohtd, true } -// UnmarshalJSON is the custom unmarshaler for SftpServerLinkedService struct. -func (ssls *SftpServerLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapOpenHubTableDataset struct. +func (sohtd *SapOpenHubTableDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -212385,12 +213446,12 @@ func (ssls *SftpServerLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var sftpServerLinkedServiceTypeProperties SftpServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sftpServerLinkedServiceTypeProperties) + var sapOpenHubTableDatasetTypeProperties SapOpenHubTableDatasetTypeProperties + err = json.Unmarshal(*v, &sapOpenHubTableDatasetTypeProperties) if err != nil { return err } - ssls.SftpServerLinkedServiceTypeProperties = &sftpServerLinkedServiceTypeProperties + sohtd.SapOpenHubTableDatasetTypeProperties = &sapOpenHubTableDatasetTypeProperties } default: if v != nil { @@ -212399,19 +213460,10 @@ func (ssls *SftpServerLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if ssls.AdditionalProperties == nil { - ssls.AdditionalProperties = make(map[string]interface{}) - } - ssls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err + if sohtd.AdditionalProperties == nil { + sohtd.AdditionalProperties = make(map[string]interface{}) } - ssls.ConnectVia = &connectVia + sohtd.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -212420,324 +213472,70 @@ func (ssls *SftpServerLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - ssls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ssls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ssls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ssls.Type = typeVar - } - } - } - - return nil -} - -// SftpServerLinkedServiceTypeProperties properties specific to this linked service type. -type SftpServerLinkedServiceTypeProperties struct { - // Host - The SFTP server host name. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // Port - 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. - Port interface{} `json:"port,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the FTP server. Possible values include: 'SftpAuthenticationTypeBasic', 'SftpAuthenticationTypeSSHPublicKey', 'SftpAuthenticationTypeMultiFactor' - AuthenticationType SftpAuthenticationType `json:"authenticationType,omitempty"` - // UserName - The username used to log on to the SFTP server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to logon the SFTP server for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - // PrivateKeyPath - 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). - PrivateKeyPath interface{} `json:"privateKeyPath,omitempty"` - // PrivateKeyContent - 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. - PrivateKeyContent BasicSecretBase `json:"privateKeyContent,omitempty"` - // PassPhrase - The password to decrypt the SSH private key if the SSH private key is encrypted. - PassPhrase BasicSecretBase `json:"passPhrase,omitempty"` - // SkipHostKeyValidation - If true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). - SkipHostKeyValidation interface{} `json:"skipHostKeyValidation,omitempty"` - // HostKeyFingerprint - The host key finger-print of the SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). - HostKeyFingerprint interface{} `json:"hostKeyFingerprint,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SftpServerLinkedServiceTypeProperties struct. -func (sslstp *SftpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - sslstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - sslstp.Port = port - } - case "authenticationType": - if v != nil { - var authenticationType SftpAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - sslstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - sslstp.EncryptedCredential = encryptedCredential - } - case "privateKeyPath": - if v != nil { - var privateKeyPath interface{} - err = json.Unmarshal(*v, &privateKeyPath) - if err != nil { - return err - } - sslstp.PrivateKeyPath = privateKeyPath - } - case "privateKeyContent": - if v != nil { - privateKeyContent, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.PrivateKeyContent = privateKeyContent - } - case "passPhrase": - if v != nil { - passPhrase, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.PassPhrase = passPhrase - } - case "skipHostKeyValidation": - if v != nil { - var skipHostKeyValidation interface{} - err = json.Unmarshal(*v, &skipHostKeyValidation) - if err != nil { - return err - } - sslstp.SkipHostKeyValidation = skipHostKeyValidation + sohtd.Description = &description } - case "hostKeyFingerprint": + case "structure": if v != nil { - var hostKeyFingerprint interface{} - err = json.Unmarshal(*v, &hostKeyFingerprint) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - sslstp.HostKeyFingerprint = hostKeyFingerprint + sohtd.Structure = structure } - } - } - - return nil -} - -// SftpWriteSettings sftp write settings. -type SftpWriteSettings struct { - // OperationTimeout - Specifies the timeout for writing each chunk to SFTP server. Default value: 01:00:00 (one hour). Type: string (or Expression with resultType string). - OperationTimeout interface{} `json:"operationTimeout,omitempty"` - // UseTempFileRename - Upload to temporary file(s) and rename. Disable this option if your SFTP server doesn't support rename operation. Type: boolean (or Expression with resultType boolean). - UseTempFileRename interface{} `json:"useTempFileRename,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeAzureFileStorageWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings', 'TypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SftpWriteSettings. -func (sws SftpWriteSettings) MarshalJSON() ([]byte, error) { - sws.Type = TypeSftpWriteSettings - objectMap := make(map[string]interface{}) - if sws.OperationTimeout != nil { - objectMap["operationTimeout"] = sws.OperationTimeout - } - if sws.UseTempFileRename != nil { - objectMap["useTempFileRename"] = sws.UseTempFileRename - } - if sws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sws.MaxConcurrentConnections - } - if sws.CopyBehavior != nil { - objectMap["copyBehavior"] = sws.CopyBehavior - } - if sws.Type != "" { - objectMap["type"] = sws.Type - } - for k, v := range sws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return nil, false -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return nil, false -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return &sws, true -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return nil, false -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &sws, true -} - -// UnmarshalJSON is the custom unmarshaler for SftpWriteSettings struct. -func (sws *SftpWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "operationTimeout": + case "schema": if v != nil { - var operationTimeout interface{} - err = json.Unmarshal(*v, &operationTimeout) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - sws.OperationTimeout = operationTimeout + sohtd.Schema = schema } - case "useTempFileRename": + case "linkedServiceName": if v != nil { - var useTempFileRename interface{} - err = json.Unmarshal(*v, &useTempFileRename) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - sws.UseTempFileRename = useTempFileRename + sohtd.LinkedServiceName = &linkedServiceName } - default: + case "parameters": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - if sws.AdditionalProperties == nil { - sws.AdditionalProperties = make(map[string]interface{}) - } - sws.AdditionalProperties[k] = additionalProperties + sohtd.Parameters = parameters } - case "maxConcurrentConnections": + case "annotations": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - sws.MaxConcurrentConnections = maxConcurrentConnections + sohtd.Annotations = &annotations } - case "copyBehavior": + case "folder": if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - sws.CopyBehavior = copyBehavior + sohtd.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicStoreWriteSettings + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sws.Type = typeVar + sohtd.Type = typeVar } } } @@ -212745,16 +213543,20 @@ func (sws *SftpWriteSettings) UnmarshalJSON(body []byte) error { return nil } -// SharePointOnlineListDatasetTypeProperties sharepoint online list dataset properties. -type SharePointOnlineListDatasetTypeProperties struct { - // ListName - The name of the SharePoint Online list. Type: string (or Expression with resultType string). - ListName interface{} `json:"listName,omitempty"` +// SapOpenHubTableDatasetTypeProperties sap Business Warehouse Open Hub Destination Table properties. +type SapOpenHubTableDatasetTypeProperties struct { + // OpenHubDestinationName - The name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with resultType string). + OpenHubDestinationName interface{} `json:"openHubDestinationName,omitempty"` + // ExcludeLastRequest - Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType boolean). + ExcludeLastRequest interface{} `json:"excludeLastRequest,omitempty"` + // BaseRequestID - 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 ). + BaseRequestID interface{} `json:"baseRequestId,omitempty"` } -// SharePointOnlineListLinkedService sharePoint Online List linked service. -type SharePointOnlineListLinkedService struct { - // SharePointOnlineListLinkedServiceTypeProperties - SharePoint Online List linked service properties. - *SharePointOnlineListLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SapTableLinkedService SAP Table Linked Service. +type SapTableLinkedService struct { + // SapTableLinkedServiceTypeProperties - Properties specific to this linked service type. + *SapTableLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -212769,546 +213571,546 @@ type SharePointOnlineListLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) MarshalJSON() ([]byte, error) { - spolls.Type = TypeSharePointOnlineList +// MarshalJSON is the custom marshaler for SapTableLinkedService. +func (stls SapTableLinkedService) MarshalJSON() ([]byte, error) { + stls.Type = TypeSapTable objectMap := make(map[string]interface{}) - if spolls.SharePointOnlineListLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = spolls.SharePointOnlineListLinkedServiceTypeProperties + if stls.SapTableLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = stls.SapTableLinkedServiceTypeProperties } - if spolls.ConnectVia != nil { - objectMap["connectVia"] = spolls.ConnectVia + if stls.ConnectVia != nil { + objectMap["connectVia"] = stls.ConnectVia } - if spolls.Description != nil { - objectMap["description"] = spolls.Description + if stls.Description != nil { + objectMap["description"] = stls.Description } - if spolls.Parameters != nil { - objectMap["parameters"] = spolls.Parameters + if stls.Parameters != nil { + objectMap["parameters"] = stls.Parameters } - if spolls.Annotations != nil { - objectMap["annotations"] = spolls.Annotations + if stls.Annotations != nil { + objectMap["annotations"] = stls.Annotations } - if spolls.Type != "" { - objectMap["type"] = spolls.Type + if stls.Type != "" { + objectMap["type"] = stls.Type } - for k, v := range spolls.AdditionalProperties { + for k, v := range stls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return &spolls, true +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false +// AsSapTableLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return &stls, true } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &spolls, true +// AsBasicLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &stls, true } -// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListLinkedService struct. -func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapTableLinkedService struct. +func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -213318,12 +214120,12 @@ func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) erro switch k { case "typeProperties": if v != nil { - var sharePointOnlineListLinkedServiceTypeProperties SharePointOnlineListLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sharePointOnlineListLinkedServiceTypeProperties) + var sapTableLinkedServiceTypeProperties SapTableLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapTableLinkedServiceTypeProperties) if err != nil { return err } - spolls.SharePointOnlineListLinkedServiceTypeProperties = &sharePointOnlineListLinkedServiceTypeProperties + stls.SapTableLinkedServiceTypeProperties = &sapTableLinkedServiceTypeProperties } default: if v != nil { @@ -213332,10 +214134,10 @@ func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) erro if err != nil { return err } - if spolls.AdditionalProperties == nil { - spolls.AdditionalProperties = make(map[string]interface{}) + if stls.AdditionalProperties == nil { + stls.AdditionalProperties = make(map[string]interface{}) } - spolls.AdditionalProperties[k] = additionalProperties + stls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -213344,7 +214146,7 @@ func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) erro if err != nil { return err } - spolls.ConnectVia = &connectVia + stls.ConnectVia = &connectVia } case "description": if v != nil { @@ -213353,7 +214155,7 @@ func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) erro if err != nil { return err } - spolls.Description = &description + stls.Description = &description } case "parameters": if v != nil { @@ -213362,7 +214164,7 @@ func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) erro if err != nil { return err } - spolls.Parameters = parameters + stls.Parameters = parameters } case "annotations": if v != nil { @@ -213371,7 +214173,7 @@ func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) erro if err != nil { return err } - spolls.Annotations = &annotations + stls.Annotations = &annotations } case "type": if v != nil { @@ -213380,7 +214182,7 @@ func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) erro if err != nil { return err } - spolls.Type = typeVar + stls.Type = typeVar } } } @@ -213388,22 +214190,44 @@ func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) erro return nil } -// SharePointOnlineListLinkedServiceTypeProperties sharePoint Online List linked service properties. -type SharePointOnlineListLinkedServiceTypeProperties struct { - // SiteURL - The URL of the SharePoint Online site. For example, https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType string). - SiteURL interface{} `json:"siteUrl,omitempty"` - // TenantID - The tenant ID under which your application resides. You can find it from Azure portal Active Directory overview page. Type: string (or Expression with resultType string). - TenantID interface{} `json:"tenantId,omitempty"` - // ServicePrincipalID - The application (client) ID of your application registered in Azure Active Directory. Make sure to grant SharePoint site permission to this application. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The client secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` +// SapTableLinkedServiceTypeProperties properties specific to this linked service type. +type SapTableLinkedServiceTypeProperties struct { + // Server - Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // SystemNumber - 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). + SystemNumber interface{} `json:"systemNumber,omitempty"` + // ClientID - 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). + ClientID interface{} `json:"clientId,omitempty"` + // Language - Language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType string). + Language interface{} `json:"language,omitempty"` + // SystemID - SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). + SystemID interface{} `json:"systemId,omitempty"` + // UserName - Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to access the SAP server where the table is located. + Password BasicSecretBase `json:"password,omitempty"` + // MessageServer - The hostname of the SAP Message Server. Type: string (or Expression with resultType string). + MessageServer interface{} `json:"messageServer,omitempty"` + // MessageServerService - The service name or port number of the Message Server. Type: string (or Expression with resultType string). + MessageServerService interface{} `json:"messageServerService,omitempty"` + // SncMode - 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). + SncMode interface{} `json:"sncMode,omitempty"` + // SncMyName - Initiator's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). + SncMyName interface{} `json:"sncMyName,omitempty"` + // SncPartnerName - Communication partner's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). + SncPartnerName interface{} `json:"sncPartnerName,omitempty"` + // SncLibraryPath - External security product's library to access the SAP server where the table is located. Type: string (or Expression with resultType string). + SncLibraryPath interface{} `json:"sncLibraryPath,omitempty"` + // SncQop - SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). + SncQop interface{} `json:"sncQop,omitempty"` + // LogonGroup - The Logon Group for the SAP System. Type: string (or Expression with resultType string). + LogonGroup interface{} `json:"logonGroup,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListLinkedServiceTypeProperties struct. -func (spollstp *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapTableLinkedServiceTypeProperties struct. +func (stlstp *SapTableLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -213411,40 +214235,139 @@ func (spollstp *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(b } for k, v := range m { switch k { - case "siteUrl": + case "server": if v != nil { - var siteURL interface{} - err = json.Unmarshal(*v, &siteURL) + var server interface{} + err = json.Unmarshal(*v, &server) if err != nil { return err } - spollstp.SiteURL = siteURL + stlstp.Server = server } - case "tenantId": + case "systemNumber": if v != nil { - var tenantID interface{} - err = json.Unmarshal(*v, &tenantID) + var systemNumber interface{} + err = json.Unmarshal(*v, &systemNumber) if err != nil { return err } - spollstp.TenantID = tenantID + stlstp.SystemNumber = systemNumber } - case "servicePrincipalId": + case "clientId": if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) + var clientID interface{} + err = json.Unmarshal(*v, &clientID) if err != nil { return err } - spollstp.ServicePrincipalID = servicePrincipalID + stlstp.ClientID = clientID } - case "servicePrincipalKey": + case "language": if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + var language interface{} + err = json.Unmarshal(*v, &language) if err != nil { return err } - spollstp.ServicePrincipalKey = servicePrincipalKey + stlstp.Language = language + } + case "systemId": + if v != nil { + var systemID interface{} + err = json.Unmarshal(*v, &systemID) + if err != nil { + return err + } + stlstp.SystemID = systemID + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + stlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + stlstp.Password = password + } + case "messageServer": + if v != nil { + var messageServer interface{} + err = json.Unmarshal(*v, &messageServer) + if err != nil { + return err + } + stlstp.MessageServer = messageServer + } + case "messageServerService": + if v != nil { + var messageServerService interface{} + err = json.Unmarshal(*v, &messageServerService) + if err != nil { + return err + } + stlstp.MessageServerService = messageServerService + } + case "sncMode": + if v != nil { + var sncMode interface{} + err = json.Unmarshal(*v, &sncMode) + if err != nil { + return err + } + stlstp.SncMode = sncMode + } + case "sncMyName": + if v != nil { + var sncMyName interface{} + err = json.Unmarshal(*v, &sncMyName) + if err != nil { + return err + } + stlstp.SncMyName = sncMyName + } + case "sncPartnerName": + if v != nil { + var sncPartnerName interface{} + err = json.Unmarshal(*v, &sncPartnerName) + if err != nil { + return err + } + stlstp.SncPartnerName = sncPartnerName + } + case "sncLibraryPath": + if v != nil { + var sncLibraryPath interface{} + err = json.Unmarshal(*v, &sncLibraryPath) + if err != nil { + return err + } + stlstp.SncLibraryPath = sncLibraryPath + } + case "sncQop": + if v != nil { + var sncQop interface{} + err = json.Unmarshal(*v, &sncQop) + if err != nil { + return err + } + stlstp.SncQop = sncQop + } + case "logonGroup": + if v != nil { + var logonGroup interface{} + err = json.Unmarshal(*v, &logonGroup) + if err != nil { + return err + } + stlstp.LogonGroup = logonGroup } case "encryptedCredential": if v != nil { @@ -213453,7 +214376,7 @@ func (spollstp *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(b if err != nil { return err } - spollstp.EncryptedCredential = encryptedCredential + stlstp.EncryptedCredential = encryptedCredential } } } @@ -213461,10 +214384,22 @@ func (spollstp *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(b return nil } -// SharePointOnlineListResourceDataset the sharepoint online list resource dataset. -type SharePointOnlineListResourceDataset struct { - // SharePointOnlineListDatasetTypeProperties - Sharepoint online list dataset properties. - *SharePointOnlineListDatasetTypeProperties `json:"typeProperties,omitempty"` +// SapTablePartitionSettings the settings that will be leveraged for SAP table source partitioning. +type SapTablePartitionSettings struct { + // PartitionColumnName - The name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + // PartitionUpperBound - The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + // PartitionLowerBound - The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string). + PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + // MaxPartitionsNumber - The maximum value of partitions the table will be split into. Type: integer (or Expression with resultType string). + MaxPartitionsNumber interface{} `json:"maxPartitionsNumber,omitempty"` +} + +// SapTableResourceDataset SAP Table Resource properties. +type SapTableResourceDataset struct { + // SapTableResourceDatasetTypeProperties - SAP Table Resource properties. + *SapTableResourceDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -213485,520 +214420,520 @@ type SharePointOnlineListResourceDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) MarshalJSON() ([]byte, error) { - spolrd.Type = TypeSharePointOnlineListResource +// MarshalJSON is the custom marshaler for SapTableResourceDataset. +func (strd SapTableResourceDataset) MarshalJSON() ([]byte, error) { + strd.Type = TypeSapTableResource objectMap := make(map[string]interface{}) - if spolrd.SharePointOnlineListDatasetTypeProperties != nil { - objectMap["typeProperties"] = spolrd.SharePointOnlineListDatasetTypeProperties + if strd.SapTableResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = strd.SapTableResourceDatasetTypeProperties } - if spolrd.Description != nil { - objectMap["description"] = spolrd.Description + if strd.Description != nil { + objectMap["description"] = strd.Description } - if spolrd.Structure != nil { - objectMap["structure"] = spolrd.Structure + if strd.Structure != nil { + objectMap["structure"] = strd.Structure } - if spolrd.Schema != nil { - objectMap["schema"] = spolrd.Schema + if strd.Schema != nil { + objectMap["schema"] = strd.Schema } - if spolrd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = spolrd.LinkedServiceName + if strd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = strd.LinkedServiceName } - if spolrd.Parameters != nil { - objectMap["parameters"] = spolrd.Parameters + if strd.Parameters != nil { + objectMap["parameters"] = strd.Parameters } - if spolrd.Annotations != nil { - objectMap["annotations"] = spolrd.Annotations + if strd.Annotations != nil { + objectMap["annotations"] = strd.Annotations } - if spolrd.Folder != nil { - objectMap["folder"] = spolrd.Folder + if strd.Folder != nil { + objectMap["folder"] = strd.Folder } - if spolrd.Type != "" { - objectMap["type"] = spolrd.Type + if strd.Type != "" { + objectMap["type"] = strd.Type } - for k, v := range spolrd.AdditionalProperties { + for k, v := range strd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return &spolrd, true +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false +// AsSapTableResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return &strd, true } -// AsRestResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &spolrd, true +// AsBasicDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &strd, true } -// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListResourceDataset struct. -func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SapTableResourceDataset struct. +func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -214008,12 +214943,12 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er switch k { case "typeProperties": if v != nil { - var sharePointOnlineListDatasetTypeProperties SharePointOnlineListDatasetTypeProperties - err = json.Unmarshal(*v, &sharePointOnlineListDatasetTypeProperties) + var sapTableResourceDatasetTypeProperties SapTableResourceDatasetTypeProperties + err = json.Unmarshal(*v, &sapTableResourceDatasetTypeProperties) if err != nil { return err } - spolrd.SharePointOnlineListDatasetTypeProperties = &sharePointOnlineListDatasetTypeProperties + strd.SapTableResourceDatasetTypeProperties = &sapTableResourceDatasetTypeProperties } default: if v != nil { @@ -214022,10 +214957,10 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er if err != nil { return err } - if spolrd.AdditionalProperties == nil { - spolrd.AdditionalProperties = make(map[string]interface{}) + if strd.AdditionalProperties == nil { + strd.AdditionalProperties = make(map[string]interface{}) } - spolrd.AdditionalProperties[k] = additionalProperties + strd.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -214034,7 +214969,7 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er if err != nil { return err } - spolrd.Description = &description + strd.Description = &description } case "structure": if v != nil { @@ -214043,7 +214978,7 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er if err != nil { return err } - spolrd.Structure = structure + strd.Structure = structure } case "schema": if v != nil { @@ -214052,7 +214987,7 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er if err != nil { return err } - spolrd.Schema = schema + strd.Schema = schema } case "linkedServiceName": if v != nil { @@ -214061,7 +214996,7 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er if err != nil { return err } - spolrd.LinkedServiceName = &linkedServiceName + strd.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -214070,7 +215005,7 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er if err != nil { return err } - spolrd.Parameters = parameters + strd.Parameters = parameters } case "annotations": if v != nil { @@ -214079,7 +215014,7 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er if err != nil { return err } - spolrd.Annotations = &annotations + strd.Annotations = &annotations } case "folder": if v != nil { @@ -214088,7 +215023,7 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er if err != nil { return err } - spolrd.Folder = &folder + strd.Folder = &folder } case "type": if v != nil { @@ -214097,7 +215032,7 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er if err != nil { return err } - spolrd.Type = typeVar + strd.Type = typeVar } } } @@ -214105,12 +215040,36 @@ func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) er return nil } -// SharePointOnlineListSource a copy activity source for sharePoint online list source. -type SharePointOnlineListSource struct { - // Query - The OData query to filter the data in SharePoint Online list. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // HTTPRequestTimeout - The wait time to get a response from SharePoint Online. Default value is 5 minutes (00:05:00). Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` +// SapTableResourceDatasetTypeProperties SAP Table Resource properties. +type SapTableResourceDatasetTypeProperties struct { + // TableName - The name of the SAP Table. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` +} + +// SapTableSource a copy activity source for SAP Table source. +type SapTableSource struct { + // RowCount - The number of rows to be retrieved. Type: integer(or Expression with resultType integer). + RowCount interface{} `json:"rowCount,omitempty"` + // RowSkips - The number of rows that will be skipped. Type: integer (or Expression with resultType integer). + RowSkips interface{} `json:"rowSkips,omitempty"` + // RfcTableFields - The fields of the SAP table that will be retrieved. For example, column0, column1. Type: string (or Expression with resultType string). + RfcTableFields interface{} `json:"rfcTableFields,omitempty"` + // RfcTableOptions - The options for the filtering of the SAP Table. For example, COLUMN0 EQ SOME VALUE. Type: string (or Expression with resultType string). + RfcTableOptions interface{} `json:"rfcTableOptions,omitempty"` + // BatchSize - Specifies the maximum number of rows that will be retrieved at a time when retrieving data from SAP Table. Type: integer (or Expression with resultType integer). + BatchSize interface{} `json:"batchSize,omitempty"` + // CustomRfcReadTableFunctionModule - Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with resultType string). + CustomRfcReadTableFunctionModule interface{} `json:"customRfcReadTableFunctionModule,omitempty"` + // SapDataColumnDelimiter - The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with resultType string). + SapDataColumnDelimiter interface{} `json:"sapDataColumnDelimiter,omitempty"` + // PartitionOption - The partition mechanism that will be used for SAP table read in parallel. Possible values include: "None", "PartitionOnInt", "PartitionOnCalendarYear", "PartitionOnCalendarMonth", "PartitionOnCalendarDate", "PartitionOnTime". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for SAP table source partitioning. + PartitionSettings *SapTablePartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). @@ -214123,516 +215082,1412 @@ type SharePointOnlineListSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) MarshalJSON() ([]byte, error) { - spols.Type = TypeSharePointOnlineListSource +// MarshalJSON is the custom marshaler for SapTableSource. +func (sts SapTableSource) MarshalJSON() ([]byte, error) { + sts.Type = TypeSapTableSource objectMap := make(map[string]interface{}) - if spols.Query != nil { - objectMap["query"] = spols.Query + if sts.RowCount != nil { + objectMap["rowCount"] = sts.RowCount } - if spols.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = spols.HTTPRequestTimeout + if sts.RowSkips != nil { + objectMap["rowSkips"] = sts.RowSkips } - if spols.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = spols.SourceRetryCount + if sts.RfcTableFields != nil { + objectMap["rfcTableFields"] = sts.RfcTableFields } - if spols.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = spols.SourceRetryWait + if sts.RfcTableOptions != nil { + objectMap["rfcTableOptions"] = sts.RfcTableOptions } - if spols.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = spols.MaxConcurrentConnections + if sts.BatchSize != nil { + objectMap["batchSize"] = sts.BatchSize } - if spols.Type != "" { - objectMap["type"] = spols.Type + if sts.CustomRfcReadTableFunctionModule != nil { + objectMap["customRfcReadTableFunctionModule"] = sts.CustomRfcReadTableFunctionModule } - for k, v := range spols.AdditionalProperties { + if sts.SapDataColumnDelimiter != nil { + objectMap["sapDataColumnDelimiter"] = sts.SapDataColumnDelimiter + } + if sts.PartitionOption != nil { + objectMap["partitionOption"] = sts.PartitionOption + } + if sts.PartitionSettings != nil { + objectMap["partitionSettings"] = sts.PartitionSettings + } + if sts.QueryTimeout != nil { + objectMap["queryTimeout"] = sts.QueryTimeout + } + if sts.AdditionalColumns != nil { + objectMap["additionalColumns"] = sts.AdditionalColumns + } + if sts.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sts.SourceRetryCount + } + if sts.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sts.SourceRetryWait + } + if sts.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sts.MaxConcurrentConnections + } + if sts.Type != "" { + objectMap["type"] = sts.Type + } + for k, v := range sts.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return &spols, true +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsHTTPSource() (*HTTPSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsOffice365Source() (*Office365Source, bool) { +// AsVerticaSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsZohoSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsXeroSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsSquareSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsWebSource() (*WebSource, bool) { +// AsSparkSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsOracleSource() (*OracleSource, bool) { +// AsShopifySource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsHdfsSource() (*HdfsSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsRestSource() (*RestSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsODataSource() (*ODataSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsRelationalSource() (*RelationalSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsJiraSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsHubspotSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsHiveSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsBlobSource() (*BlobSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDrillSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsConcurSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsVerticaSource() (*VerticaSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsZohoSource() (*ZohoSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsXeroSource() (*XeroSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSquareSource() (*SquareSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSparkSource() (*SparkSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsShopifySource() (*ShopifySource, bool) { +// AsSQLMISource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsPrestoSource() (*PrestoSource, bool) { +// AsSQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false +// AsSapTableSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapTableSource() (*SapTableSource, bool) { + return &sts, true } -// AsPaypalSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMarketoSource() (*MarketoSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMagentoSource() (*MagentoSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsJiraSource() (*JiraSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsHubspotSource() (*HubspotSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsHiveSource() (*HiveSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsHBaseSource() (*HBaseSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsDb2Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsInformixSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsEloquaSource() (*EloquaSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDrillSource() (*DrillSource, bool) { +// AsTabularSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sts, true } -// AsConcurSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsConcurSource() (*ConcurSource, bool) { +// AsBinarySource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsOrcSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsXMLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCassandraSource() (*CassandraSource, bool) { +// AsJSONSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsTeradataSource() (*TeradataSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsParquetSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsExcelSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSQLMISource() (*SQLMISource, bool) { +// AsAvroSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsCopySource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false +// AsBasicCopySource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sts, true } -// AsSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSQLSource() (*SQLSource, bool) { +// UnmarshalJSON is the custom unmarshaler for SapTableSource struct. +func (sts *SapTableSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "rowCount": + if v != nil { + var rowCount interface{} + err = json.Unmarshal(*v, &rowCount) + if err != nil { + return err + } + sts.RowCount = rowCount + } + case "rowSkips": + if v != nil { + var rowSkips interface{} + err = json.Unmarshal(*v, &rowSkips) + if err != nil { + return err + } + sts.RowSkips = rowSkips + } + case "rfcTableFields": + if v != nil { + var rfcTableFields interface{} + err = json.Unmarshal(*v, &rfcTableFields) + if err != nil { + return err + } + sts.RfcTableFields = rfcTableFields + } + case "rfcTableOptions": + if v != nil { + var rfcTableOptions interface{} + err = json.Unmarshal(*v, &rfcTableOptions) + if err != nil { + return err + } + sts.RfcTableOptions = rfcTableOptions + } + case "batchSize": + if v != nil { + var batchSize interface{} + err = json.Unmarshal(*v, &batchSize) + if err != nil { + return err + } + sts.BatchSize = batchSize + } + case "customRfcReadTableFunctionModule": + if v != nil { + var customRfcReadTableFunctionModule interface{} + err = json.Unmarshal(*v, &customRfcReadTableFunctionModule) + if err != nil { + return err + } + sts.CustomRfcReadTableFunctionModule = customRfcReadTableFunctionModule + } + case "sapDataColumnDelimiter": + if v != nil { + var sapDataColumnDelimiter interface{} + err = json.Unmarshal(*v, &sapDataColumnDelimiter) + if err != nil { + return err + } + sts.SapDataColumnDelimiter = sapDataColumnDelimiter + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + sts.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SapTablePartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + sts.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sts.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sts.AdditionalColumns = &additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sts.AdditionalProperties == nil { + sts.AdditionalProperties = make(map[string]interface{}) + } + sts.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sts.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sts.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sts.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sts.Type = typeVar + } + } + } + + return nil +} + +// ScheduleTrigger trigger that creates pipeline runs periodically, on schedule. +type ScheduleTrigger struct { + // ScheduleTriggerTypeProperties - Schedule Trigger properties. + *ScheduleTriggerTypeProperties `json:"typeProperties,omitempty"` + // Pipelines - Pipelines that need to be started. + Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Trigger description. + Description *string `json:"description,omitempty"` + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeTrigger', 'TypeChainingTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeCustomEventsTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ScheduleTrigger. +func (st ScheduleTrigger) MarshalJSON() ([]byte, error) { + st.Type = TypeScheduleTrigger + objectMap := make(map[string]interface{}) + if st.ScheduleTriggerTypeProperties != nil { + objectMap["typeProperties"] = st.ScheduleTriggerTypeProperties + } + if st.Pipelines != nil { + objectMap["pipelines"] = st.Pipelines + } + if st.Description != nil { + objectMap["description"] = st.Description + } + if st.Annotations != nil { + objectMap["annotations"] = st.Annotations + } + if st.Type != "" { + objectMap["type"] = st.Type + } + for k, v := range st.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsChainingTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapTableSource() (*SapTableSource, bool) { +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsTumblingWindowTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsCustomEventsTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapEccSource() (*SapEccSource, bool) { +// AsBlobEventsTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsBlobTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsBlobTrigger() (*BlobTrigger, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsScheduleTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return &st, true +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapBwSource() (*SapBwSource, bool) { +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return &st, true +} + +// AsTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsTrigger() (*Trigger, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSybaseSource() (*SybaseSource, bool) { +// AsBasicTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &st, true +} + +// UnmarshalJSON is the custom unmarshaler for ScheduleTrigger struct. +func (st *ScheduleTrigger) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var scheduleTriggerTypeProperties ScheduleTriggerTypeProperties + err = json.Unmarshal(*v, &scheduleTriggerTypeProperties) + if err != nil { + return err + } + st.ScheduleTriggerTypeProperties = &scheduleTriggerTypeProperties + } + case "pipelines": + if v != nil { + var pipelines []TriggerPipelineReference + err = json.Unmarshal(*v, &pipelines) + if err != nil { + return err + } + st.Pipelines = &pipelines + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if st.AdditionalProperties == nil { + st.AdditionalProperties = make(map[string]interface{}) + } + st.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + st.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + st.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + st.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + st.Type = typeVar + } + } + } + + return nil +} + +// ScheduleTriggerRecurrence the workflow trigger recurrence. +type ScheduleTriggerRecurrence struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Frequency - The frequency. Possible values include: 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' + Frequency RecurrenceFrequency `json:"frequency,omitempty"` + // Interval - The interval. + Interval *int32 `json:"interval,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // TimeZone - The time zone. + TimeZone *string `json:"timeZone,omitempty"` + // Schedule - The recurrence schedule. + Schedule *RecurrenceSchedule `json:"schedule,omitempty"` +} + +// MarshalJSON is the custom marshaler for ScheduleTriggerRecurrence. +func (str ScheduleTriggerRecurrence) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if str.Frequency != "" { + objectMap["frequency"] = str.Frequency + } + if str.Interval != nil { + objectMap["interval"] = str.Interval + } + if str.StartTime != nil { + objectMap["startTime"] = str.StartTime + } + if str.EndTime != nil { + objectMap["endTime"] = str.EndTime + } + if str.TimeZone != nil { + objectMap["timeZone"] = str.TimeZone + } + if str.Schedule != nil { + objectMap["schedule"] = str.Schedule + } + for k, v := range str.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ScheduleTriggerRecurrence struct. +func (str *ScheduleTriggerRecurrence) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if str.AdditionalProperties == nil { + str.AdditionalProperties = make(map[string]interface{}) + } + str.AdditionalProperties[k] = additionalProperties + } + case "frequency": + if v != nil { + var frequency RecurrenceFrequency + err = json.Unmarshal(*v, &frequency) + if err != nil { + return err + } + str.Frequency = frequency + } + case "interval": + if v != nil { + var interval int32 + err = json.Unmarshal(*v, &interval) + if err != nil { + return err + } + str.Interval = &interval + } + case "startTime": + if v != nil { + var startTime date.Time + err = json.Unmarshal(*v, &startTime) + if err != nil { + return err + } + str.StartTime = &startTime + } + case "endTime": + if v != nil { + var endTime date.Time + err = json.Unmarshal(*v, &endTime) + if err != nil { + return err + } + str.EndTime = &endTime + } + case "timeZone": + if v != nil { + var timeZone string + err = json.Unmarshal(*v, &timeZone) + if err != nil { + return err + } + str.TimeZone = &timeZone + } + case "schedule": + if v != nil { + var schedule RecurrenceSchedule + err = json.Unmarshal(*v, &schedule) + if err != nil { + return err + } + str.Schedule = &schedule + } + } + } + + return nil +} + +// ScheduleTriggerTypeProperties schedule Trigger properties. +type ScheduleTriggerTypeProperties struct { + // Recurrence - Recurrence schedule configuration. + Recurrence *ScheduleTriggerRecurrence `json:"recurrence,omitempty"` +} + +// ScriptAction custom script action to run on HDI ondemand cluster once it's up. +type ScriptAction struct { + // Name - The user provided name of the script action. + Name *string `json:"name,omitempty"` + // URI - The URI for the script action. + URI *string `json:"uri,omitempty"` + // Roles - The node types on which the script action should be executed. + Roles interface{} `json:"roles,omitempty"` + // Parameters - The parameters for the script action. + Parameters *string `json:"parameters,omitempty"` +} + +// BasicSecretBase the base definition of a secret type. +type BasicSecretBase interface { + AsSecureString() (*SecureString, bool) + AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) + AsSecretBase() (*SecretBase, bool) +} + +// SecretBase the base definition of a secret type. +type SecretBase struct { + // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' + Type Type `json:"type,omitempty"` +} + +func unmarshalBasicSecretBase(body []byte) (BasicSecretBase, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeSecureString): + var ss SecureString + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeAzureKeyVaultSecret): + var akvsr AzureKeyVaultSecretReference + err := json.Unmarshal(body, &akvsr) + return akvsr, err + default: + var sb SecretBase + err := json.Unmarshal(body, &sb) + return sb, err + } +} +func unmarshalBasicSecretBaseArray(body []byte) ([]BasicSecretBase, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + sbArray := make([]BasicSecretBase, len(rawMessages)) + + for index, rawMessage := range rawMessages { + sb, err := unmarshalBasicSecretBase(*rawMessage) + if err != nil { + return nil, err + } + sbArray[index] = sb + } + return sbArray, nil +} + +// MarshalJSON is the custom marshaler for SecretBase. +func (sb SecretBase) MarshalJSON() ([]byte, error) { + sb.Type = TypeSecretBase + objectMap := make(map[string]interface{}) + if sb.Type != "" { + objectMap["type"] = sb.Type + } + return json.Marshal(objectMap) +} + +// AsSecureString is the BasicSecretBase implementation for SecretBase. +func (sb SecretBase) AsSecureString() (*SecureString, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for SecretBase. +func (sb SecretBase) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMySQLSource() (*MySQLSource, bool) { +// AsSecretBase is the BasicSecretBase implementation for SecretBase. +func (sb SecretBase) AsSecretBase() (*SecretBase, bool) { + return &sb, true +} + +// AsBasicSecretBase is the BasicSecretBase implementation for SecretBase. +func (sb SecretBase) AsBasicSecretBase() (BasicSecretBase, bool) { + return &sb, true +} + +// SecureString azure Data Factory secure string definition. The string value will be masked with asterisks +// '*' during Get or List API calls. +type SecureString struct { + // Value - Value of secure string. + Value *string `json:"value,omitempty"` + // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' + Type Type `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecureString. +func (ss SecureString) MarshalJSON() ([]byte, error) { + ss.Type = TypeSecureString + objectMap := make(map[string]interface{}) + if ss.Value != nil { + objectMap["value"] = ss.Value + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + return json.Marshal(objectMap) +} + +// AsSecureString is the BasicSecretBase implementation for SecureString. +func (ss SecureString) AsSecureString() (*SecureString, bool) { + return &ss, true +} + +// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for SecureString. +func (ss SecureString) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsOdbcSource() (*OdbcSource, bool) { +// AsSecretBase is the BasicSecretBase implementation for SecureString. +func (ss SecureString) AsSecretBase() (*SecretBase, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDb2Source() (*Db2Source, bool) { +// AsBasicSecretBase is the BasicSecretBase implementation for SecureString. +func (ss SecureString) AsBasicSecretBase() (BasicSecretBase, bool) { + return &ss, true +} + +// SelfDependencyTumblingWindowTriggerReference self referenced tumbling window trigger dependency. +type SelfDependencyTumblingWindowTriggerReference struct { + // Offset - Timespan applied to the start time of a tumbling window when evaluating dependency. + Offset *string `json:"offset,omitempty"` + // Size - The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used. + Size *string `json:"size,omitempty"` + // Type - Possible values include: 'TypeDependencyReference', 'TypeSelfDependencyTumblingWindowTriggerReference', 'TypeTumblingWindowTriggerDependencyReference', 'TypeTriggerDependencyReference' + Type TypeBasicDependencyReference `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) MarshalJSON() ([]byte, error) { + sdtwtr.Type = TypeSelfDependencyTumblingWindowTriggerReference + objectMap := make(map[string]interface{}) + if sdtwtr.Offset != nil { + objectMap["offset"] = sdtwtr.Offset + } + if sdtwtr.Size != nil { + objectMap["size"] = sdtwtr.Size + } + if sdtwtr.Type != "" { + objectMap["type"] = sdtwtr.Type + } + return json.Marshal(objectMap) +} + +// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { + return &sdtwtr, true +} + +// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsInformixSource() (*InformixSource, bool) { +// AsTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsTabularSource() (*TabularSource, bool) { +// AsDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsDependencyReference() (*DependencyReference, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsBasicDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { + return &sdtwtr, true +} + +// SelfHostedIntegrationRuntime self-hosted integration runtime. +type SelfHostedIntegrationRuntime struct { + // SelfHostedIntegrationRuntimeTypeProperties - When this property is not null, means this is a linked integration runtime. The property is used to access original integration runtime. + *SelfHostedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Integration runtime description. + Description *string `json:"description,omitempty"` + // Type - Possible values include: 'TypeIntegrationRuntime', 'TypeSelfHosted', 'TypeManaged' + Type TypeBasicIntegrationRuntime `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntime. +func (shir SelfHostedIntegrationRuntime) MarshalJSON() ([]byte, error) { + shir.Type = TypeSelfHosted + objectMap := make(map[string]interface{}) + if shir.SelfHostedIntegrationRuntimeTypeProperties != nil { + objectMap["typeProperties"] = shir.SelfHostedIntegrationRuntimeTypeProperties + } + if shir.Description != nil { + objectMap["description"] = shir.Description + } + if shir.Type != "" { + objectMap["type"] = shir.Type + } + for k, v := range shir.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. +func (shir SelfHostedIntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { + return &shir, true +} + +// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. +func (shir SelfHostedIntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsBinarySource() (*BinarySource, bool) { +// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. +func (shir SelfHostedIntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsOrcSource() (*OrcSource, bool) { - return nil, false +// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. +func (shir SelfHostedIntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { + return &shir, true +} + +// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntime struct. +func (shir *SelfHostedIntegrationRuntime) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var selfHostedIntegrationRuntimeTypeProperties SelfHostedIntegrationRuntimeTypeProperties + err = json.Unmarshal(*v, &selfHostedIntegrationRuntimeTypeProperties) + if err != nil { + return err + } + shir.SelfHostedIntegrationRuntimeTypeProperties = &selfHostedIntegrationRuntimeTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if shir.AdditionalProperties == nil { + shir.AdditionalProperties = make(map[string]interface{}) + } + shir.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + shir.Description = &description + } + case "type": + if v != nil { + var typeVar TypeBasicIntegrationRuntime + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + shir.Type = typeVar + } + } + } + + return nil } -// AsXMLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsXMLSource() (*XMLSource, bool) { - return nil, false +// SelfHostedIntegrationRuntimeNode properties of Self-hosted integration runtime node. +type SelfHostedIntegrationRuntimeNode struct { + autorest.Response `json:"-"` + // NodeName - READ-ONLY; Name of the integration runtime node. + NodeName *string `json:"nodeName,omitempty"` + // MachineName - READ-ONLY; Machine name of the integration runtime node. + MachineName *string `json:"machineName,omitempty"` + // HostServiceURI - READ-ONLY; URI for the host machine of the integration runtime. + HostServiceURI *string `json:"hostServiceUri,omitempty"` + // Status - READ-ONLY; Status of the integration runtime node. Possible values include: 'SelfHostedIntegrationRuntimeNodeStatusNeedRegistration', 'SelfHostedIntegrationRuntimeNodeStatusOnline', 'SelfHostedIntegrationRuntimeNodeStatusLimited', 'SelfHostedIntegrationRuntimeNodeStatusOffline', 'SelfHostedIntegrationRuntimeNodeStatusUpgrading', 'SelfHostedIntegrationRuntimeNodeStatusInitializing', 'SelfHostedIntegrationRuntimeNodeStatusInitializeFailed' + Status SelfHostedIntegrationRuntimeNodeStatus `json:"status,omitempty"` + // Capabilities - READ-ONLY; The integration runtime capabilities dictionary + Capabilities map[string]*string `json:"capabilities"` + // VersionStatus - READ-ONLY; Status of the integration runtime node version. + VersionStatus *string `json:"versionStatus,omitempty"` + // Version - READ-ONLY; Version of the integration runtime node. + Version *string `json:"version,omitempty"` + // RegisterTime - READ-ONLY; The time at which the integration runtime node was registered in ISO8601 format. + RegisterTime *date.Time `json:"registerTime,omitempty"` + // LastConnectTime - READ-ONLY; The most recent time at which the integration runtime was connected in ISO8601 format. + LastConnectTime *date.Time `json:"lastConnectTime,omitempty"` + // ExpiryTime - READ-ONLY; The time at which the integration runtime will expire in ISO8601 format. + ExpiryTime *date.Time `json:"expiryTime,omitempty"` + // LastStartTime - READ-ONLY; The time the node last started up. + LastStartTime *date.Time `json:"lastStartTime,omitempty"` + // LastStopTime - READ-ONLY; The integration runtime node last stop time. + LastStopTime *date.Time `json:"lastStopTime,omitempty"` + // LastUpdateResult - READ-ONLY; The result of the last integration runtime node update. Possible values include: 'IntegrationRuntimeUpdateResultNone', 'IntegrationRuntimeUpdateResultSucceed', 'IntegrationRuntimeUpdateResultFail' + LastUpdateResult IntegrationRuntimeUpdateResult `json:"lastUpdateResult,omitempty"` + // LastStartUpdateTime - READ-ONLY; The last time for the integration runtime node update start. + LastStartUpdateTime *date.Time `json:"lastStartUpdateTime,omitempty"` + // LastEndUpdateTime - READ-ONLY; The last time for the integration runtime node update end. + LastEndUpdateTime *date.Time `json:"lastEndUpdateTime,omitempty"` + // IsActiveDispatcher - READ-ONLY; Indicates whether this node is the active dispatcher for integration runtime requests. + IsActiveDispatcher *bool `json:"isActiveDispatcher,omitempty"` + // ConcurrentJobsLimit - READ-ONLY; Maximum concurrent jobs on the integration runtime node. + ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` + // MaxConcurrentJobs - READ-ONLY; The maximum concurrent jobs in this integration runtime. + MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty"` } -// AsJSONSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsJSONSource() (*JSONSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeNode. +func (shirn SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) } -// AsDelimitedTextSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false +// SelfHostedIntegrationRuntimeStatus self-hosted integration runtime status. +type SelfHostedIntegrationRuntimeStatus struct { + // SelfHostedIntegrationRuntimeStatusTypeProperties - Self-hosted integration runtime status type properties. + *SelfHostedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. + DataFactoryName *string `json:"dataFactoryName,omitempty"` + // State - READ-ONLY; The state of integration runtime. Possible values include: 'IntegrationRuntimeStateInitial', 'IntegrationRuntimeStateStopped', 'IntegrationRuntimeStateStarted', 'IntegrationRuntimeStateStarting', 'IntegrationRuntimeStateStopping', 'IntegrationRuntimeStateNeedRegistration', 'IntegrationRuntimeStateOnline', 'IntegrationRuntimeStateLimited', 'IntegrationRuntimeStateOffline', 'IntegrationRuntimeStateAccessDenied' + State IntegrationRuntimeState `json:"state,omitempty"` + // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' + Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` } -// AsParquetSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false +// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatus. +func (shirs SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { + shirs.Type = TypeBasicIntegrationRuntimeStatusTypeSelfHosted + objectMap := make(map[string]interface{}) + if shirs.SelfHostedIntegrationRuntimeStatusTypeProperties != nil { + objectMap["typeProperties"] = shirs.SelfHostedIntegrationRuntimeStatusTypeProperties + } + if shirs.Type != "" { + objectMap["type"] = shirs.Type + } + for k, v := range shirs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsExcelSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false +// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. +func (shirs SelfHostedIntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { + return &shirs, true } -// AsAvroSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAvroSource() (*AvroSource, bool) { +// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. +func (shirs SelfHostedIntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCopySource() (*CopySource, bool) { +// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. +func (shirs SelfHostedIntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsBasicCopySource() (BasicCopySource, bool) { - return &spols, true +// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. +func (shirs SelfHostedIntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { + return &shirs, true } -// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListSource struct. -func (spols *SharePointOnlineListSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntimeStatus struct. +func (shirs *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -214640,23 +216495,14 @@ func (spols *SharePointOnlineListSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - spols.Query = query - } - case "httpRequestTimeout": + case "typeProperties": if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) + var selfHostedIntegrationRuntimeStatusTypeProperties SelfHostedIntegrationRuntimeStatusTypeProperties + err = json.Unmarshal(*v, &selfHostedIntegrationRuntimeStatusTypeProperties) if err != nil { return err } - spols.HTTPRequestTimeout = HTTPRequestTimeout + shirs.SelfHostedIntegrationRuntimeStatusTypeProperties = &selfHostedIntegrationRuntimeStatusTypeProperties } default: if v != nil { @@ -214665,46 +216511,113 @@ func (spols *SharePointOnlineListSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if spols.AdditionalProperties == nil { - spols.AdditionalProperties = make(map[string]interface{}) + if shirs.AdditionalProperties == nil { + shirs.AdditionalProperties = make(map[string]interface{}) } - spols.AdditionalProperties[k] = additionalProperties + shirs.AdditionalProperties[k] = additionalProperties } - case "sourceRetryCount": + case "dataFactoryName": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var dataFactoryName string + err = json.Unmarshal(*v, &dataFactoryName) if err != nil { return err } - spols.SourceRetryCount = sourceRetryCount + shirs.DataFactoryName = &dataFactoryName } - case "sourceRetryWait": + case "state": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var state IntegrationRuntimeState + err = json.Unmarshal(*v, &state) if err != nil { return err } - spols.SourceRetryWait = sourceRetryWait + shirs.State = state } - case "maxConcurrentConnections": + case "type": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var typeVar TypeBasicIntegrationRuntimeStatus + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - spols.MaxConcurrentConnections = maxConcurrentConnections + shirs.Type = typeVar } - case "type": + } + } + + return nil +} + +// SelfHostedIntegrationRuntimeStatusTypeProperties self-hosted integration runtime status type properties. +type SelfHostedIntegrationRuntimeStatusTypeProperties struct { + // CreateTime - READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. + CreateTime *date.Time `json:"createTime,omitempty"` + // TaskQueueID - READ-ONLY; The task queue id of the integration runtime. + TaskQueueID *string `json:"taskQueueId,omitempty"` + // InternalChannelEncryption - READ-ONLY; It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration runtime nodes exist). Possible values include: 'NotSet', 'SslEncrypted', 'NotEncrypted' + InternalChannelEncryption IntegrationRuntimeInternalChannelEncryptionMode `json:"internalChannelEncryption,omitempty"` + // Version - READ-ONLY; Version of the integration runtime. + Version *string `json:"version,omitempty"` + // Nodes - The list of nodes for this integration runtime. + Nodes *[]SelfHostedIntegrationRuntimeNode `json:"nodes,omitempty"` + // ScheduledUpdateDate - READ-ONLY; The date at which the integration runtime will be scheduled to update, in ISO8601 format. + ScheduledUpdateDate *date.Time `json:"scheduledUpdateDate,omitempty"` + // UpdateDelayOffset - READ-ONLY; The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours + UpdateDelayOffset *string `json:"updateDelayOffset,omitempty"` + // LocalTimeZoneOffset - READ-ONLY; The local time zone offset in hours. + LocalTimeZoneOffset *string `json:"localTimeZoneOffset,omitempty"` + // Capabilities - READ-ONLY; Object with additional information about integration runtime capabilities. + Capabilities map[string]*string `json:"capabilities"` + // ServiceUrls - READ-ONLY; The URLs for the services used in integration runtime backend service. + ServiceUrls *[]string `json:"serviceUrls,omitempty"` + // AutoUpdate - READ-ONLY; Whether Self-hosted integration runtime auto update has been turned on. Possible values include: 'On', 'Off' + AutoUpdate IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty"` + // VersionStatus - READ-ONLY; Status of the integration runtime version. + VersionStatus *string `json:"versionStatus,omitempty"` + // Links - The list of linked integration runtimes that are created to share with this integration runtime. + Links *[]LinkedIntegrationRuntime `json:"links,omitempty"` + // PushedVersion - READ-ONLY; The version that the integration runtime is going to update to. + PushedVersion *string `json:"pushedVersion,omitempty"` + // LatestVersion - READ-ONLY; The latest version on download center. + LatestVersion *string `json:"latestVersion,omitempty"` + // AutoUpdateETA - READ-ONLY; The estimated time when the self-hosted integration runtime will be updated. + AutoUpdateETA *date.Time `json:"autoUpdateETA,omitempty"` +} + +// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatusTypeProperties. +func (shirstp SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if shirstp.Nodes != nil { + objectMap["nodes"] = shirstp.Nodes + } + if shirstp.Links != nil { + objectMap["links"] = shirstp.Links + } + return json.Marshal(objectMap) +} + +// SelfHostedIntegrationRuntimeTypeProperties the self-hosted integration runtime properties. +type SelfHostedIntegrationRuntimeTypeProperties struct { + LinkedInfo BasicLinkedIntegrationRuntimeType `json:"linkedInfo,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntimeTypeProperties struct. +func (shirtp *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "linkedInfo": if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) + linkedInfo, err := unmarshalBasicLinkedIntegrationRuntimeType(*v) if err != nil { return err } - spols.Type = typeVar + shirtp.LinkedInfo = linkedInfo } } } @@ -214712,10 +216625,10 @@ func (spols *SharePointOnlineListSource) UnmarshalJSON(body []byte) error { return nil } -// ShopifyLinkedService shopify Service linked service. -type ShopifyLinkedService struct { - // ShopifyLinkedServiceTypeProperties - Shopify Service linked service properties. - *ShopifyLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// ServiceNowLinkedService serviceNow server linked service. +type ServiceNowLinkedService struct { + // ServiceNowLinkedServiceTypeProperties - ServiceNow server linked service properties. + *ServiceNowLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -214730,546 +216643,546 @@ type ShopifyLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for ShopifyLinkedService. -func (sls ShopifyLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeShopify +// MarshalJSON is the custom marshaler for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) MarshalJSON() ([]byte, error) { + snls.Type = TypeServiceNow objectMap := make(map[string]interface{}) - if sls.ShopifyLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.ShopifyLinkedServiceTypeProperties + if snls.ServiceNowLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = snls.ServiceNowLinkedServiceTypeProperties } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia + if snls.ConnectVia != nil { + objectMap["connectVia"] = snls.ConnectVia } - if sls.Description != nil { - objectMap["description"] = sls.Description + if snls.Description != nil { + objectMap["description"] = snls.Description } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters + if snls.Parameters != nil { + objectMap["parameters"] = snls.Parameters } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations + if snls.Annotations != nil { + objectMap["annotations"] = snls.Annotations } - if sls.Type != "" { - objectMap["type"] = sls.Type + if snls.Type != "" { + objectMap["type"] = snls.Type } - for k, v := range sls.AdditionalProperties { + for k, v := range snls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return &sls, true +// AsShopifyLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false +// AsServiceNowLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return &snls, true } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true +// AsBasicLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &snls, true } -// UnmarshalJSON is the custom unmarshaler for ShopifyLinkedService struct. -func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for ServiceNowLinkedService struct. +func (snls *ServiceNowLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -215279,12 +217192,12 @@ func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var shopifyLinkedServiceTypeProperties ShopifyLinkedServiceTypeProperties - err = json.Unmarshal(*v, &shopifyLinkedServiceTypeProperties) + var serviceNowLinkedServiceTypeProperties ServiceNowLinkedServiceTypeProperties + err = json.Unmarshal(*v, &serviceNowLinkedServiceTypeProperties) if err != nil { return err } - sls.ShopifyLinkedServiceTypeProperties = &shopifyLinkedServiceTypeProperties + snls.ServiceNowLinkedServiceTypeProperties = &serviceNowLinkedServiceTypeProperties } default: if v != nil { @@ -215293,10 +217206,10 @@ func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) + if snls.AdditionalProperties == nil { + snls.AdditionalProperties = make(map[string]interface{}) } - sls.AdditionalProperties[k] = additionalProperties + snls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -215305,7 +217218,7 @@ func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sls.ConnectVia = &connectVia + snls.ConnectVia = &connectVia } case "description": if v != nil { @@ -215314,7 +217227,7 @@ func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sls.Description = &description + snls.Description = &description } case "parameters": if v != nil { @@ -215323,7 +217236,7 @@ func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sls.Parameters = parameters + snls.Parameters = parameters } case "annotations": if v != nil { @@ -215332,7 +217245,7 @@ func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sls.Annotations = &annotations + snls.Annotations = &annotations } case "type": if v != nil { @@ -215341,7 +217254,7 @@ func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sls.Type = typeVar + snls.Type = typeVar } } } @@ -215349,12 +217262,20 @@ func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { return nil } -// ShopifyLinkedServiceTypeProperties shopify Service linked service properties. -type ShopifyLinkedServiceTypeProperties struct { - // Host - The endpoint of the Shopify server. (i.e. mystore.myshopify.com) - Host interface{} `json:"host,omitempty"` - // AccessToken - The API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` +// ServiceNowLinkedServiceTypeProperties serviceNow server linked service properties. +type ServiceNowLinkedServiceTypeProperties struct { + // Endpoint - The endpoint of the ServiceNow server. (i.e. .service-now.com) + Endpoint interface{} `json:"endpoint,omitempty"` + // AuthenticationType - The authentication type to use. Possible values include: 'ServiceNowAuthenticationTypeBasic', 'ServiceNowAuthenticationTypeOAuth2' + AuthenticationType ServiceNowAuthenticationType `json:"authenticationType,omitempty"` + // Username - The user name used to connect to the ServiceNow server for Basic and OAuth2 authentication. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name for Basic and OAuth2 authentication. + Password BasicSecretBase `json:"password,omitempty"` + // ClientID - The client id for OAuth2 authentication. + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret for OAuth2 authentication. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` // UseHostVerification - 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. @@ -215365,8 +217286,8 @@ type ShopifyLinkedServiceTypeProperties struct { EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for ShopifyLinkedServiceTypeProperties struct. -func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for ServiceNowLinkedServiceTypeProperties struct. +func (snlstp *ServiceNowLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -215374,22 +217295,57 @@ func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) erro } for k, v := range m { switch k { - case "host": + case "endpoint": if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) if err != nil { return err } - slstp.Host = host + snlstp.Endpoint = endpoint } - case "accessToken": + case "authenticationType": if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) + var authenticationType ServiceNowAuthenticationType + err = json.Unmarshal(*v, &authenticationType) if err != nil { return err } - slstp.AccessToken = accessToken + snlstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + snlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + snlstp.Password = password + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + snlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + snlstp.ClientSecret = clientSecret } case "useEncryptedEndpoints": if v != nil { @@ -215398,7 +217354,7 @@ func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) erro if err != nil { return err } - slstp.UseEncryptedEndpoints = useEncryptedEndpoints + snlstp.UseEncryptedEndpoints = useEncryptedEndpoints } case "useHostVerification": if v != nil { @@ -215407,7 +217363,7 @@ func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) erro if err != nil { return err } - slstp.UseHostVerification = useHostVerification + snlstp.UseHostVerification = useHostVerification } case "usePeerVerification": if v != nil { @@ -215416,7 +217372,7 @@ func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) erro if err != nil { return err } - slstp.UsePeerVerification = usePeerVerification + snlstp.UsePeerVerification = usePeerVerification } case "encryptedCredential": if v != nil { @@ -215425,7 +217381,7 @@ func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) erro if err != nil { return err } - slstp.EncryptedCredential = encryptedCredential + snlstp.EncryptedCredential = encryptedCredential } } } @@ -215433,8 +217389,8 @@ func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) erro return nil } -// ShopifyObjectDataset shopify Service dataset. -type ShopifyObjectDataset struct { +// ServiceNowObjectDataset serviceNow server dataset. +type ServiceNowObjectDataset struct { // GenericDatasetTypeProperties - Properties specific to this dataset type. *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -215457,520 +217413,520 @@ type ShopifyObjectDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeShopifyObject +// MarshalJSON is the custom marshaler for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) MarshalJSON() ([]byte, error) { + snod.Type = TypeServiceNowObject objectMap := make(map[string]interface{}) - if sod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = sod.GenericDatasetTypeProperties + if snod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = snod.GenericDatasetTypeProperties } - if sod.Description != nil { - objectMap["description"] = sod.Description + if snod.Description != nil { + objectMap["description"] = snod.Description } - if sod.Structure != nil { - objectMap["structure"] = sod.Structure + if snod.Structure != nil { + objectMap["structure"] = snod.Structure } - if sod.Schema != nil { - objectMap["schema"] = sod.Schema + if snod.Schema != nil { + objectMap["schema"] = snod.Schema } - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName + if snod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = snod.LinkedServiceName } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters + if snod.Parameters != nil { + objectMap["parameters"] = snod.Parameters } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations + if snod.Annotations != nil { + objectMap["annotations"] = snod.Annotations } - if sod.Folder != nil { - objectMap["folder"] = sod.Folder + if snod.Folder != nil { + objectMap["folder"] = snod.Folder } - if sod.Type != "" { - objectMap["type"] = sod.Type + if snod.Type != "" { + objectMap["type"] = snod.Type } - for k, v := range sod.AdditionalProperties { + for k, v := range snod.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return &sod, true +// AsShopifyObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false +// AsServiceNowObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return &snod, true } -// AsQuickBooksObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true +// AsBasicDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &snod, true } -// UnmarshalJSON is the custom unmarshaler for ShopifyObjectDataset struct. -func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for ServiceNowObjectDataset struct. +func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -215985,7 +217941,7 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + snod.GenericDatasetTypeProperties = &genericDatasetTypeProperties } default: if v != nil { @@ -215994,10 +217950,10 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sod.AdditionalProperties == nil { - sod.AdditionalProperties = make(map[string]interface{}) + if snod.AdditionalProperties == nil { + snod.AdditionalProperties = make(map[string]interface{}) } - sod.AdditionalProperties[k] = additionalProperties + snod.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -216006,7 +217962,7 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sod.Description = &description + snod.Description = &description } case "structure": if v != nil { @@ -216015,7 +217971,7 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sod.Structure = structure + snod.Structure = structure } case "schema": if v != nil { @@ -216024,7 +217980,7 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sod.Schema = schema + snod.Schema = schema } case "linkedServiceName": if v != nil { @@ -216033,7 +217989,7 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sod.LinkedServiceName = &linkedServiceName + snod.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -216042,7 +217998,7 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sod.Parameters = parameters + snod.Parameters = parameters } case "annotations": if v != nil { @@ -216051,7 +218007,7 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sod.Annotations = &annotations + snod.Annotations = &annotations } case "folder": if v != nil { @@ -216060,7 +218016,7 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sod.Folder = &folder + snod.Folder = &folder } case "type": if v != nil { @@ -216069,7 +218025,7 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sod.Type = typeVar + snod.Type = typeVar } } } @@ -216077,8 +218033,8 @@ func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { return nil } -// ShopifySource a copy activity Shopify Service source. -type ShopifySource struct { +// ServiceNowSource a copy activity ServiceNow server source. +type ServiceNowSource struct { // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). Query interface{} `json:"query,omitempty"` // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). @@ -216097,1153 +218053,855 @@ type ShopifySource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for ShopifySource. -func (ss ShopifySource) MarshalJSON() ([]byte, error) { - ss.Type = TypeShopifySource +// MarshalJSON is the custom marshaler for ServiceNowSource. +func (sns ServiceNowSource) MarshalJSON() ([]byte, error) { + sns.Type = TypeServiceNowSource objectMap := make(map[string]interface{}) - if ss.Query != nil { - objectMap["query"] = ss.Query + if sns.Query != nil { + objectMap["query"] = sns.Query } - if ss.QueryTimeout != nil { - objectMap["queryTimeout"] = ss.QueryTimeout + if sns.QueryTimeout != nil { + objectMap["queryTimeout"] = sns.QueryTimeout } - if ss.AdditionalColumns != nil { - objectMap["additionalColumns"] = ss.AdditionalColumns + if sns.AdditionalColumns != nil { + objectMap["additionalColumns"] = sns.AdditionalColumns } - if ss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ss.SourceRetryCount + if sns.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sns.SourceRetryCount } - if ss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ss.SourceRetryWait + if sns.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sns.SourceRetryWait } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + if sns.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sns.MaxConcurrentConnections } - if ss.Type != "" { - objectMap["type"] = ss.Type + if sns.Type != "" { + objectMap["type"] = sns.Type } - for k, v := range ss.AdditionalProperties { + for k, v := range sns.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsShopifySource() (*ShopifySource, bool) { - return &ss, true -} - -// AsServiceNowSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsJiraSource() (*JiraSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsImpalaSource() (*ImpalaSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHubspotSource() (*HubspotSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHiveSource() (*HiveSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHBaseSource() (*HBaseSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsOffice365Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsEloquaSource() (*EloquaSource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDrillSource() (*DrillSource, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsConcurSource() (*ConcurSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsWebSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsOracleSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCassandraSource() (*CassandraSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsTeradataSource() (*TeradataSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsRestSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSQLMISource() (*SQLMISource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsODataSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSQLSource() (*SQLSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapTableSource() (*SapTableSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapEccSource() (*SapEccSource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsBlobSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapBwSource() (*SapBwSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSybaseSource() (*SybaseSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMySQLSource() (*MySQLSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOdbcSource() (*OdbcSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDb2Source() (*Db2Source, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsInformixSource() (*InformixSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsTabularSource() (*TabularSource, bool) { +// AsZohoSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ss, true -} - -// AsBinarySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsBinarySource() (*BinarySource, bool) { +// AsXeroSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOrcSource() (*OrcSource, bool) { +// AsSquareSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsXMLSource() (*XMLSource, bool) { +// AsSparkSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsJSONSource() (*JSONSource, bool) { +// AsShopifySource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false +// AsServiceNowSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return &sns, true } -// AsParquetSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsParquetSource() (*ParquetSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsExcelSource() (*ExcelSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAvroSource() (*AvroSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCopySource() (*CopySource, bool) { +// AsPaypalSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for ShopifySource struct. -func (ss *ShopifySource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ss.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ss.AdditionalColumns = &additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SkipErrorFile skip error file. -type SkipErrorFile struct { - // FileMissing - Skip if file is deleted by other client during copy. Default is true. Type: boolean (or Expression with resultType boolean). - FileMissing interface{} `json:"fileMissing,omitempty"` - // DataInconsistency - Skip if source/sink file changed by other concurrent write. Default is false. Type: boolean (or Expression with resultType boolean). - DataInconsistency interface{} `json:"dataInconsistency,omitempty"` -} - -// SnowflakeDataset the snowflake dataset. -type SnowflakeDataset struct { - // SnowflakeDatasetTypeProperties - Snowflake dataset properties. - *SnowflakeDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeDataset. -func (sd SnowflakeDataset) MarshalJSON() ([]byte, error) { - sd.Type = TypeSnowflakeTable - objectMap := make(map[string]interface{}) - if sd.SnowflakeDatasetTypeProperties != nil { - objectMap["typeProperties"] = sd.SnowflakeDatasetTypeProperties - } - if sd.Description != nil { - objectMap["description"] = sd.Description - } - if sd.Structure != nil { - objectMap["structure"] = sd.Structure - } - if sd.Schema != nil { - objectMap["schema"] = sd.Schema - } - if sd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sd.LinkedServiceName - } - if sd.Parameters != nil { - objectMap["parameters"] = sd.Parameters - } - if sd.Annotations != nil { - objectMap["annotations"] = sd.Annotations - } - if sd.Folder != nil { - objectMap["folder"] = sd.Folder - } - if sd.Type != "" { - objectMap["type"] = sd.Type - } - for k, v := range sd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return &sd, true -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsSQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sns, true } -// AsRestResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsBinarySource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsAvroSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsCopySource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false +// AsBasicCopySource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sns, true } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for ServiceNowSource struct. +func (sns *ServiceNowSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + sns.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sns.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sns.AdditionalColumns = &additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sns.AdditionalProperties == nil { + sns.AdditionalProperties = make(map[string]interface{}) + } + sns.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sns.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sns.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sns.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sns.Type = typeVar + } + } + } + + return nil } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false +// SetVariableActivity set value for a Variable. +type SetVariableActivity struct { + // SetVariableActivityTypeProperties - Set Variable activity properties. + *SetVariableActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` } -// AsMySQLTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false +// MarshalJSON is the custom marshaler for SetVariableActivity. +func (sva SetVariableActivity) MarshalJSON() ([]byte, error) { + sva.Type = TypeSetVariable + objectMap := make(map[string]interface{}) + if sva.SetVariableActivityTypeProperties != nil { + objectMap["typeProperties"] = sva.SetVariableActivityTypeProperties + } + if sva.Name != nil { + objectMap["name"] = sva.Name + } + if sva.Description != nil { + objectMap["description"] = sva.Description + } + if sva.DependsOn != nil { + objectMap["dependsOn"] = sva.DependsOn + } + if sva.UserProperties != nil { + objectMap["userProperties"] = sva.UserProperties + } + if sva.Type != "" { + objectMap["type"] = sva.Type + } + for k, v := range sva.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsOdbcTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsExecuteDataFlowActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsAzureFunctionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDatabricksSparkJarActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsDatabricksNotebookActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsGetMetadataActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsWebActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsWebActivity() (*WebActivity, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsLookupActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsLookupActivity() (*LookupActivity, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsDeleteActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsDeleteActivity() (*DeleteActivity, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsCustomActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsCustomActivity() (*CustomActivity, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsExecuteSSISPackageActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsHDInsightSparkActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsHDInsightStreamingActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsHDInsightMapReduceActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsHDInsightPigActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsHDInsightHiveActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCopyActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsCopyActivity() (*CopyActivity, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsExecutionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsExecutionActivity() (*ExecutionActivity, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsBasicExecutionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsWebHookActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsWebHookActivity() (*WebHookActivity, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAppendVariableActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false +// AsSetVariableActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return &sva, true } -// AsAzureBlobDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsFilterActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsValidationActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsValidationActivity() (*ValidationActivity, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsUntilActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsWaitActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsWaitActivity() (*WaitActivity, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsForEachActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsForEachActivity() (*ForEachActivity, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsSwitchActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsSwitchActivity() (*SwitchActivity, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsIfConditionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExecutePipelineActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsControlActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsControlActivity() (*ControlActivity, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false +// AsBasicControlActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &sva, true } -// AsDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDataset() (*Dataset, bool) { +// AsActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsActivity() (*Activity, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsBasicDataset() (BasicDataset, bool) { - return &sd, true +// AsBasicActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsBasicActivity() (BasicActivity, bool) { + return &sva, true } -// UnmarshalJSON is the custom unmarshaler for SnowflakeDataset struct. -func (sd *SnowflakeDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SetVariableActivity struct. +func (sva *SetVariableActivity) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -217253,12 +218911,12 @@ func (sd *SnowflakeDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var snowflakeDatasetTypeProperties SnowflakeDatasetTypeProperties - err = json.Unmarshal(*v, &snowflakeDatasetTypeProperties) + var setVariableActivityTypeProperties SetVariableActivityTypeProperties + err = json.Unmarshal(*v, &setVariableActivityTypeProperties) if err != nil { return err } - sd.SnowflakeDatasetTypeProperties = &snowflakeDatasetTypeProperties + sva.SetVariableActivityTypeProperties = &setVariableActivityTypeProperties } default: if v != nil { @@ -217267,82 +218925,55 @@ func (sd *SnowflakeDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sd.AdditionalProperties == nil { - sd.AdditionalProperties = make(map[string]interface{}) - } - sd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err + if sva.AdditionalProperties == nil { + sva.AdditionalProperties = make(map[string]interface{}) } - sd.Schema = schema + sva.AdditionalProperties[k] = additionalProperties } - case "linkedServiceName": + case "name": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var name string + err = json.Unmarshal(*v, &name) if err != nil { return err } - sd.LinkedServiceName = &linkedServiceName + sva.Name = &name } - case "parameters": + case "description": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - sd.Parameters = parameters + sva.Description = &description } - case "annotations": + case "dependsOn": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) if err != nil { return err } - sd.Annotations = &annotations + sva.DependsOn = &dependsOn } - case "folder": + case "userProperties": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) if err != nil { return err } - sd.Folder = &folder + sva.UserProperties = &userProperties } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicActivity err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sd.Type = typeVar + sva.Type = typeVar } } } @@ -217350,67 +218981,122 @@ func (sd *SnowflakeDataset) UnmarshalJSON(body []byte) error { return nil } -// SnowflakeDatasetTypeProperties snowflake dataset properties. -type SnowflakeDatasetTypeProperties struct { - // Schema - The schema name of the Snowflake database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the Snowflake database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` +// SetVariableActivityTypeProperties setVariable activity properties. +type SetVariableActivityTypeProperties struct { + // VariableName - Name of the variable whose value needs to be set. + VariableName *string `json:"variableName,omitempty"` + // Value - Value to be set. Could be a static value or Expression + Value interface{} `json:"value,omitempty"` } -// SnowflakeExportCopyCommand snowflake export command settings. -type SnowflakeExportCopyCommand struct { - // AdditionalCopyOptions - Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" } - AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions"` - // AdditionalFormatOptions - Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" } - AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions"` +// SftpLocation the location of SFTP dataset. +type SftpLocation struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeExportSettings', 'TypeSnowflakeExportCopyCommand', 'TypeAzureDatabricksDeltaLakeExportCommand' - Type TypeBasicExportSettings `json:"type,omitempty"` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeDatasetLocation', 'TypeHdfsLocation', 'TypeHTTPServerLocation', 'TypeSftpLocation', 'TypeFtpServerLocation', 'TypeGoogleCloudStorageLocation', 'TypeOracleCloudStorageLocation', 'TypeAmazonS3CompatibleLocation', 'TypeAzureFileStorageLocation', 'TypeFileServerLocation', 'TypeAmazonS3Location', 'TypeAzureDataLakeStoreLocation', 'TypeAzureBlobFSLocation', 'TypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SnowflakeExportCopyCommand. -func (secc SnowflakeExportCopyCommand) MarshalJSON() ([]byte, error) { - secc.Type = TypeSnowflakeExportCopyCommand +// MarshalJSON is the custom marshaler for SftpLocation. +func (sl SftpLocation) MarshalJSON() ([]byte, error) { + sl.Type = TypeSftpLocation objectMap := make(map[string]interface{}) - if secc.AdditionalCopyOptions != nil { - objectMap["additionalCopyOptions"] = secc.AdditionalCopyOptions + if sl.FolderPath != nil { + objectMap["folderPath"] = sl.FolderPath } - if secc.AdditionalFormatOptions != nil { - objectMap["additionalFormatOptions"] = secc.AdditionalFormatOptions + if sl.FileName != nil { + objectMap["fileName"] = sl.FileName } - if secc.Type != "" { - objectMap["type"] = secc.Type + if sl.Type != "" { + objectMap["type"] = sl.Type } - for k, v := range secc.AdditionalProperties { + for k, v := range sl.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for SnowflakeExportCopyCommand. -func (secc SnowflakeExportCopyCommand) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { - return &secc, true +// AsHdfsLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false } -// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for SnowflakeExportCopyCommand. -func (secc SnowflakeExportCopyCommand) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { +// AsHTTPServerLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { return nil, false } -// AsExportSettings is the BasicExportSettings implementation for SnowflakeExportCopyCommand. -func (secc SnowflakeExportCopyCommand) AsExportSettings() (*ExportSettings, bool) { +// AsSftpLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsSftpLocation() (*SftpLocation, bool) { + return &sl, true +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { return nil, false } -// AsBasicExportSettings is the BasicExportSettings implementation for SnowflakeExportCopyCommand. -func (secc SnowflakeExportCopyCommand) AsBasicExportSettings() (BasicExportSettings, bool) { - return &secc, true +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SnowflakeExportCopyCommand struct. -func (secc *SnowflakeExportCopyCommand) UnmarshalJSON(body []byte) error { +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &sl, true +} + +// UnmarshalJSON is the custom unmarshaler for SftpLocation struct. +func (sl *SftpLocation) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -217418,44 +219104,44 @@ func (secc *SnowflakeExportCopyCommand) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "additionalCopyOptions": + default: if v != nil { - var additionalCopyOptions map[string]interface{} - err = json.Unmarshal(*v, &additionalCopyOptions) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - secc.AdditionalCopyOptions = additionalCopyOptions + if sl.AdditionalProperties == nil { + sl.AdditionalProperties = make(map[string]interface{}) + } + sl.AdditionalProperties[k] = additionalProperties } - case "additionalFormatOptions": + case "folderPath": if v != nil { - var additionalFormatOptions map[string]interface{} - err = json.Unmarshal(*v, &additionalFormatOptions) + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) if err != nil { return err } - secc.AdditionalFormatOptions = additionalFormatOptions + sl.FolderPath = folderPath } - default: + case "fileName": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var fileName interface{} + err = json.Unmarshal(*v, &fileName) if err != nil { return err } - if secc.AdditionalProperties == nil { - secc.AdditionalProperties = make(map[string]interface{}) - } - secc.AdditionalProperties[k] = additionalProperties + sl.FileName = fileName } case "type": if v != nil { - var typeVar TypeBasicExportSettings + var typeVar TypeBasicDatasetLocation err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - secc.Type = typeVar + sl.Type = typeVar } } } @@ -217463,59 +219149,154 @@ func (secc *SnowflakeExportCopyCommand) UnmarshalJSON(body []byte) error { return nil } -// SnowflakeImportCopyCommand snowflake import command settings. -type SnowflakeImportCopyCommand struct { - // AdditionalCopyOptions - Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" } - AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions"` - // AdditionalFormatOptions - Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { "FORCE": "TRUE", "LOAD_UNCERTAIN_FILES": "'FALSE'" } - AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions"` +// SftpReadSettings sftp read settings. +type SftpReadSettings struct { + // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). + Recursive interface{} `json:"recursive,omitempty"` + // WildcardFolderPath - Sftp wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Sftp wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. + EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // FileListPath - Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). + FileListPath interface{} `json:"fileListPath,omitempty"` + // DeleteFilesAfterCompletion - Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). + DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeImportSettings', 'TypeAzureDatabricksDeltaLakeImportCommand', 'TypeSnowflakeImportCopyCommand' - Type TypeBasicImportSettings `json:"type,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeStoreReadSettings', 'TypeHdfsReadSettings', 'TypeHTTPReadSettings', 'TypeSftpReadSettings', 'TypeFtpReadSettings', 'TypeGoogleCloudStorageReadSettings', 'TypeOracleCloudStorageReadSettings', 'TypeAmazonS3CompatibleReadSettings', 'TypeAzureFileStorageReadSettings', 'TypeFileServerReadSettings', 'TypeAmazonS3ReadSettings', 'TypeAzureDataLakeStoreReadSettings', 'TypeAzureBlobFSReadSettings', 'TypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SnowflakeImportCopyCommand. -func (sicc SnowflakeImportCopyCommand) MarshalJSON() ([]byte, error) { - sicc.Type = TypeSnowflakeImportCopyCommand +// MarshalJSON is the custom marshaler for SftpReadSettings. +func (srs SftpReadSettings) MarshalJSON() ([]byte, error) { + srs.Type = TypeSftpReadSettings objectMap := make(map[string]interface{}) - if sicc.AdditionalCopyOptions != nil { - objectMap["additionalCopyOptions"] = sicc.AdditionalCopyOptions + if srs.Recursive != nil { + objectMap["recursive"] = srs.Recursive } - if sicc.AdditionalFormatOptions != nil { - objectMap["additionalFormatOptions"] = sicc.AdditionalFormatOptions + if srs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = srs.WildcardFolderPath } - if sicc.Type != "" { - objectMap["type"] = sicc.Type + if srs.WildcardFileName != nil { + objectMap["wildcardFileName"] = srs.WildcardFileName } - for k, v := range sicc.AdditionalProperties { + if srs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = srs.EnablePartitionDiscovery + } + if srs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = srs.PartitionRootPath + } + if srs.FileListPath != nil { + objectMap["fileListPath"] = srs.FileListPath + } + if srs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = srs.DeleteFilesAfterCompletion + } + if srs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = srs.ModifiedDatetimeStart + } + if srs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = srs.ModifiedDatetimeEnd + } + if srs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = srs.MaxConcurrentConnections + } + if srs.Type != "" { + objectMap["type"] = srs.Type + } + for k, v := range srs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeImportCommand is the BasicImportSettings implementation for SnowflakeImportCopyCommand. -func (sicc SnowflakeImportCopyCommand) AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) { +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { return nil, false } -// AsSnowflakeImportCopyCommand is the BasicImportSettings implementation for SnowflakeImportCopyCommand. -func (sicc SnowflakeImportCopyCommand) AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) { - return &sicc, true +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false } -// AsImportSettings is the BasicImportSettings implementation for SnowflakeImportCopyCommand. -func (sicc SnowflakeImportCopyCommand) AsImportSettings() (*ImportSettings, bool) { +// AsSftpReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return &srs, true +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { return nil, false } -// AsBasicImportSettings is the BasicImportSettings implementation for SnowflakeImportCopyCommand. -func (sicc SnowflakeImportCopyCommand) AsBasicImportSettings() (BasicImportSettings, bool) { - return &sicc, true +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SnowflakeImportCopyCommand struct. -func (sicc *SnowflakeImportCopyCommand) UnmarshalJSON(body []byte) error { +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &srs, true +} + +// UnmarshalJSON is the custom unmarshaler for SftpReadSettings struct. +func (srs *SftpReadSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -217523,23 +219304,86 @@ func (sicc *SnowflakeImportCopyCommand) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "additionalCopyOptions": + case "recursive": if v != nil { - var additionalCopyOptions map[string]interface{} - err = json.Unmarshal(*v, &additionalCopyOptions) + var recursive interface{} + err = json.Unmarshal(*v, &recursive) if err != nil { return err } - sicc.AdditionalCopyOptions = additionalCopyOptions + srs.Recursive = recursive } - case "additionalFormatOptions": + case "wildcardFolderPath": if v != nil { - var additionalFormatOptions map[string]interface{} - err = json.Unmarshal(*v, &additionalFormatOptions) + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) if err != nil { return err } - sicc.AdditionalFormatOptions = additionalFormatOptions + srs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + srs.WildcardFileName = wildcardFileName + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery bool + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + srs.EnablePartitionDiscovery = &enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + srs.PartitionRootPath = partitionRootPath + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + srs.FileListPath = fileListPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + srs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + srs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + srs.ModifiedDatetimeEnd = modifiedDatetimeEnd } default: if v != nil { @@ -217548,19 +219392,28 @@ func (sicc *SnowflakeImportCopyCommand) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sicc.AdditionalProperties == nil { - sicc.AdditionalProperties = make(map[string]interface{}) + if srs.AdditionalProperties == nil { + srs.AdditionalProperties = make(map[string]interface{}) } - sicc.AdditionalProperties[k] = additionalProperties + srs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + srs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicImportSettings + var typeVar TypeBasicStoreReadSettings err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sicc.Type = typeVar + srs.Type = typeVar } } } @@ -217568,10 +219421,10 @@ func (sicc *SnowflakeImportCopyCommand) UnmarshalJSON(body []byte) error { return nil } -// SnowflakeLinkedService snowflake linked service. -type SnowflakeLinkedService struct { - // SnowflakeLinkedServiceTypeProperties - Snowflake linked service properties. - *SnowflakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SftpServerLinkedService a linked service for an SSH File Transfer Protocol (SFTP) server. +type SftpServerLinkedService struct { + // SftpServerLinkedServiceTypeProperties - Properties specific to this linked service type. + *SftpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // ConnectVia - The integration runtime reference. @@ -217586,546 +219439,546 @@ type SnowflakeLinkedService struct { Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeSnowflake +// MarshalJSON is the custom marshaler for SftpServerLinkedService. +func (ssls SftpServerLinkedService) MarshalJSON() ([]byte, error) { + ssls.Type = TypeSftp objectMap := make(map[string]interface{}) - if sls.SnowflakeLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SnowflakeLinkedServiceTypeProperties + if ssls.SftpServerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = ssls.SftpServerLinkedServiceTypeProperties } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia + if ssls.ConnectVia != nil { + objectMap["connectVia"] = ssls.ConnectVia } - if sls.Description != nil { - objectMap["description"] = sls.Description + if ssls.Description != nil { + objectMap["description"] = ssls.Description } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters + if ssls.Parameters != nil { + objectMap["parameters"] = ssls.Parameters } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations + if ssls.Annotations != nil { + objectMap["annotations"] = ssls.Annotations } - if sls.Type != "" { - objectMap["type"] = sls.Type + if ssls.Type != "" { + objectMap["type"] = ssls.Type } - for k, v := range sls.AdditionalProperties { + for k, v := range ssls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return &sls, true -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return &ssls, true +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true +// AsBasicLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ssls, true } -// UnmarshalJSON is the custom unmarshaler for SnowflakeLinkedService struct. -func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SftpServerLinkedService struct. +func (ssls *SftpServerLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -218135,12 +219988,12 @@ func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var snowflakeLinkedServiceTypeProperties SnowflakeLinkedServiceTypeProperties - err = json.Unmarshal(*v, &snowflakeLinkedServiceTypeProperties) + var sftpServerLinkedServiceTypeProperties SftpServerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sftpServerLinkedServiceTypeProperties) if err != nil { return err } - sls.SnowflakeLinkedServiceTypeProperties = &snowflakeLinkedServiceTypeProperties + ssls.SftpServerLinkedServiceTypeProperties = &sftpServerLinkedServiceTypeProperties } default: if v != nil { @@ -218149,10 +220002,10 @@ func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) + if ssls.AdditionalProperties == nil { + ssls.AdditionalProperties = make(map[string]interface{}) } - sls.AdditionalProperties[k] = additionalProperties + ssls.AdditionalProperties[k] = additionalProperties } case "connectVia": if v != nil { @@ -218161,7 +220014,7 @@ func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sls.ConnectVia = &connectVia + ssls.ConnectVia = &connectVia } case "description": if v != nil { @@ -218170,7 +220023,7 @@ func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sls.Description = &description + ssls.Description = &description } case "parameters": if v != nil { @@ -218179,7 +220032,7 @@ func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sls.Parameters = parameters + ssls.Parameters = parameters } case "annotations": if v != nil { @@ -218188,7 +220041,7 @@ func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sls.Annotations = &annotations + ssls.Annotations = &annotations } case "type": if v != nil { @@ -218197,7 +220050,7 @@ func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - sls.Type = typeVar + ssls.Type = typeVar } } } @@ -218205,269 +220058,226 @@ func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { return nil } -// SnowflakeLinkedServiceTypeProperties snowflake linked service properties. -type SnowflakeLinkedServiceTypeProperties struct { - // ConnectionString - The connection string of snowflake. Type: string, SecureString. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` +// SftpServerLinkedServiceTypeProperties properties specific to this linked service type. +type SftpServerLinkedServiceTypeProperties struct { + // Host - The SFTP server host name. Type: string (or Expression with resultType string). + Host interface{} `json:"host,omitempty"` + // Port - 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. + Port interface{} `json:"port,omitempty"` + // AuthenticationType - The authentication type to be used to connect to the FTP server. Possible values include: 'SftpAuthenticationTypeBasic', 'SftpAuthenticationTypeSSHPublicKey', 'SftpAuthenticationTypeMultiFactor' + AuthenticationType SftpAuthenticationType `json:"authenticationType,omitempty"` + // UserName - The username used to log on to the SFTP server. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to logon the SFTP server for Basic authentication. + Password BasicSecretBase `json:"password,omitempty"` // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + // PrivateKeyPath - 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). + PrivateKeyPath interface{} `json:"privateKeyPath,omitempty"` + // PrivateKeyContent - 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. + PrivateKeyContent BasicSecretBase `json:"privateKeyContent,omitempty"` + // PassPhrase - The password to decrypt the SSH private key if the SSH private key is encrypted. + PassPhrase BasicSecretBase `json:"passPhrase,omitempty"` + // SkipHostKeyValidation - If true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). + SkipHostKeyValidation interface{} `json:"skipHostKeyValidation,omitempty"` + // HostKeyFingerprint - The host key finger-print of the SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). + HostKeyFingerprint interface{} `json:"hostKeyFingerprint,omitempty"` } -// SnowflakeSink a copy activity snowflake sink. -type SnowflakeSink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // ImportSettings - Snowflake import settings. - ImportSettings *SnowflakeImportCopyCommand `json:"importSettings,omitempty"` +// UnmarshalJSON is the custom unmarshaler for SftpServerLinkedServiceTypeProperties struct. +func (sslstp *SftpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + sslstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + sslstp.Port = port + } + case "authenticationType": + if v != nil { + var authenticationType SftpAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + sslstp.AuthenticationType = authenticationType + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + sslstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sslstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + sslstp.EncryptedCredential = encryptedCredential + } + case "privateKeyPath": + if v != nil { + var privateKeyPath interface{} + err = json.Unmarshal(*v, &privateKeyPath) + if err != nil { + return err + } + sslstp.PrivateKeyPath = privateKeyPath + } + case "privateKeyContent": + if v != nil { + privateKeyContent, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sslstp.PrivateKeyContent = privateKeyContent + } + case "passPhrase": + if v != nil { + passPhrase, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sslstp.PassPhrase = passPhrase + } + case "skipHostKeyValidation": + if v != nil { + var skipHostKeyValidation interface{} + err = json.Unmarshal(*v, &skipHostKeyValidation) + if err != nil { + return err + } + sslstp.SkipHostKeyValidation = skipHostKeyValidation + } + case "hostKeyFingerprint": + if v != nil { + var hostKeyFingerprint interface{} + err = json.Unmarshal(*v, &hostKeyFingerprint) + if err != nil { + return err + } + sslstp.HostKeyFingerprint = hostKeyFingerprint + } + } + } + + return nil +} + +// SftpWriteSettings sftp write settings. +type SftpWriteSettings struct { + // OperationTimeout - Specifies the timeout for writing each chunk to SFTP server. Default value: 01:00:00 (one hour). Type: string (or Expression with resultType string). + OperationTimeout interface{} `json:"operationTimeout,omitempty"` + // UseTempFileRename - Upload to temporary file(s) and rename. Disable this option if your SFTP server doesn't support rename operation. Type: boolean (or Expression with resultType boolean). + UseTempFileRename interface{} `json:"useTempFileRename,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Type - Possible values include: 'TypeStoreWriteSettings', 'TypeAzureFileStorageWriteSettings', 'TypeFileServerWriteSettings', 'TypeAzureDataLakeStoreWriteSettings', 'TypeAzureBlobFSWriteSettings', 'TypeAzureBlobStorageWriteSettings', 'TypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SnowflakeSink. -func (ss SnowflakeSink) MarshalJSON() ([]byte, error) { - ss.Type = TypeSnowflakeSink +// MarshalJSON is the custom marshaler for SftpWriteSettings. +func (sws SftpWriteSettings) MarshalJSON() ([]byte, error) { + sws.Type = TypeSftpWriteSettings objectMap := make(map[string]interface{}) - if ss.PreCopyScript != nil { - objectMap["preCopyScript"] = ss.PreCopyScript - } - if ss.ImportSettings != nil { - objectMap["importSettings"] = ss.ImportSettings - } - if ss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ss.WriteBatchSize - } - if ss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout + if sws.OperationTimeout != nil { + objectMap["operationTimeout"] = sws.OperationTimeout } - if ss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ss.SinkRetryCount + if sws.UseTempFileRename != nil { + objectMap["useTempFileRename"] = sws.UseTempFileRename } - if ss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ss.SinkRetryWait + if sws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sws.MaxConcurrentConnections } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + if sws.CopyBehavior != nil { + objectMap["copyBehavior"] = sws.CopyBehavior } - if ss.Type != "" { - objectMap["type"] = ss.Type + if sws.Type != "" { + objectMap["type"] = sws.Type } - for k, v := range ss.AdditionalProperties { + for k, v := range sws.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return &ss, true -} - -// AsSQLDWSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsRestSink() (*RestSink, bool) { +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsOrcSink() (*OrcSink, bool) { +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsJSONSink() (*JSONSink, bool) { +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return &sws, true } -// AsCopySink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsCopySink() (*CopySink, bool) { +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ss, true +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &sws, true } -// UnmarshalJSON is the custom unmarshaler for SnowflakeSink struct. -func (ss *SnowflakeSink) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SftpWriteSettings struct. +func (sws *SftpWriteSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -218475,23 +220285,23 @@ func (ss *SnowflakeSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "preCopyScript": + case "operationTimeout": if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) + var operationTimeout interface{} + err = json.Unmarshal(*v, &operationTimeout) if err != nil { return err } - ss.PreCopyScript = preCopyScript + sws.OperationTimeout = operationTimeout } - case "importSettings": + case "useTempFileRename": if v != nil { - var importSettings SnowflakeImportCopyCommand - err = json.Unmarshal(*v, &importSettings) + var useTempFileRename interface{} + err = json.Unmarshal(*v, &useTempFileRename) if err != nil { return err } - ss.ImportSettings = &importSettings + sws.UseTempFileRename = useTempFileRename } default: if v != nil { @@ -218500,64 +220310,37 @@ func (ss *SnowflakeSink) UnmarshalJSON(body []byte) error { if err != nil { return err } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err + if sws.AdditionalProperties == nil { + sws.AdditionalProperties = make(map[string]interface{}) } - ss.SinkRetryCount = sinkRetryCount + sws.AdditionalProperties[k] = additionalProperties } - case "sinkRetryWait": + case "maxConcurrentConnections": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - ss.SinkRetryWait = sinkRetryWait + sws.MaxConcurrentConnections = maxConcurrentConnections } - case "maxConcurrentConnections": + case "copyBehavior": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) if err != nil { return err } - ss.MaxConcurrentConnections = maxConcurrentConnections + sws.CopyBehavior = copyBehavior } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicStoreWriteSettings err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - ss.Type = typeVar + sws.Type = typeVar } } } @@ -218565,534 +220348,570 @@ func (ss *SnowflakeSink) UnmarshalJSON(body []byte) error { return nil } -// SnowflakeSource a copy activity snowflake source. -type SnowflakeSource struct { - // Query - Snowflake Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ExportSettings - Snowflake export settings. - ExportSettings *SnowflakeExportCopyCommand `json:"exportSettings,omitempty"` +// SharePointOnlineListDatasetTypeProperties sharepoint online list dataset properties. +type SharePointOnlineListDatasetTypeProperties struct { + // ListName - The name of the SharePoint Online list. Type: string (or Expression with resultType string). + ListName interface{} `json:"listName,omitempty"` +} + +// SharePointOnlineListLinkedService sharePoint Online List linked service. +type SharePointOnlineListLinkedService struct { + // SharePointOnlineListLinkedServiceTypeProperties - SharePoint Online List linked service properties. + *SharePointOnlineListLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SnowflakeSource. -func (ss SnowflakeSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeSnowflakeSource +// MarshalJSON is the custom marshaler for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) MarshalJSON() ([]byte, error) { + spolls.Type = TypeSharePointOnlineList objectMap := make(map[string]interface{}) - if ss.Query != nil { - objectMap["query"] = ss.Query + if spolls.SharePointOnlineListLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = spolls.SharePointOnlineListLinkedServiceTypeProperties } - if ss.ExportSettings != nil { - objectMap["exportSettings"] = ss.ExportSettings + if spolls.ConnectVia != nil { + objectMap["connectVia"] = spolls.ConnectVia } - if ss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ss.SourceRetryCount + if spolls.Description != nil { + objectMap["description"] = spolls.Description } - if ss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ss.SourceRetryWait + if spolls.Parameters != nil { + objectMap["parameters"] = spolls.Parameters } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + if spolls.Annotations != nil { + objectMap["annotations"] = spolls.Annotations } - if ss.Type != "" { - objectMap["type"] = ss.Type + if spolls.Type != "" { + objectMap["type"] = spolls.Type } - for k, v := range ss.AdditionalProperties { + for k, v := range spolls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return &spolls, true +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return &ss, true +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsHTTPSource() (*HTTPSource, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsOffice365Source() (*Office365Source, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsWebSource() (*WebSource, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsOracleSource() (*OracleSource, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsHdfsSource() (*HdfsSource, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsRestSource() (*RestSource, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsODataSource() (*ODataSource, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsRelationalSource() (*RelationalSource, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsBlobSource() (*BlobSource, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsVerticaSource() (*VerticaSource, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsZohoSource() (*ZohoSource, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsXeroSource() (*XeroSource, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSquareSource() (*SquareSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSparkSource() (*SparkSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsShopifySource() (*ShopifySource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsPrestoSource() (*PrestoSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsPaypalSource() (*PaypalSource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMarketoSource() (*MarketoSource, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMagentoSource() (*MagentoSource, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsJiraSource() (*JiraSource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsHubspotSource() (*HubspotSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsHiveSource() (*HiveSource, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsHBaseSource() (*HBaseSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsEloquaSource() (*EloquaSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDrillSource() (*DrillSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsConcurSource() (*ConcurSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCassandraSource() (*CassandraSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsTeradataSource() (*TeradataSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSQLMISource() (*SQLMISource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSQLSource() (*SQLSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapEccSource() (*SapEccSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapBwSource() (*SapBwSource, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSybaseSource() (*SybaseSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMySQLSource() (*MySQLSource, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsOdbcSource() (*OdbcSource, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDb2Source() (*Db2Source, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsInformixSource() (*InformixSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsTabularSource() (*TabularSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsBinarySource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsBinarySource() (*BinarySource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsOrcSource() (*OrcSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsXMLSource() (*XMLSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsJSONSource() (*JSONSource, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAvroSource() (*AvroSource, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCopySource() (*CopySource, bool) { +// AsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true +// AsBasicLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &spolls, true } -// UnmarshalJSON is the custom unmarshaler for SnowflakeSource struct. -func (ss *SnowflakeSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListLinkedService struct. +func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -219100,71 +220919,71 @@ func (ss *SnowflakeSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var sharePointOnlineListLinkedServiceTypeProperties SharePointOnlineListLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sharePointOnlineListLinkedServiceTypeProperties) if err != nil { return err } - ss.Query = query + spolls.SharePointOnlineListLinkedServiceTypeProperties = &sharePointOnlineListLinkedServiceTypeProperties } - case "exportSettings": + default: if v != nil { - var exportSettings SnowflakeExportCopyCommand - err = json.Unmarshal(*v, &exportSettings) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - ss.ExportSettings = &exportSettings + if spolls.AdditionalProperties == nil { + spolls.AdditionalProperties = make(map[string]interface{}) + } + spolls.AdditionalProperties[k] = additionalProperties } - default: + case "connectVia": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties + spolls.ConnectVia = &connectVia } - case "sourceRetryCount": + case "description": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - ss.SourceRetryCount = sourceRetryCount + spolls.Description = &description } - case "sourceRetryWait": + case "parameters": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - ss.SourceRetryWait = sourceRetryWait + spolls.Parameters = parameters } - case "maxConcurrentConnections": + case "annotations": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - ss.MaxConcurrentConnections = maxConcurrentConnections + spolls.Annotations = &annotations } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicLinkedService err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - ss.Type = typeVar + spolls.Type = typeVar } } } @@ -219172,818 +220991,716 @@ func (ss *SnowflakeSource) UnmarshalJSON(body []byte) error { return nil } -// SparkDatasetTypeProperties spark Properties -type SparkDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Spark. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Spark. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` +// SharePointOnlineListLinkedServiceTypeProperties sharePoint Online List linked service properties. +type SharePointOnlineListLinkedServiceTypeProperties struct { + // SiteURL - The URL of the SharePoint Online site. For example, https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType string). + SiteURL interface{} `json:"siteUrl,omitempty"` + // TenantID - The tenant ID under which your application resides. You can find it from Azure portal Active Directory overview page. Type: string (or Expression with resultType string). + TenantID interface{} `json:"tenantId,omitempty"` + // ServicePrincipalID - The application (client) ID of your application registered in Azure Active Directory. Make sure to grant SharePoint site permission to this application. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The client secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// SparkLinkedService spark Server linked service. -type SparkLinkedService struct { - // SparkLinkedServiceTypeProperties - Spark Server linked service properties. - *SparkLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListLinkedServiceTypeProperties struct. +func (spollstp *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "siteUrl": + if v != nil { + var siteURL interface{} + err = json.Unmarshal(*v, &siteURL) + if err != nil { + return err + } + spollstp.SiteURL = siteURL + } + case "tenantId": + if v != nil { + var tenantID interface{} + err = json.Unmarshal(*v, &tenantID) + if err != nil { + return err + } + spollstp.TenantID = tenantID + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + spollstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + spollstp.ServicePrincipalKey = servicePrincipalKey + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + spollstp.EncryptedCredential = encryptedCredential + } + } + } + + return nil +} + +// SharePointOnlineListResourceDataset the sharepoint online list resource dataset. +type SharePointOnlineListResourceDataset struct { + // SharePointOnlineListDatasetTypeProperties - Sharepoint online list dataset properties. + *SharePointOnlineListDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. + // Description - Dataset description. Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. + // Annotations - List of tags that can be used for describing the Dataset. Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SparkLinkedService. -func (sls SparkLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeSpark +// MarshalJSON is the custom marshaler for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) MarshalJSON() ([]byte, error) { + spolrd.Type = TypeSharePointOnlineListResource objectMap := make(map[string]interface{}) - if sls.SparkLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SparkLinkedServiceTypeProperties + if spolrd.SharePointOnlineListDatasetTypeProperties != nil { + objectMap["typeProperties"] = spolrd.SharePointOnlineListDatasetTypeProperties } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia + if spolrd.Description != nil { + objectMap["description"] = spolrd.Description } - if sls.Description != nil { - objectMap["description"] = sls.Description + if spolrd.Structure != nil { + objectMap["structure"] = spolrd.Structure } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters + if spolrd.Schema != nil { + objectMap["schema"] = spolrd.Schema } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations + if spolrd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = spolrd.LinkedServiceName } - if sls.Type != "" { - objectMap["type"] = sls.Type + if spolrd.Parameters != nil { + objectMap["parameters"] = spolrd.Parameters } - for k, v := range sls.AdditionalProperties { + if spolrd.Annotations != nil { + objectMap["annotations"] = spolrd.Annotations + } + if spolrd.Folder != nil { + objectMap["folder"] = spolrd.Folder + } + if spolrd.Type != "" { + objectMap["type"] = spolrd.Type + } + for k, v := range spolrd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return &spolrd, true } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return &sls, true -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsHTTPDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsWebTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsFileShareDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsCustomDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsBinaryDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsOrcDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsXMLDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsJSONDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsParquetDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsExcelDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAvroDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } - -// AsBasicLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// UnmarshalJSON is the custom unmarshaler for SparkLinkedService struct. -func (sls *SparkLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sparkLinkedServiceTypeProperties SparkLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sparkLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SparkLinkedServiceTypeProperties = &sparkLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// SparkLinkedServiceTypeProperties spark Server linked service properties. -type SparkLinkedServiceTypeProperties struct { - // Host - IP address or host name of the Spark server - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Spark server uses to listen for client connections. - Port interface{} `json:"port,omitempty"` - // ServerType - The type of Spark server. Possible values include: 'SharkServer', 'SharkServer2', 'SparkThriftServer' - ServerType SparkServerType `json:"serverType,omitempty"` - // ThriftTransportProtocol - The transport protocol to use in the Thrift layer. Possible values include: 'SparkThriftTransportProtocolBinary', 'SparkThriftTransportProtocolSASL', 'SparkThriftTransportProtocolHTTP' - ThriftTransportProtocol SparkThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` - // AuthenticationType - The authentication method used to access the Spark server. Possible values include: 'SparkAuthenticationTypeAnonymous', 'SparkAuthenticationTypeUsername', 'SparkAuthenticationTypeUsernameAndPassword', 'SparkAuthenticationTypeWindowsAzureHDInsightService' - AuthenticationType SparkAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name that you use to access Spark Server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the Username field - Password BasicSecretBase `json:"password,omitempty"` - // HTTPPath - The partial URL corresponding to the Spark server. - HTTPPath interface{} `json:"httpPath,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - 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. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` - // AllowHostNameCNMismatch - 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. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SparkLinkedServiceTypeProperties struct. -func (slstp *SparkLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - slstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - slstp.Port = port - } - case "serverType": - if v != nil { - var serverType SparkServerType - err = json.Unmarshal(*v, &serverType) - if err != nil { - return err - } - slstp.ServerType = serverType - } - case "thriftTransportProtocol": + +// AsDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &spolrd, true +} + +// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListResourceDataset struct. +func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": if v != nil { - var thriftTransportProtocol SparkThriftTransportProtocol - err = json.Unmarshal(*v, &thriftTransportProtocol) + var sharePointOnlineListDatasetTypeProperties SharePointOnlineListDatasetTypeProperties + err = json.Unmarshal(*v, &sharePointOnlineListDatasetTypeProperties) if err != nil { return err } - slstp.ThriftTransportProtocol = thriftTransportProtocol + spolrd.SharePointOnlineListDatasetTypeProperties = &sharePointOnlineListDatasetTypeProperties } - case "authenticationType": + default: if v != nil { - var authenticationType SparkAuthenticationType - err = json.Unmarshal(*v, &authenticationType) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - slstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err + if spolrd.AdditionalProperties == nil { + spolrd.AdditionalProperties = make(map[string]interface{}) } - slstp.Username = username + spolrd.AdditionalProperties[k] = additionalProperties } - case "password": + case "description": if v != nil { - password, err := unmarshalBasicSecretBase(*v) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - slstp.Password = password + spolrd.Description = &description } - case "httpPath": + case "structure": if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - slstp.HTTPPath = HTTPPath + spolrd.Structure = structure } - case "enableSsl": + case "schema": if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - slstp.EnableSsl = enableSsl + spolrd.Schema = schema } - case "trustedCertPath": + case "linkedServiceName": if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - slstp.TrustedCertPath = trustedCertPath + spolrd.LinkedServiceName = &linkedServiceName } - case "useSystemTrustStore": + case "parameters": if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - slstp.UseSystemTrustStore = useSystemTrustStore + spolrd.Parameters = parameters } - case "allowHostNameCNMismatch": + case "annotations": if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - slstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + spolrd.Annotations = &annotations } - case "allowSelfSignedServerCert": + case "folder": if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - slstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + spolrd.Folder = &folder } - case "encryptedCredential": + case "type": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - slstp.EncryptedCredential = encryptedCredential + spolrd.Type = typeVar } } } @@ -219991,544 +221708,534 @@ func (slstp *SparkLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error return nil } -// SparkObjectDataset spark Server dataset. -type SparkObjectDataset struct { - // SparkDatasetTypeProperties - Properties specific to this dataset type. - *SparkDatasetTypeProperties `json:"typeProperties,omitempty"` +// SharePointOnlineListSource a copy activity source for sharePoint online list source. +type SharePointOnlineListSource struct { + // Query - The OData query to filter the data in SharePoint Online list. For example, "$top=1". Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // HTTPRequestTimeout - The wait time to get a response from SharePoint Online. Default value is 5 minutes (00:05:00). Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SparkObjectDataset. -func (sod SparkObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeSparkObject +// MarshalJSON is the custom marshaler for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) MarshalJSON() ([]byte, error) { + spols.Type = TypeSharePointOnlineListSource objectMap := make(map[string]interface{}) - if sod.SparkDatasetTypeProperties != nil { - objectMap["typeProperties"] = sod.SparkDatasetTypeProperties - } - if sod.Description != nil { - objectMap["description"] = sod.Description - } - if sod.Structure != nil { - objectMap["structure"] = sod.Structure - } - if sod.Schema != nil { - objectMap["schema"] = sod.Schema + if spols.Query != nil { + objectMap["query"] = spols.Query } - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName + if spols.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = spols.HTTPRequestTimeout } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters + if spols.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = spols.SourceRetryCount } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations + if spols.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = spols.SourceRetryWait } - if sod.Folder != nil { - objectMap["folder"] = sod.Folder + if spols.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = spols.MaxConcurrentConnections } - if sod.Type != "" { - objectMap["type"] = sod.Type + if spols.Type != "" { + objectMap["type"] = spols.Type } - for k, v := range sod.AdditionalProperties { + for k, v := range spols.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return &spols, true +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsHTTPSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOffice365Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsWebSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsOracleSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsHdfsSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return &sod, true +// AsFileSystemSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsRestSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsODataSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsRelationalSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsBlobSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsResponsysSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsVerticaSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsZohoSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsXeroSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsSquareSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSparkSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsShopifySource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsPrestoSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsPaypalSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsJiraSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsBinarySource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsXMLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAvroSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDataset() (*Dataset, bool) { +// AsCopySource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true +// AsBasicCopySource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsBasicCopySource() (BasicCopySource, bool) { + return &spols, true } -// UnmarshalJSON is the custom unmarshaler for SparkObjectDataset struct. -func (sod *SparkObjectDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListSource struct. +func (spols *SharePointOnlineListSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -220536,98 +222243,71 @@ func (sod *SparkObjectDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var sparkDatasetTypeProperties SparkDatasetTypeProperties - err = json.Unmarshal(*v, &sparkDatasetTypeProperties) - if err != nil { - return err - } - sod.SparkDatasetTypeProperties = &sparkDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sod.AdditionalProperties == nil { - sod.AdditionalProperties = make(map[string]interface{}) - } - sod.AdditionalProperties[k] = additionalProperties - } - case "description": + case "query": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - sod.Description = &description + spols.Query = query } - case "structure": + case "httpRequestTimeout": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) if err != nil { return err } - sod.Structure = structure + spols.HTTPRequestTimeout = HTTPRequestTimeout } - case "schema": + default: if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err + if spols.AdditionalProperties == nil { + spols.AdditionalProperties = make(map[string]interface{}) } - sod.LinkedServiceName = &linkedServiceName + spols.AdditionalProperties[k] = additionalProperties } - case "parameters": + case "sourceRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - sod.Parameters = parameters + spols.SourceRetryCount = sourceRetryCount } - case "annotations": + case "sourceRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - sod.Annotations = &annotations + spols.SourceRetryWait = sourceRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - sod.Folder = &folder + spols.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sod.Type = typeVar + spols.Type = typeVar } } } @@ -220635,900 +222315,1265 @@ func (sod *SparkObjectDataset) UnmarshalJSON(body []byte) error { return nil } -// SparkSource a copy activity Spark Server source. -type SparkSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// ShopifyLinkedService shopify Service linked service. +type ShopifyLinkedService struct { + // ShopifyLinkedServiceTypeProperties - Shopify Service linked service properties. + *ShopifyLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SparkSource. -func (ss SparkSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeSparkSource +// MarshalJSON is the custom marshaler for ShopifyLinkedService. +func (sls ShopifyLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeShopify objectMap := make(map[string]interface{}) - if ss.Query != nil { - objectMap["query"] = ss.Query - } - if ss.QueryTimeout != nil { - objectMap["queryTimeout"] = ss.QueryTimeout + if sls.ShopifyLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.ShopifyLinkedServiceTypeProperties } - if ss.AdditionalColumns != nil { - objectMap["additionalColumns"] = ss.AdditionalColumns + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia } - if ss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ss.SourceRetryCount + if sls.Description != nil { + objectMap["description"] = sls.Description } - if ss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ss.SourceRetryWait + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations } - if ss.Type != "" { - objectMap["type"] = ss.Type + if sls.Type != "" { + objectMap["type"] = sls.Type } - for k, v := range ss.AdditionalProperties { + for k, v := range sls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return &sls, true +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHTTPSource() (*HTTPSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOffice365Source() (*Office365Source, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsWebSource() (*WebSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOracleSource() (*OracleSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHdfsSource() (*HdfsSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsRestSource() (*RestSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsODataSource() (*ODataSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsRelationalSource() (*RelationalSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsBlobSource() (*BlobSource, bool) { +// AsHDInsightLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsVerticaSource() (*VerticaSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsZohoSource() (*ZohoSource, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsXeroSource() (*XeroSource, bool) { +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSquareSource() (*SquareSource, bool) { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSparkSource() (*SparkSource, bool) { - return &ss, true +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false } -// AsShopifySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsShopifySource() (*ShopifySource, bool) { +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsLinkedService() (*LinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false +// AsBasicLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true } -// AsPrestoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for ShopifyLinkedService struct. +func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var shopifyLinkedServiceTypeProperties ShopifyLinkedServiceTypeProperties + err = json.Unmarshal(*v, &shopifyLinkedServiceTypeProperties) + if err != nil { + return err + } + sls.ShopifyLinkedServiceTypeProperties = &shopifyLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) + } + sls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sls.Type = typeVar + } + } + } + + return nil } -// AsPhoenixSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false +// ShopifyLinkedServiceTypeProperties shopify Service linked service properties. +type ShopifyLinkedServiceTypeProperties struct { + // Host - The endpoint of the Shopify server. (i.e. mystore.myshopify.com) + Host interface{} `json:"host,omitempty"` + // AccessToken - The API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode. + AccessToken BasicSecretBase `json:"accessToken,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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. + UseHostVerification interface{} `json:"useHostVerification,omitempty"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// AsPaypalSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false +// UnmarshalJSON is the custom unmarshaler for ShopifyLinkedServiceTypeProperties struct. +func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + slstp.Host = host + } + case "accessToken": + if v != nil { + accessToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slstp.AccessToken = accessToken + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + slstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + slstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + slstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + slstp.EncryptedCredential = encryptedCredential + } + } + } + + return nil } -// AsMarketoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMarketoSource() (*MarketoSource, bool) { +// ShopifyObjectDataset shopify Service dataset. +type ShopifyObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) MarshalJSON() ([]byte, error) { + sod.Type = TypeShopifyObject + objectMap := make(map[string]interface{}) + if sod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = sod.GenericDatasetTypeProperties + } + if sod.Description != nil { + objectMap["description"] = sod.Description + } + if sod.Structure != nil { + objectMap["structure"] = sod.Structure + } + if sod.Schema != nil { + objectMap["schema"] = sod.Schema + } + if sod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sod.LinkedServiceName + } + if sod.Parameters != nil { + objectMap["parameters"] = sod.Parameters + } + if sod.Annotations != nil { + objectMap["annotations"] = sod.Annotations + } + if sod.Folder != nil { + objectMap["folder"] = sod.Folder + } + if sod.Type != "" { + objectMap["type"] = sod.Type + } + for k, v := range sod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMagentoSource() (*MagentoSource, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsJiraSource() (*JiraSource, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHubspotSource() (*HubspotSource, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHiveSource() (*HiveSource, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHBaseSource() (*HBaseSource, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsEloquaSource() (*EloquaSource, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDrillSource() (*DrillSource, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsConcurSource() (*ConcurSource, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return &sod, true +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCassandraSource() (*CassandraSource, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsTeradataSource() (*TeradataSource, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSQLMISource() (*SQLMISource, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSQLSource() (*SQLSource, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapTableSource() (*SapTableSource, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapEccSource() (*SapEccSource, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapBwSource() (*SapBwSource, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSybaseSource() (*SybaseSource, bool) { +// AsDrillTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMySQLSource() (*MySQLSource, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOdbcSource() (*OdbcSource, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDb2Source() (*Db2Source, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsInformixSource() (*InformixSource, bool) { +// AsHTTPDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsTabularSource() (*TabularSource, bool) { +// AsWebTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ss, true +// AsSapTableResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsBinarySource() (*BinarySource, bool) { +// AsRestResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOrcSource() (*OrcSource, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsXMLSource() (*XMLSource, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsJSONSource() (*JSONSource, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsParquetSource() (*ParquetSource, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsExcelSource() (*ExcelSource, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAvroSource() (*AvroSource, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCopySource() (*CopySource, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true +// AsSalesforceObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SparkSource struct. -func (ss *SparkSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ss.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ss.AdditionalColumns = &additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} - return nil +// AsPostgreSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false } -// SQLDWSink a copy activity SQL Data Warehouse sink. -type SQLDWSink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AllowPolyBase - Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType boolean). - AllowPolyBase interface{} `json:"allowPolyBase,omitempty"` - // PolyBaseSettings - Specifies PolyBase-related settings when allowPolyBase is true. - PolyBaseSettings *PolybaseSettings `json:"polyBaseSettings,omitempty"` - // AllowCopyCommand - Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean). - AllowCopyCommand interface{} `json:"allowCopyCommand,omitempty"` - // CopyCommandSettings - Specifies Copy Command related settings when allowCopyCommand is true. - CopyCommandSettings *DWCopyCommandSettings `json:"copyCommandSettings,omitempty"` - // TableOption - The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` +// AsMySQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for SQLDWSink. -func (sds SQLDWSink) MarshalJSON() ([]byte, error) { - sds.Type = TypeSQLDWSink - objectMap := make(map[string]interface{}) - if sds.PreCopyScript != nil { - objectMap["preCopyScript"] = sds.PreCopyScript - } - if sds.AllowPolyBase != nil { - objectMap["allowPolyBase"] = sds.AllowPolyBase - } - if sds.PolyBaseSettings != nil { - objectMap["polyBaseSettings"] = sds.PolyBaseSettings - } - if sds.AllowCopyCommand != nil { - objectMap["allowCopyCommand"] = sds.AllowCopyCommand - } - if sds.CopyCommandSettings != nil { - objectMap["copyCommandSettings"] = sds.CopyCommandSettings - } - if sds.TableOption != nil { - objectMap["tableOption"] = sds.TableOption - } - if sds.WriteBatchSize != nil { - objectMap["writeBatchSize"] = sds.WriteBatchSize - } - if sds.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = sds.WriteBatchTimeout - } - if sds.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = sds.SinkRetryCount - } - if sds.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = sds.SinkRetryWait - } - if sds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections - } - if sds.Type != "" { - objectMap["type"] = sds.Type - } - for k, v := range sds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsOdbcTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsInformixTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsDb2TableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsOracleTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsODataResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsInformixSink() (*InformixSink, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsOdbcSink() (*OdbcSink, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsFileShareDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsOracleSink() (*OracleSink, bool) { +// AsOffice365Dataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSQLDWSink() (*SQLDWSink, bool) { - return &sds, true +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false } -// AsSQLMISink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSQLMISink() (*SQLMISink, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSQLSink() (*SQLSink, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsCustomDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsBlobSink() (*BlobSink, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsBinarySink() (*BinarySink, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsParquetSink() (*ParquetSink, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAvroSink() (*AvroSink, bool) { +// AsAzureTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsBinaryDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsOrcDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsXMLDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsJSONDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsRestSink() (*RestSink, bool) { +// AsParquetDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsOrcSink() (*OrcSink, bool) { +// AsExcelDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsJSONSink() (*JSONSink, bool) { +// AsAvroDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsCopySink() (*CopySink, bool) { +// AsDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsBasicCopySink() (BasicCopySink, bool) { - return &sds, true +// AsBasicDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &sod, true } -// UnmarshalJSON is the custom unmarshaler for SQLDWSink struct. -func (sds *SQLDWSink) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for ShopifyObjectDataset struct. +func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -221536,125 +223581,98 @@ func (sds *SQLDWSink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - sds.PreCopyScript = preCopyScript - } - case "allowPolyBase": - if v != nil { - var allowPolyBase interface{} - err = json.Unmarshal(*v, &allowPolyBase) - if err != nil { - return err - } - sds.AllowPolyBase = allowPolyBase - } - case "polyBaseSettings": + case "typeProperties": if v != nil { - var polyBaseSettings PolybaseSettings - err = json.Unmarshal(*v, &polyBaseSettings) + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) if err != nil { return err } - sds.PolyBaseSettings = &polyBaseSettings + sod.GenericDatasetTypeProperties = &genericDatasetTypeProperties } - case "allowCopyCommand": + default: if v != nil { - var allowCopyCommand interface{} - err = json.Unmarshal(*v, &allowCopyCommand) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sds.AllowCopyCommand = allowCopyCommand - } - case "copyCommandSettings": - if v != nil { - var copyCommandSettings DWCopyCommandSettings - err = json.Unmarshal(*v, ©CommandSettings) - if err != nil { - return err + if sod.AdditionalProperties == nil { + sod.AdditionalProperties = make(map[string]interface{}) } - sds.CopyCommandSettings = ©CommandSettings + sod.AdditionalProperties[k] = additionalProperties } - case "tableOption": + case "description": if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - sds.TableOption = tableOption + sod.Description = &description } - default: + case "structure": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - if sds.AdditionalProperties == nil { - sds.AdditionalProperties = make(map[string]interface{}) - } - sds.AdditionalProperties[k] = additionalProperties + sod.Structure = structure } - case "writeBatchSize": + case "schema": if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - sds.WriteBatchSize = writeBatchSize + sod.Schema = schema } - case "writeBatchTimeout": + case "linkedServiceName": if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - sds.WriteBatchTimeout = writeBatchTimeout + sod.LinkedServiceName = &linkedServiceName } - case "sinkRetryCount": + case "parameters": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - sds.SinkRetryCount = sinkRetryCount + sod.Parameters = parameters } - case "sinkRetryWait": + case "annotations": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - sds.SinkRetryWait = sinkRetryWait + sod.Annotations = &annotations } - case "maxConcurrentConnections": + case "folder": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - sds.MaxConcurrentConnections = maxConcurrentConnections + sod.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sds.Type = typeVar + sod.Type = typeVar } } } @@ -221662,18 +223680,10 @@ func (sds *SQLDWSink) UnmarshalJSON(body []byte) error { return nil } -// SQLDWSource a copy activity SQL Data Warehouse source. -type SQLDWSource struct { - // SQLReaderQuery - SQL Data Warehouse reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - Name of the stored procedure for a SQL Data Warehouse source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType: StoredProcedureParameter. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` +// ShopifySource a copy activity Shopify Service source. +type ShopifySource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). @@ -221690,531 +223700,519 @@ type SQLDWSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SQLDWSource. -func (sds SQLDWSource) MarshalJSON() ([]byte, error) { - sds.Type = TypeSQLDWSource +// MarshalJSON is the custom marshaler for ShopifySource. +func (ss ShopifySource) MarshalJSON() ([]byte, error) { + ss.Type = TypeShopifySource objectMap := make(map[string]interface{}) - if sds.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = sds.SQLReaderQuery - } - if sds.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = sds.SQLReaderStoredProcedureName - } - if sds.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = sds.StoredProcedureParameters - } - if sds.PartitionOption != nil { - objectMap["partitionOption"] = sds.PartitionOption - } - if sds.PartitionSettings != nil { - objectMap["partitionSettings"] = sds.PartitionSettings + if ss.Query != nil { + objectMap["query"] = ss.Query } - if sds.QueryTimeout != nil { - objectMap["queryTimeout"] = sds.QueryTimeout + if ss.QueryTimeout != nil { + objectMap["queryTimeout"] = ss.QueryTimeout } - if sds.AdditionalColumns != nil { - objectMap["additionalColumns"] = sds.AdditionalColumns + if ss.AdditionalColumns != nil { + objectMap["additionalColumns"] = ss.AdditionalColumns } - if sds.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sds.SourceRetryCount + if ss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ss.SourceRetryCount } - if sds.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sds.SourceRetryWait + if ss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ss.SourceRetryWait } - if sds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections } - if sds.Type != "" { - objectMap["type"] = sds.Type + if ss.Type != "" { + objectMap["type"] = ss.Type } - for k, v := range sds.AdditionalProperties { + for k, v := range ss.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false +// AsShopifySource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsShopifySource() (*ShopifySource, bool) { + return &ss, true } -// AsServiceNowSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSQLDWSource() (*SQLDWSource, bool) { - return &sds, true +// AsSQLDWSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sds, true +// AsBasicTabularSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ss, true } -// AsBinarySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sds, true +// AsBasicCopySource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsBasicCopySource() (BasicCopySource, bool) { + return &ss, true } -// UnmarshalJSON is the custom unmarshaler for SQLDWSource struct. -func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for ShopifySource struct. +func (ss *ShopifySource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -222222,50 +224220,14 @@ func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - sds.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - sds.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - sds.StoredProcedureParameters = storedProcedureParameters - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - sds.PartitionOption = partitionOption - } - case "partitionSettings": + case "query": if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - sds.PartitionSettings = &partitionSettings + ss.Query = query } case "queryTimeout": if v != nil { @@ -222274,7 +224236,7 @@ func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - sds.QueryTimeout = queryTimeout + ss.QueryTimeout = queryTimeout } case "additionalColumns": if v != nil { @@ -222283,7 +224245,7 @@ func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - sds.AdditionalColumns = &additionalColumns + ss.AdditionalColumns = &additionalColumns } default: if v != nil { @@ -222292,10 +224254,10 @@ func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sds.AdditionalProperties == nil { - sds.AdditionalProperties = make(map[string]interface{}) + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) } - sds.AdditionalProperties[k] = additionalProperties + ss.AdditionalProperties[k] = additionalProperties } case "sourceRetryCount": if v != nil { @@ -222304,7 +224266,7 @@ func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - sds.SourceRetryCount = sourceRetryCount + ss.SourceRetryCount = sourceRetryCount } case "sourceRetryWait": if v != nil { @@ -222313,7 +224275,7 @@ func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - sds.SourceRetryWait = sourceRetryWait + ss.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -222322,7 +224284,7 @@ func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - sds.MaxConcurrentConnections = maxConcurrentConnections + ss.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { @@ -222331,7 +224293,7 @@ func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { if err != nil { return err } - sds.Type = typeVar + ss.Type = typeVar } } } @@ -222339,279 +224301,552 @@ func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { return nil } -// SQLMISink a copy activity Azure SQL Managed Instance sink. -type SQLMISink struct { - // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` - // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // StoredProcedureParameters - SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` - // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` - // TableOption - The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` +// SkipErrorFile skip error file. +type SkipErrorFile struct { + // FileMissing - Skip if file is deleted by other client during copy. Default is true. Type: boolean (or Expression with resultType boolean). + FileMissing interface{} `json:"fileMissing,omitempty"` + // DataInconsistency - Skip if source/sink file changed by other concurrent write. Default is false. Type: boolean (or Expression with resultType boolean). + DataInconsistency interface{} `json:"dataInconsistency,omitempty"` +} + +// SnowflakeDataset the snowflake dataset. +type SnowflakeDataset struct { + // SnowflakeDatasetTypeProperties - Snowflake dataset properties. + *SnowflakeDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SQLMISink. -func (sms SQLMISink) MarshalJSON() ([]byte, error) { - sms.Type = TypeSQLMISink +// MarshalJSON is the custom marshaler for SnowflakeDataset. +func (sd SnowflakeDataset) MarshalJSON() ([]byte, error) { + sd.Type = TypeSnowflakeTable objectMap := make(map[string]interface{}) - if sms.SQLWriterStoredProcedureName != nil { - objectMap["sqlWriterStoredProcedureName"] = sms.SQLWriterStoredProcedureName - } - if sms.SQLWriterTableType != nil { - objectMap["sqlWriterTableType"] = sms.SQLWriterTableType - } - if sms.PreCopyScript != nil { - objectMap["preCopyScript"] = sms.PreCopyScript - } - if sms.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = sms.StoredProcedureParameters + if sd.SnowflakeDatasetTypeProperties != nil { + objectMap["typeProperties"] = sd.SnowflakeDatasetTypeProperties } - if sms.StoredProcedureTableTypeParameterName != nil { - objectMap["storedProcedureTableTypeParameterName"] = sms.StoredProcedureTableTypeParameterName + if sd.Description != nil { + objectMap["description"] = sd.Description } - if sms.TableOption != nil { - objectMap["tableOption"] = sms.TableOption + if sd.Structure != nil { + objectMap["structure"] = sd.Structure } - if sms.WriteBatchSize != nil { - objectMap["writeBatchSize"] = sms.WriteBatchSize + if sd.Schema != nil { + objectMap["schema"] = sd.Schema } - if sms.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = sms.WriteBatchTimeout + if sd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sd.LinkedServiceName } - if sms.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = sms.SinkRetryCount + if sd.Parameters != nil { + objectMap["parameters"] = sd.Parameters } - if sms.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = sms.SinkRetryWait + if sd.Annotations != nil { + objectMap["annotations"] = sd.Annotations } - if sms.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections + if sd.Folder != nil { + objectMap["folder"] = sd.Folder } - if sms.Type != "" { - objectMap["type"] = sms.Type + if sd.Type != "" { + objectMap["type"] = sd.Type } - for k, v := range sms.AdditionalProperties { + for k, v := range sd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return &sd, true +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsInformixSink() (*InformixSink, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsOdbcSink() (*OdbcSink, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsOracleSink() (*OracleSink, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSQLMISink() (*SQLMISink, bool) { - return &sms, true +// AsQuickBooksObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSQLServerSink() (*SQLServerSink, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsSQLSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSQLSink() (*SQLSink, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsCustomDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsBlobSink() (*BlobSink, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsBinarySink() (*BinarySink, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsParquetSink() (*ParquetSink, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAvroSink() (*AvroSink, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsBinaryDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsOrcDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsXMLDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsJSONDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsRestSink() (*RestSink, bool) { +// AsParquetDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsOrcSink() (*OrcSink, bool) { +// AsExcelDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsJSONSink() (*JSONSink, bool) { +// AsAvroDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsCopySink() (*CopySink, bool) { +// AsDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsBasicCopySink() (BasicCopySink, bool) { - return &sms, true +// AsBasicDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsBasicDataset() (BasicDataset, bool) { + return &sd, true } -// UnmarshalJSON is the custom unmarshaler for SQLMISink struct. -func (sms *SQLMISink) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SnowflakeDataset struct. +func (sd *SnowflakeDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -222619,125 +224854,211 @@ func (sms *SQLMISink) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "sqlWriterStoredProcedureName": + case "typeProperties": if v != nil { - var SQLWriterStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) + var snowflakeDatasetTypeProperties SnowflakeDatasetTypeProperties + err = json.Unmarshal(*v, &snowflakeDatasetTypeProperties) if err != nil { return err } - sms.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName + sd.SnowflakeDatasetTypeProperties = &snowflakeDatasetTypeProperties } - case "sqlWriterTableType": + default: if v != nil { - var SQLWriterTableType interface{} - err = json.Unmarshal(*v, &SQLWriterTableType) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sms.SQLWriterTableType = SQLWriterTableType + if sd.AdditionalProperties == nil { + sd.AdditionalProperties = make(map[string]interface{}) + } + sd.AdditionalProperties[k] = additionalProperties } - case "preCopyScript": + case "description": if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - sms.PreCopyScript = preCopyScript + sd.Description = &description } - case "storedProcedureParameters": + case "structure": if v != nil { - var storedProcedureParameters map[string]*StoredProcedureParameter - err = json.Unmarshal(*v, &storedProcedureParameters) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - sms.StoredProcedureParameters = storedProcedureParameters + sd.Structure = structure } - case "storedProcedureTableTypeParameterName": + case "schema": if v != nil { - var storedProcedureTableTypeParameterName interface{} - err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) + var schema interface{} + err = json.Unmarshal(*v, &schema) if err != nil { return err } - sms.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName + sd.Schema = schema } - case "tableOption": + case "linkedServiceName": if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) if err != nil { return err } - sms.TableOption = tableOption + sd.LinkedServiceName = &linkedServiceName } - default: + case "parameters": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - if sms.AdditionalProperties == nil { - sms.AdditionalProperties = make(map[string]interface{}) + sd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err } - sms.AdditionalProperties[k] = additionalProperties + sd.Annotations = &annotations } - case "writeBatchSize": + case "folder": if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) if err != nil { return err } - sms.WriteBatchSize = writeBatchSize + sd.Folder = &folder } - case "writeBatchTimeout": + case "type": if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sms.WriteBatchTimeout = writeBatchTimeout + sd.Type = typeVar } - case "sinkRetryCount": + } + } + + return nil +} + +// SnowflakeDatasetTypeProperties snowflake dataset properties. +type SnowflakeDatasetTypeProperties struct { + // Schema - The schema name of the Snowflake database. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the Snowflake database. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// SnowflakeExportCopyCommand snowflake export command settings. +type SnowflakeExportCopyCommand struct { + // AdditionalCopyOptions - Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" } + AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions"` + // AdditionalFormatOptions - Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" } + AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeExportSettings', 'TypeSnowflakeExportCopyCommand', 'TypeAzureDatabricksDeltaLakeExportCommand' + Type TypeBasicExportSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeExportCopyCommand. +func (secc SnowflakeExportCopyCommand) MarshalJSON() ([]byte, error) { + secc.Type = TypeSnowflakeExportCopyCommand + objectMap := make(map[string]interface{}) + if secc.AdditionalCopyOptions != nil { + objectMap["additionalCopyOptions"] = secc.AdditionalCopyOptions + } + if secc.AdditionalFormatOptions != nil { + objectMap["additionalFormatOptions"] = secc.AdditionalFormatOptions + } + if secc.Type != "" { + objectMap["type"] = secc.Type + } + for k, v := range secc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for SnowflakeExportCopyCommand. +func (secc SnowflakeExportCopyCommand) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { + return &secc, true +} + +// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for SnowflakeExportCopyCommand. +func (secc SnowflakeExportCopyCommand) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { + return nil, false +} + +// AsExportSettings is the BasicExportSettings implementation for SnowflakeExportCopyCommand. +func (secc SnowflakeExportCopyCommand) AsExportSettings() (*ExportSettings, bool) { + return nil, false +} + +// AsBasicExportSettings is the BasicExportSettings implementation for SnowflakeExportCopyCommand. +func (secc SnowflakeExportCopyCommand) AsBasicExportSettings() (BasicExportSettings, bool) { + return &secc, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeExportCopyCommand struct. +func (secc *SnowflakeExportCopyCommand) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "additionalCopyOptions": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var additionalCopyOptions map[string]interface{} + err = json.Unmarshal(*v, &additionalCopyOptions) if err != nil { return err } - sms.SinkRetryCount = sinkRetryCount + secc.AdditionalCopyOptions = additionalCopyOptions } - case "sinkRetryWait": + case "additionalFormatOptions": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var additionalFormatOptions map[string]interface{} + err = json.Unmarshal(*v, &additionalFormatOptions) if err != nil { return err } - sms.SinkRetryWait = sinkRetryWait + secc.AdditionalFormatOptions = additionalFormatOptions } - case "maxConcurrentConnections": + default: if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sms.MaxConcurrentConnections = maxConcurrentConnections + if secc.AdditionalProperties == nil { + secc.AdditionalProperties = make(map[string]interface{}) + } + secc.AdditionalProperties[k] = additionalProperties } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicExportSettings err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sms.Type = typeVar + secc.Type = typeVar } } } @@ -222745,564 +225066,669 @@ func (sms *SQLMISink) UnmarshalJSON(body []byte) error { return nil } -// SQLMISource a copy activity Azure SQL Managed Instance source. -type SQLMISource struct { - // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - Name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` - // ProduceAdditionalTypes - Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// SnowflakeImportCopyCommand snowflake import command settings. +type SnowflakeImportCopyCommand struct { + // AdditionalCopyOptions - Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" } + AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions"` + // AdditionalFormatOptions - Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { "FORCE": "TRUE", "LOAD_UNCERTAIN_FILES": "'FALSE'" } + AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // Type - Possible values include: 'TypeImportSettings', 'TypeAzureDatabricksDeltaLakeImportCommand', 'TypeSnowflakeImportCopyCommand' + Type TypeBasicImportSettings `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SQLMISource. -func (sms SQLMISource) MarshalJSON() ([]byte, error) { - sms.Type = TypeSQLMISource +// MarshalJSON is the custom marshaler for SnowflakeImportCopyCommand. +func (sicc SnowflakeImportCopyCommand) MarshalJSON() ([]byte, error) { + sicc.Type = TypeSnowflakeImportCopyCommand objectMap := make(map[string]interface{}) - if sms.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = sms.SQLReaderQuery + if sicc.AdditionalCopyOptions != nil { + objectMap["additionalCopyOptions"] = sicc.AdditionalCopyOptions } - if sms.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = sms.SQLReaderStoredProcedureName + if sicc.AdditionalFormatOptions != nil { + objectMap["additionalFormatOptions"] = sicc.AdditionalFormatOptions } - if sms.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = sms.StoredProcedureParameters + if sicc.Type != "" { + objectMap["type"] = sicc.Type } - if sms.ProduceAdditionalTypes != nil { - objectMap["produceAdditionalTypes"] = sms.ProduceAdditionalTypes + for k, v := range sicc.AdditionalProperties { + objectMap[k] = v } - if sms.PartitionOption != nil { - objectMap["partitionOption"] = sms.PartitionOption + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeImportCommand is the BasicImportSettings implementation for SnowflakeImportCopyCommand. +func (sicc SnowflakeImportCopyCommand) AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) { + return nil, false +} + +// AsSnowflakeImportCopyCommand is the BasicImportSettings implementation for SnowflakeImportCopyCommand. +func (sicc SnowflakeImportCopyCommand) AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) { + return &sicc, true +} + +// AsImportSettings is the BasicImportSettings implementation for SnowflakeImportCopyCommand. +func (sicc SnowflakeImportCopyCommand) AsImportSettings() (*ImportSettings, bool) { + return nil, false +} + +// AsBasicImportSettings is the BasicImportSettings implementation for SnowflakeImportCopyCommand. +func (sicc SnowflakeImportCopyCommand) AsBasicImportSettings() (BasicImportSettings, bool) { + return &sicc, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeImportCopyCommand struct. +func (sicc *SnowflakeImportCopyCommand) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err } - if sms.PartitionSettings != nil { - objectMap["partitionSettings"] = sms.PartitionSettings + for k, v := range m { + switch k { + case "additionalCopyOptions": + if v != nil { + var additionalCopyOptions map[string]interface{} + err = json.Unmarshal(*v, &additionalCopyOptions) + if err != nil { + return err + } + sicc.AdditionalCopyOptions = additionalCopyOptions + } + case "additionalFormatOptions": + if v != nil { + var additionalFormatOptions map[string]interface{} + err = json.Unmarshal(*v, &additionalFormatOptions) + if err != nil { + return err + } + sicc.AdditionalFormatOptions = additionalFormatOptions + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sicc.AdditionalProperties == nil { + sicc.AdditionalProperties = make(map[string]interface{}) + } + sicc.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicImportSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sicc.Type = typeVar + } + } } - if sms.QueryTimeout != nil { - objectMap["queryTimeout"] = sms.QueryTimeout + + return nil +} + +// SnowflakeLinkedService snowflake linked service. +type SnowflakeLinkedService struct { + // SnowflakeLinkedServiceTypeProperties - Snowflake linked service properties. + *SnowflakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeSnowflake + objectMap := make(map[string]interface{}) + if sls.SnowflakeLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.SnowflakeLinkedServiceTypeProperties } - if sms.AdditionalColumns != nil { - objectMap["additionalColumns"] = sms.AdditionalColumns + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia } - if sms.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sms.SourceRetryCount + if sls.Description != nil { + objectMap["description"] = sls.Description } - if sms.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sms.SourceRetryWait + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters } - if sms.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations } - if sms.Type != "" { - objectMap["type"] = sms.Type + if sls.Type != "" { + objectMap["type"] = sls.Type } - for k, v := range sms.AdditionalProperties { + for k, v := range sls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return &sls, true +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsHTTPSource() (*HTTPSource, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsOffice365Source() (*Office365Source, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsWebSource() (*WebSource, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsOracleSource() (*OracleSource, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsHdfsSource() (*HdfsSource, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsRestSource() (*RestSource, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsODataSource() (*ODataSource, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsRelationalSource() (*RelationalSource, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsBlobSource() (*BlobSource, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsResponsysSource() (*ResponsysSource, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsVerticaSource() (*VerticaSource, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsZohoSource() (*ZohoSource, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsXeroSource() (*XeroSource, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSquareSource() (*SquareSource, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSparkSource() (*SparkSource, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsShopifySource() (*ShopifySource, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsPrestoSource() (*PrestoSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsPaypalSource() (*PaypalSource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMarketoSource() (*MarketoSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMagentoSource() (*MagentoSource, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsJiraSource() (*JiraSource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsImpalaSource() (*ImpalaSource, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsHubspotSource() (*HubspotSource, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsHiveSource() (*HiveSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsHBaseSource() (*HBaseSource, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsEloquaSource() (*EloquaSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDrillSource() (*DrillSource, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsConcurSource() (*ConcurSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCassandraSource() (*CassandraSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsTeradataSource() (*TeradataSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSQLMISource() (*SQLMISource, bool) { - return &sms, true +// AsODataLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSQLSource() (*SQLSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapTableSource() (*SapTableSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapEccSource() (*SapEccSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapBwSource() (*SapBwSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSybaseSource() (*SybaseSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMySQLSource() (*MySQLSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsOdbcSource() (*OdbcSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDb2Source() (*Db2Source, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsInformixSource() (*InformixSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsTabularSource() (*TabularSource, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sms, true +// AsHDInsightLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsBinarySource() (*BinarySource, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsOrcSource() (*OrcSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsXMLSource() (*XMLSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsJSONSource() (*JSONSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAvroSource() (*AvroSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCopySource() (*CopySource, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsBasicCopySource() (BasicCopySource, bool) { - return &sms, true +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SQLMISource struct. -func (sms *SQLMISource) UnmarshalJSON(body []byte) error { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeLinkedService struct. +func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -223310,125 +225736,71 @@ func (sms *SQLMISource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - sms.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - sms.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters map[string]*StoredProcedureParameter - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - sms.StoredProcedureParameters = storedProcedureParameters - } - case "produceAdditionalTypes": - if v != nil { - var produceAdditionalTypes interface{} - err = json.Unmarshal(*v, &produceAdditionalTypes) - if err != nil { - return err - } - sms.ProduceAdditionalTypes = produceAdditionalTypes - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - sms.PartitionOption = partitionOption - } - case "partitionSettings": + case "typeProperties": if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) + var snowflakeLinkedServiceTypeProperties SnowflakeLinkedServiceTypeProperties + err = json.Unmarshal(*v, &snowflakeLinkedServiceTypeProperties) if err != nil { return err } - sms.PartitionSettings = &partitionSettings + sls.SnowflakeLinkedServiceTypeProperties = &snowflakeLinkedServiceTypeProperties } - case "queryTimeout": + default: if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sms.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) } - sms.AdditionalColumns = &additionalColumns + sls.AdditionalProperties[k] = additionalProperties } - default: + case "connectVia": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - if sms.AdditionalProperties == nil { - sms.AdditionalProperties = make(map[string]interface{}) - } - sms.AdditionalProperties[k] = additionalProperties + sls.ConnectVia = &connectVia } - case "sourceRetryCount": + case "description": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - sms.SourceRetryCount = sourceRetryCount + sls.Description = &description } - case "sourceRetryWait": + case "parameters": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - sms.SourceRetryWait = sourceRetryWait + sls.Parameters = parameters } - case "maxConcurrentConnections": + case "annotations": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - sms.MaxConcurrentConnections = maxConcurrentConnections + sls.Annotations = &annotations } case "type": if v != nil { - var typeVar TypeBasicCopySource + var typeVar TypeBasicLinkedService err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sms.Type = typeVar + sls.Type = typeVar } } } @@ -223436,1048 +225808,928 @@ func (sms *SQLMISource) UnmarshalJSON(body []byte) error { return nil } -// SQLPartitionSettings the settings that will be leveraged for Sql source partitioning. -type SQLPartitionSettings struct { - // PartitionColumnName - The name of the column in integer or datetime type that will be used for proceeding partitioning. If not specified, the primary key of the table is auto-detected and used as the partition column. Type: string (or Expression with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` - // PartitionUpperBound - The maximum value of the partition column for partition range splitting. This value is used to decide the partition stride, not for filtering the rows in table. All rows in the table or query result will be partitioned and copied. Type: string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` - // PartitionLowerBound - The minimum value of the partition column for partition range splitting. This value is used to decide the partition stride, not for filtering the rows in table. All rows in the table or query result will be partitioned and copied. Type: string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` +// SnowflakeLinkedServiceTypeProperties snowflake linked service properties. +type SnowflakeLinkedServiceTypeProperties struct { + // ConnectionString - The connection string of snowflake. Type: string, SecureString. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` } -// SQLServerLinkedService SQL Server linked service. -type SQLServerLinkedService struct { - // SQLServerLinkedServiceTypeProperties - SQL Server linked service properties. - *SQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// SnowflakeSink a copy activity snowflake sink. +type SnowflakeSink struct { + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // ImportSettings - Snowflake import settings. + ImportSettings *SnowflakeImportCopyCommand `json:"importSettings,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeMongoDbV2Sink', 'TypeMongoDbAtlasSink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SQLServerLinkedService. -func (ssls SQLServerLinkedService) MarshalJSON() ([]byte, error) { - ssls.Type = TypeSQLServer +// MarshalJSON is the custom marshaler for SnowflakeSink. +func (ss SnowflakeSink) MarshalJSON() ([]byte, error) { + ss.Type = TypeSnowflakeSink objectMap := make(map[string]interface{}) - if ssls.SQLServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ssls.SQLServerLinkedServiceTypeProperties + if ss.PreCopyScript != nil { + objectMap["preCopyScript"] = ss.PreCopyScript } - if ssls.ConnectVia != nil { - objectMap["connectVia"] = ssls.ConnectVia + if ss.ImportSettings != nil { + objectMap["importSettings"] = ss.ImportSettings } - if ssls.Description != nil { - objectMap["description"] = ssls.Description + if ss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ss.WriteBatchSize } - if ssls.Parameters != nil { - objectMap["parameters"] = ssls.Parameters + if ss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout } - if ssls.Annotations != nil { - objectMap["annotations"] = ssls.Annotations + if ss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ss.SinkRetryCount } - if ssls.Type != "" { - objectMap["type"] = ssls.Type + if ss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ss.SinkRetryWait } - for k, v := range ssls.AdditionalProperties { + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { return nil, false } -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { +// AsMongoDbV2Sink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { return nil, false } -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { +// AsMongoDbAtlasSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { return nil, false } -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { return nil, false } -// AsSapTableLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { +// AsSalesforceSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSalesforceSink() (*SalesforceSink, bool) { return nil, false } -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { +// AsAzureDataExplorerSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { return nil, false } -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsDynamicsCrmSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsDynamicsSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsDynamicsSink() (*DynamicsSink, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsMicrosoftAccessSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsInformixSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsInformixSink() (*InformixSink, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsOdbcSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsOdbcSink() (*OdbcSink, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsAzureSearchIndexSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsAzureBlobFSSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsOracleSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsOracleSink() (*OracleSink, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false +// AsSnowflakeSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return &ss, true } -// AsXeroLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { +// AsSQLDWSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSQLDWSink() (*SQLDWSink, bool) { return nil, false } -// AsSquareLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsSQLMISink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSQLMISink() (*SQLMISink, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsAzureSQLSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureSQLSink() (*AzureSQLSink, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsSQLServerSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSQLServerSink() (*SQLServerSink, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsSQLSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSQLSink() (*SQLSink, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsFileSystemSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsFileSystemSink() (*FileSystemSink, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsBlobSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsBlobSink() (*BlobSink, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsBinarySink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsBinarySink() (*BinarySink, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsParquetSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsParquetSink() (*ParquetSink, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsAvroSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAvroSink() (*AvroSink, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsAzureTableSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureTableSink() (*AzureTableSink, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsAzureQueueSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureQueueSink() (*AzureQueueSink, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsAzureMySQLSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsRestSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsRestSink() (*RestSink, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsOrcSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsOrcSink() (*OrcSink, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsJSONSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsJSONSink() (*JSONSink, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsDelimitedTextSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsCopySink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsCopySink() (*CopySink, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false +// AsBasicCopySink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ss, true } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} +// UnmarshalJSON is the custom unmarshaler for SnowflakeSink struct. +func (ss *SnowflakeSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + ss.PreCopyScript = preCopyScript + } + case "importSettings": + if v != nil { + var importSettings SnowflakeImportCopyCommand + err = json.Unmarshal(*v, &importSettings) + if err != nil { + return err + } + ss.ImportSettings = &importSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false + return nil } -// AsSapHanaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false +// SnowflakeSource a copy activity snowflake source. +type SnowflakeSource struct { + // Query - Snowflake Sql query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // ExportSettings - Snowflake export settings. + ExportSettings *SnowflakeExportCopyCommand `json:"exportSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// AsSapBWLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false +// MarshalJSON is the custom marshaler for SnowflakeSource. +func (ss SnowflakeSource) MarshalJSON() ([]byte, error) { + ss.Type = TypeSnowflakeSource + objectMap := make(map[string]interface{}) + if ss.Query != nil { + objectMap["query"] = ss.Query + } + if ss.ExportSettings != nil { + objectMap["exportSettings"] = ss.ExportSettings + } + if ss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ss.SourceRetryCount + } + if ss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ss.SourceRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) } -// AsSftpServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false +// AsSnowflakeSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return &ss, true } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsHTTPSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsOffice365Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsWebSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsOracleSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsHdfsSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsRestSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsODataSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsRelationalSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsBlobSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsResponsysSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsVerticaSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsZohoSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsXeroSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsSquareSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsSparkSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsShopifySource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsPrestoSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsPaypalSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsMarketoSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { +// AsMagentoSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsJiraSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return &ssls, true -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsImpalaSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsHubspotSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsHiveSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsHBaseSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ssls, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLServerLinkedService struct. -func (ssls *SQLServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var SQLServerLinkedServiceTypeProperties SQLServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &SQLServerLinkedServiceTypeProperties) - if err != nil { - return err - } - ssls.SQLServerLinkedServiceTypeProperties = &SQLServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ssls.AdditionalProperties == nil { - ssls.AdditionalProperties = make(map[string]interface{}) - } - ssls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ssls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ssls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ssls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ssls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ssls.Type = typeVar - } - } - } - - return nil -} - -// SQLServerLinkedServiceTypeProperties SQL Server linked service properties. -type SQLServerLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // UserName - The on-premises Windows authentication user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - The on-premises Windows authentication password. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SQLServerLinkedServiceTypeProperties struct. -func (sslstp *SQLServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - sslstp.ConnectionString = connectionString - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - sslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// SQLServerSink a copy activity SQL server sink. -type SQLServerSink struct { - // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` - // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // StoredProcedureParameters - SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` - // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` - // TableOption - The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` +// AsGoogleBigQuerySource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for SQLServerSink. -func (sss SQLServerSink) MarshalJSON() ([]byte, error) { - sss.Type = TypeSQLServerSink - objectMap := make(map[string]interface{}) - if sss.SQLWriterStoredProcedureName != nil { - objectMap["sqlWriterStoredProcedureName"] = sss.SQLWriterStoredProcedureName - } - if sss.SQLWriterTableType != nil { - objectMap["sqlWriterTableType"] = sss.SQLWriterTableType - } - if sss.PreCopyScript != nil { - objectMap["preCopyScript"] = sss.PreCopyScript - } - if sss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = sss.StoredProcedureParameters - } - if sss.StoredProcedureTableTypeParameterName != nil { - objectMap["storedProcedureTableTypeParameterName"] = sss.StoredProcedureTableTypeParameterName - } - if sss.TableOption != nil { - objectMap["tableOption"] = sss.TableOption - } - if sss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = sss.WriteBatchSize - } - if sss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = sss.WriteBatchTimeout - } - if sss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = sss.SinkRetryCount - } - if sss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = sss.SinkRetryWait - } - if sss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections - } - if sss.Type != "" { - objectMap["type"] = sss.Type - } - for k, v := range sss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) +// AsEloquaSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false } -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { +// AsDrillSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsSalesforceSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSalesforceSink() (*SalesforceSink, bool) { +// AsConcurSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsDynamicsCrmSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { +// AsCassandraSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsDynamicsSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsDynamicsSink() (*DynamicsSink, bool) { +// AsTeradataSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsInformixSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsInformixSink() (*InformixSink, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsOdbcSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsOdbcSink() (*OdbcSink, bool) { +// AsSQLMISource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsAzureBlobFSSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { +// AsSQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsOracleSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsOracleSink() (*OracleSink, bool) { +// AsSapTableSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSnowflakeSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSQLDWSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSQLDWSink() (*SQLDWSink, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSQLMISink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSQLMISink() (*SQLMISink, bool) { +// AsSapEccSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsAzureSQLSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSQLServerSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSQLServerSink() (*SQLServerSink, bool) { - return &sss, true +// AsSalesforceSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false } -// AsSQLSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSQLSink() (*SQLSink, bool) { +// AsSapBwSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { +// AsSybaseSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsFileSystemSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsFileSystemSink() (*FileSystemSink, bool) { +// AsMySQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsBlobSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsBlobSink() (*BlobSink, bool) { +// AsOdbcSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsBinarySink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsBinarySink() (*BinarySink, bool) { +// AsDb2Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsParquetSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsParquetSink() (*ParquetSink, bool) { +// AsInformixSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAvroSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAvroSink() (*AvroSink, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsAzureTableSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureTableSink() (*AzureTableSink, bool) { +// AsTabularSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsAzureQueueSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { +// AsBinarySource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { +// AsOrcSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsAzureMySQLSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { +// AsXMLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { +// AsJSONSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsRestSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsRestSink() (*RestSink, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsOrcSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsOrcSink() (*OrcSink, bool) { +// AsParquetSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsJSONSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsJSONSink() (*JSONSink, bool) { +// AsExcelSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsDelimitedTextSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { +// AsAvroSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsCopySink() (*CopySink, bool) { +// AsCopySource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsBasicCopySink() (BasicCopySink, bool) { - return &sss, true +// AsBasicCopySource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ss, true } -// UnmarshalJSON is the custom unmarshaler for SQLServerSink struct. -func (sss *SQLServerSink) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SnowflakeSource struct. +func (ss *SnowflakeSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlWriterStoredProcedureName": - if v != nil { - var SQLWriterStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) - if err != nil { - return err - } - sss.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName - } - case "sqlWriterTableType": - if v != nil { - var SQLWriterTableType interface{} - err = json.Unmarshal(*v, &SQLWriterTableType) - if err != nil { - return err - } - sss.SQLWriterTableType = SQLWriterTableType - } - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - sss.PreCopyScript = preCopyScript - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters map[string]*StoredProcedureParameter - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - sss.StoredProcedureParameters = storedProcedureParameters - } - case "storedProcedureTableTypeParameterName": + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": if v != nil { - var storedProcedureTableTypeParameterName interface{} - err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - sss.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName + ss.Query = query } - case "tableOption": + case "exportSettings": if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) + var exportSettings SnowflakeExportCopyCommand + err = json.Unmarshal(*v, &exportSettings) if err != nil { return err } - sss.TableOption = tableOption + ss.ExportSettings = &exportSettings } default: if v != nil { @@ -224486,46 +226738,28 @@ func (sss *SQLServerSink) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sss.AdditionalProperties == nil { - sss.AdditionalProperties = make(map[string]interface{}) - } - sss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - sss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) } - sss.WriteBatchTimeout = writeBatchTimeout + ss.AdditionalProperties[k] = additionalProperties } - case "sinkRetryCount": + case "sourceRetryCount": if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - sss.SinkRetryCount = sinkRetryCount + ss.SourceRetryCount = sourceRetryCount } - case "sinkRetryWait": + case "sourceRetryWait": if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - sss.SinkRetryWait = sinkRetryWait + ss.SourceRetryWait = sourceRetryWait } case "maxConcurrentConnections": if v != nil { @@ -224534,16 +226768,16 @@ func (sss *SQLServerSink) UnmarshalJSON(body []byte) error { if err != nil { return err } - sss.MaxConcurrentConnections = maxConcurrentConnections + ss.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicCopySink + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - sss.Type = typeVar + ss.Type = typeVar } } } @@ -224551,564 +226785,574 @@ func (sss *SQLServerSink) UnmarshalJSON(body []byte) error { return nil } -// SQLServerSource a copy activity SQL server source. -type SQLServerSource struct { - // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` - // ProduceAdditionalTypes - Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// SparkDatasetTypeProperties spark Properties +type SparkDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Spark. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Spark. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// SparkLinkedService spark Server linked service. +type SparkLinkedService struct { + // SparkLinkedServiceTypeProperties - Spark Server linked service properties. + *SparkLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SQLServerSource. -func (sss SQLServerSource) MarshalJSON() ([]byte, error) { - sss.Type = TypeSQLServerSource +// MarshalJSON is the custom marshaler for SparkLinkedService. +func (sls SparkLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeSpark objectMap := make(map[string]interface{}) - if sss.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = sss.SQLReaderQuery - } - if sss.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = sss.SQLReaderStoredProcedureName - } - if sss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = sss.StoredProcedureParameters - } - if sss.ProduceAdditionalTypes != nil { - objectMap["produceAdditionalTypes"] = sss.ProduceAdditionalTypes - } - if sss.PartitionOption != nil { - objectMap["partitionOption"] = sss.PartitionOption - } - if sss.PartitionSettings != nil { - objectMap["partitionSettings"] = sss.PartitionSettings - } - if sss.QueryTimeout != nil { - objectMap["queryTimeout"] = sss.QueryTimeout + if sls.SparkLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.SparkLinkedServiceTypeProperties } - if sss.AdditionalColumns != nil { - objectMap["additionalColumns"] = sss.AdditionalColumns + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia } - if sss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sss.SourceRetryCount + if sls.Description != nil { + objectMap["description"] = sls.Description } - if sss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sss.SourceRetryWait + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters } - if sss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations } - if sss.Type != "" { - objectMap["type"] = sss.Type + if sls.Type != "" { + objectMap["type"] = sls.Type } - for k, v := range sss.AdditionalProperties { + for k, v := range sls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsHTTPSource() (*HTTPSource, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsOffice365Source() (*Office365Source, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsWebSource() (*WebSource, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsOracleSource() (*OracleSource, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsHdfsSource() (*HdfsSource, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsRestSource() (*RestSource, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsODataSource() (*ODataSource, bool) { +// AsSquareLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return &sls, true +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsRelationalSource() (*RelationalSource, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsBlobSource() (*BlobSource, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsVerticaSource() (*VerticaSource, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsZohoSource() (*ZohoSource, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsXeroSource() (*XeroSource, bool) { +// AsEloquaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSquareSource() (*SquareSource, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSparkSource() (*SparkSource, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsShopifySource() (*ShopifySource, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsPrestoSource() (*PrestoSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMarketoSource() (*MarketoSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMagentoSource() (*MagentoSource, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsJiraSource() (*JiraSource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsHubspotSource() (*HubspotSource, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsHiveSource() (*HiveSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsHBaseSource() (*HBaseSource, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsEloquaSource() (*EloquaSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDrillSource() (*DrillSource, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsConcurSource() (*ConcurSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCassandraSource() (*CassandraSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsTeradataSource() (*TeradataSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSQLMISource() (*SQLMISource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSQLServerSource() (*SQLServerSource, bool) { - return &sss, true +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false } -// AsSQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSQLSource() (*SQLSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapTableSource() (*SapTableSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapEccSource() (*SapEccSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapBwSource() (*SapBwSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSybaseSource() (*SybaseSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMySQLSource() (*MySQLSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsOdbcSource() (*OdbcSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDb2Source() (*Db2Source, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsInformixSource() (*InformixSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsTabularSource() (*TabularSource, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sss, true +// AsHDInsightLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsBinarySource() (*BinarySource, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsOrcSource() (*OrcSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsXMLSource() (*XMLSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsJSONSource() (*JSONSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAvroSource() (*AvroSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCopySource() (*CopySource, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sss, true +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for SQLServerSource struct. -func (sss *SQLServerSource) UnmarshalJSON(body []byte) error { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true +} + +// UnmarshalJSON is the custom unmarshaler for SparkLinkedService struct. +func (sls *SparkLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -225116,480 +227360,243 @@ func (sss *SQLServerSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - sss.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": + case "typeProperties": if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) + var sparkLinkedServiceTypeProperties SparkLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sparkLinkedServiceTypeProperties) if err != nil { return err } - sss.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + sls.SparkLinkedServiceTypeProperties = &sparkLinkedServiceTypeProperties } - case "storedProcedureParameters": + default: if v != nil { - var storedProcedureParameters map[string]*StoredProcedureParameter - err = json.Unmarshal(*v, &storedProcedureParameters) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - sss.StoredProcedureParameters = storedProcedureParameters - } - case "produceAdditionalTypes": - if v != nil { - var produceAdditionalTypes interface{} - err = json.Unmarshal(*v, &produceAdditionalTypes) - if err != nil { - return err + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) } - sss.ProduceAdditionalTypes = produceAdditionalTypes + sls.AdditionalProperties[k] = additionalProperties } - case "partitionOption": + case "connectVia": if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - sss.PartitionOption = partitionOption + sls.ConnectVia = &connectVia } - case "partitionSettings": + case "description": if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - sss.PartitionSettings = &partitionSettings + sls.Description = &description } - case "queryTimeout": + case "parameters": if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) if err != nil { return err } - sss.QueryTimeout = queryTimeout + sls.Parameters = parameters } - case "additionalColumns": + case "annotations": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - sss.AdditionalColumns = &additionalColumns + sls.Annotations = &annotations } - default: + case "type": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - if sss.AdditionalProperties == nil { - sss.AdditionalProperties = make(map[string]interface{}) - } - sss.AdditionalProperties[k] = additionalProperties + sls.Type = typeVar } - case "sourceRetryCount": + } + } + + return nil +} + +// SparkLinkedServiceTypeProperties spark Server linked service properties. +type SparkLinkedServiceTypeProperties struct { + // Host - IP address or host name of the Spark server + Host interface{} `json:"host,omitempty"` + // Port - The TCP port that the Spark server uses to listen for client connections. + Port interface{} `json:"port,omitempty"` + // ServerType - The type of Spark server. Possible values include: 'SharkServer', 'SharkServer2', 'SparkThriftServer' + ServerType SparkServerType `json:"serverType,omitempty"` + // ThriftTransportProtocol - The transport protocol to use in the Thrift layer. Possible values include: 'SparkThriftTransportProtocolBinary', 'SparkThriftTransportProtocolSASL', 'SparkThriftTransportProtocolHTTP' + ThriftTransportProtocol SparkThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` + // AuthenticationType - The authentication method used to access the Spark server. Possible values include: 'SparkAuthenticationTypeAnonymous', 'SparkAuthenticationTypeUsername', 'SparkAuthenticationTypeUsernameAndPassword', 'SparkAuthenticationTypeWindowsAzureHDInsightService' + AuthenticationType SparkAuthenticationType `json:"authenticationType,omitempty"` + // Username - The user name that you use to access Spark Server. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name that you provided in the Username field + Password BasicSecretBase `json:"password,omitempty"` + // HTTPPath - The partial URL corresponding to the Spark server. + HTTPPath interface{} `json:"httpPath,omitempty"` + // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. + EnableSsl interface{} `json:"enableSsl,omitempty"` + // TrustedCertPath - 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. + TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. + UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + // AllowHostNameCNMismatch - 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. + AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. + AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SparkLinkedServiceTypeProperties struct. +func (slstp *SparkLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var host interface{} + err = json.Unmarshal(*v, &host) if err != nil { return err } - sss.SourceRetryCount = sourceRetryCount + slstp.Host = host } - case "sourceRetryWait": + case "port": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var port interface{} + err = json.Unmarshal(*v, &port) if err != nil { return err } - sss.SourceRetryWait = sourceRetryWait + slstp.Port = port } - case "maxConcurrentConnections": + case "serverType": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var serverType SparkServerType + err = json.Unmarshal(*v, &serverType) if err != nil { return err } - sss.MaxConcurrentConnections = maxConcurrentConnections + slstp.ServerType = serverType } - case "type": + case "thriftTransportProtocol": if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) + var thriftTransportProtocol SparkThriftTransportProtocol + err = json.Unmarshal(*v, &thriftTransportProtocol) if err != nil { return err } - sss.Type = typeVar + slstp.ThriftTransportProtocol = thriftTransportProtocol } - } - } - - return nil -} - -// SQLServerStoredProcedureActivity SQL stored procedure activity type. -type SQLServerStoredProcedureActivity struct { - // SQLServerStoredProcedureActivityTypeProperties - SQL stored procedure activity properties. - *SQLServerStoredProcedureActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) MarshalJSON() ([]byte, error) { - ssspa.Type = TypeSQLServerStoredProcedure - objectMap := make(map[string]interface{}) - if ssspa.SQLServerStoredProcedureActivityTypeProperties != nil { - objectMap["typeProperties"] = ssspa.SQLServerStoredProcedureActivityTypeProperties - } - if ssspa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ssspa.LinkedServiceName - } - if ssspa.Policy != nil { - objectMap["policy"] = ssspa.Policy - } - if ssspa.Name != nil { - objectMap["name"] = ssspa.Name - } - if ssspa.Description != nil { - objectMap["description"] = ssspa.Description - } - if ssspa.DependsOn != nil { - objectMap["dependsOn"] = ssspa.DependsOn - } - if ssspa.UserProperties != nil { - objectMap["userProperties"] = ssspa.UserProperties - } - if ssspa.Type != "" { - objectMap["type"] = ssspa.Type - } - for k, v := range ssspa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return &ssspa, true -} - -// AsCustomActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ssspa, true -} - -// AsWebHookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsBasicActivity() (BasicActivity, bool) { - return &ssspa, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLServerStoredProcedureActivity struct. -func (ssspa *SQLServerStoredProcedureActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": + case "authenticationType": if v != nil { - var SQLServerStoredProcedureActivityTypeProperties SQLServerStoredProcedureActivityTypeProperties - err = json.Unmarshal(*v, &SQLServerStoredProcedureActivityTypeProperties) + var authenticationType SparkAuthenticationType + err = json.Unmarshal(*v, &authenticationType) if err != nil { return err } - ssspa.SQLServerStoredProcedureActivityTypeProperties = &SQLServerStoredProcedureActivityTypeProperties + slstp.AuthenticationType = authenticationType } - case "linkedServiceName": + case "username": if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) + var username interface{} + err = json.Unmarshal(*v, &username) if err != nil { return err } - ssspa.LinkedServiceName = &linkedServiceName + slstp.Username = username } - case "policy": + case "password": if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) + password, err := unmarshalBasicSecretBase(*v) if err != nil { return err } - ssspa.Policy = &policy + slstp.Password = password } - default: + case "httpPath": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var HTTPPath interface{} + err = json.Unmarshal(*v, &HTTPPath) if err != nil { return err } - if ssspa.AdditionalProperties == nil { - ssspa.AdditionalProperties = make(map[string]interface{}) + slstp.HTTPPath = HTTPPath + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err } - ssspa.AdditionalProperties[k] = additionalProperties + slstp.EnableSsl = enableSsl } - case "name": + case "trustedCertPath": if v != nil { - var name string - err = json.Unmarshal(*v, &name) + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) if err != nil { return err } - ssspa.Name = &name + slstp.TrustedCertPath = trustedCertPath } - case "description": + case "useSystemTrustStore": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var useSystemTrustStore interface{} + err = json.Unmarshal(*v, &useSystemTrustStore) if err != nil { return err } - ssspa.Description = &description + slstp.UseSystemTrustStore = useSystemTrustStore } - case "dependsOn": + case "allowHostNameCNMismatch": if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) + var allowHostNameCNMismatch interface{} + err = json.Unmarshal(*v, &allowHostNameCNMismatch) if err != nil { return err } - ssspa.DependsOn = &dependsOn + slstp.AllowHostNameCNMismatch = allowHostNameCNMismatch } - case "userProperties": + case "allowSelfSignedServerCert": if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) + var allowSelfSignedServerCert interface{} + err = json.Unmarshal(*v, &allowSelfSignedServerCert) if err != nil { return err } - ssspa.UserProperties = &userProperties + slstp.AllowSelfSignedServerCert = allowSelfSignedServerCert } - case "type": + case "encryptedCredential": if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) if err != nil { return err } - ssspa.Type = typeVar + slstp.EncryptedCredential = encryptedCredential } } } @@ -225597,30 +227604,10 @@ func (ssspa *SQLServerStoredProcedureActivity) UnmarshalJSON(body []byte) error return nil } -// SQLServerStoredProcedureActivityTypeProperties SQL stored procedure activity properties. -type SQLServerStoredProcedureActivityTypeProperties struct { - // StoredProcedureName - Stored procedure name. Type: string (or Expression with resultType string). - StoredProcedureName interface{} `json:"storedProcedureName,omitempty"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` -} - -// MarshalJSON is the custom marshaler for SQLServerStoredProcedureActivityTypeProperties. -func (ssspatp SQLServerStoredProcedureActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ssspatp.StoredProcedureName != nil { - objectMap["storedProcedureName"] = ssspatp.StoredProcedureName - } - if ssspatp.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ssspatp.StoredProcedureParameters - } - return json.Marshal(objectMap) -} - -// SQLServerTableDataset the on-premises SQL Server dataset. -type SQLServerTableDataset struct { - // SQLServerTableDatasetTypeProperties - On-premises SQL Server dataset properties. - *SQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` +// SparkObjectDataset spark Server dataset. +type SparkObjectDataset struct { + // SparkDatasetTypeProperties - Properties specific to this dataset type. + *SparkDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -225641,520 +227628,520 @@ type SQLServerTableDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SQLServerTableDataset. -func (sstd SQLServerTableDataset) MarshalJSON() ([]byte, error) { - sstd.Type = TypeSQLServerTable +// MarshalJSON is the custom marshaler for SparkObjectDataset. +func (sod SparkObjectDataset) MarshalJSON() ([]byte, error) { + sod.Type = TypeSparkObject objectMap := make(map[string]interface{}) - if sstd.SQLServerTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = sstd.SQLServerTableDatasetTypeProperties + if sod.SparkDatasetTypeProperties != nil { + objectMap["typeProperties"] = sod.SparkDatasetTypeProperties } - if sstd.Description != nil { - objectMap["description"] = sstd.Description + if sod.Description != nil { + objectMap["description"] = sod.Description } - if sstd.Structure != nil { - objectMap["structure"] = sstd.Structure + if sod.Structure != nil { + objectMap["structure"] = sod.Structure } - if sstd.Schema != nil { - objectMap["schema"] = sstd.Schema + if sod.Schema != nil { + objectMap["schema"] = sod.Schema } - if sstd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sstd.LinkedServiceName + if sod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sod.LinkedServiceName } - if sstd.Parameters != nil { - objectMap["parameters"] = sstd.Parameters + if sod.Parameters != nil { + objectMap["parameters"] = sod.Parameters } - if sstd.Annotations != nil { - objectMap["annotations"] = sstd.Annotations + if sod.Annotations != nil { + objectMap["annotations"] = sod.Annotations } - if sstd.Folder != nil { - objectMap["folder"] = sstd.Folder + if sod.Folder != nil { + objectMap["folder"] = sod.Folder } - if sstd.Type != "" { - objectMap["type"] = sstd.Type + if sod.Type != "" { + objectMap["type"] = sod.Type } - for k, v := range sstd.AdditionalProperties { + for k, v := range sod.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false +// AsSparkObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return &sod, true } -// AsShopifyObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return &sstd, true +// AsSQLServerTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsXMLDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsXMLDataset() (*XMLDataset, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &sstd, true +// AsBasicDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &sod, true } -// UnmarshalJSON is the custom unmarshaler for SQLServerTableDataset struct. -func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SparkObjectDataset struct. +func (sod *SparkObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -226164,12 +228151,12 @@ func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var SQLServerTableDatasetTypeProperties SQLServerTableDatasetTypeProperties - err = json.Unmarshal(*v, &SQLServerTableDatasetTypeProperties) + var sparkDatasetTypeProperties SparkDatasetTypeProperties + err = json.Unmarshal(*v, &sparkDatasetTypeProperties) if err != nil { return err } - sstd.SQLServerTableDatasetTypeProperties = &SQLServerTableDatasetTypeProperties + sod.SparkDatasetTypeProperties = &sparkDatasetTypeProperties } default: if v != nil { @@ -226178,10 +228165,10 @@ func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if sstd.AdditionalProperties == nil { - sstd.AdditionalProperties = make(map[string]interface{}) + if sod.AdditionalProperties == nil { + sod.AdditionalProperties = make(map[string]interface{}) } - sstd.AdditionalProperties[k] = additionalProperties + sod.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -226190,7 +228177,7 @@ func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sstd.Description = &description + sod.Description = &description } case "structure": if v != nil { @@ -226199,7 +228186,7 @@ func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sstd.Structure = structure + sod.Structure = structure } case "schema": if v != nil { @@ -226208,7 +228195,7 @@ func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sstd.Schema = schema + sod.Schema = schema } case "linkedServiceName": if v != nil { @@ -226217,7 +228204,7 @@ func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sstd.LinkedServiceName = &linkedServiceName + sod.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -226226,7 +228213,7 @@ func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sstd.Parameters = parameters + sod.Parameters = parameters } case "annotations": if v != nil { @@ -226235,7 +228222,7 @@ func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sstd.Annotations = &annotations + sod.Annotations = &annotations } case "folder": if v != nil { @@ -226244,7 +228231,7 @@ func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sstd.Folder = &folder + sod.Folder = &folder } case "type": if v != nil { @@ -226253,423 +228240,7 @@ func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - sstd.Type = typeVar - } - } - } - - return nil -} - -// SQLServerTableDatasetTypeProperties on-premises SQL Server dataset properties. -type SQLServerTableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Schema - The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the SQL Server dataset. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// SQLSink a copy activity SQL sink. -type SQLSink struct { - // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` - // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // StoredProcedureParameters - SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` - // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` - // TableOption - The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeCosmosDbMongoDbAPISink', 'TypeSalesforceServiceCloudSink', 'TypeSalesforceSink', 'TypeAzureDataExplorerSink', 'TypeCommonDataServiceForAppsSink', 'TypeDynamicsCrmSink', 'TypeDynamicsSink', 'TypeMicrosoftAccessSink', 'TypeInformixSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureBlobFSSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSnowflakeSink', 'TypeSQLDWSink', 'TypeSQLMISink', 'TypeAzureSQLSink', 'TypeSQLServerSink', 'TypeSQLSink', 'TypeCosmosDbSQLAPISink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeBinarySink', 'TypeParquetSink', 'TypeAvroSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink', 'TypeAzureDatabricksDeltaLakeSink', 'TypeAzureMySQLSink', 'TypeAzurePostgreSQLSink', 'TypeRestSink', 'TypeOrcSink', 'TypeJSONSink', 'TypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLSink. -func (ss SQLSink) MarshalJSON() ([]byte, error) { - ss.Type = TypeSQLSink - objectMap := make(map[string]interface{}) - if ss.SQLWriterStoredProcedureName != nil { - objectMap["sqlWriterStoredProcedureName"] = ss.SQLWriterStoredProcedureName - } - if ss.SQLWriterTableType != nil { - objectMap["sqlWriterTableType"] = ss.SQLWriterTableType - } - if ss.PreCopyScript != nil { - objectMap["preCopyScript"] = ss.PreCopyScript - } - if ss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ss.StoredProcedureParameters - } - if ss.StoredProcedureTableTypeParameterName != nil { - objectMap["storedProcedureTableTypeParameterName"] = ss.StoredProcedureTableTypeParameterName - } - if ss.TableOption != nil { - objectMap["tableOption"] = ss.TableOption - } - if ss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ss.WriteBatchSize - } - if ss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout - } - if ss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ss.SinkRetryCount - } - if ss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ss.SinkRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSQLSink() (*SQLSink, bool) { - return &ss, true -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLSink struct. -func (ss *SQLSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlWriterStoredProcedureName": - if v != nil { - var SQLWriterStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) - if err != nil { - return err - } - ss.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName - } - case "sqlWriterTableType": - if v != nil { - var SQLWriterTableType interface{} - err = json.Unmarshal(*v, &SQLWriterTableType) - if err != nil { - return err - } - ss.SQLWriterTableType = SQLWriterTableType - } - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - ss.PreCopyScript = preCopyScript - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters map[string]*StoredProcedureParameter - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - ss.StoredProcedureParameters = storedProcedureParameters - } - case "storedProcedureTableTypeParameterName": - if v != nil { - var storedProcedureTableTypeParameterName interface{} - err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) - if err != nil { - return err - } - ss.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName - } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ss.TableOption = tableOption - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar + sod.Type = typeVar } } } @@ -226677,20 +228248,10 @@ func (ss *SQLSink) UnmarshalJSON(body []byte) error { return nil } -// SQLSource a copy activity SQL source. -type SQLSource struct { - // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` - // IsolationLevel - Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: string (or Expression with resultType string). - IsolationLevel interface{} `json:"isolationLevel,omitempty"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` +// SparkSource a copy activity Spark Server source. +type SparkSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). @@ -226707,27 +228268,12 @@ type SQLSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for SQLSource. -func (ss SQLSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeSQLSource +// MarshalJSON is the custom marshaler for SparkSource. +func (ss SparkSource) MarshalJSON() ([]byte, error) { + ss.Type = TypeSparkSource objectMap := make(map[string]interface{}) - if ss.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = ss.SQLReaderQuery - } - if ss.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = ss.SQLReaderStoredProcedureName - } - if ss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ss.StoredProcedureParameters - } - if ss.IsolationLevel != nil { - objectMap["isolationLevel"] = ss.IsolationLevel - } - if ss.PartitionOption != nil { - objectMap["partitionOption"] = ss.PartitionOption - } - if ss.PartitionSettings != nil { - objectMap["partitionSettings"] = ss.PartitionSettings + if ss.Query != nil { + objectMap["query"] = ss.Query } if ss.QueryTimeout != nil { objectMap["queryTimeout"] = ss.QueryTimeout @@ -226753,488 +228299,488 @@ func (ss SQLSource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsXeroSource() (*XeroSource, bool) { +// AsXeroSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsSquareSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false +// AsSparkSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSparkSource() (*SparkSource, bool) { + return &ss, true } -// AsShopifySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSQLSource() (*SQLSource, bool) { - return &ss, true +// AsSQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSQLSource() (*SQLSource, bool) { + return nil, false } -// AsSapTableSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsBasicTabularSource() (BasicTabularSource, bool) { return &ss, true } -// AsBinarySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsXMLSource() (*XMLSource, bool) { +// AsXMLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsXMLSource() (*XMLSource, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsBasicCopySource() (BasicCopySource, bool) { +// AsBasicCopySource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsBasicCopySource() (BasicCopySource, bool) { return &ss, true } -// UnmarshalJSON is the custom unmarshaler for SQLSource struct. -func (ss *SQLSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for SparkSource struct. +func (ss *SparkSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -227242,59 +228788,14 @@ func (ss *SQLSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - ss.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - ss.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters map[string]*StoredProcedureParameter - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - ss.StoredProcedureParameters = storedProcedureParameters - } - case "isolationLevel": - if v != nil { - var isolationLevel interface{} - err = json.Unmarshal(*v, &isolationLevel) - if err != nil { - return err - } - ss.IsolationLevel = isolationLevel - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - ss.PartitionOption = partitionOption - } - case "partitionSettings": + case "query": if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - ss.PartitionSettings = &partitionSettings + ss.Query = query } case "queryTimeout": if v != nil { @@ -229387,69 +230888,6 @@ func (ss *SquareSource) UnmarshalJSON(body []byte) error { return nil } -// SSISAccessCredential SSIS access credential. -type SSISAccessCredential struct { - // Domain - Domain for windows authentication. - Domain interface{} `json:"domain,omitempty"` - // UserName - UseName for windows authentication. - UserName interface{} `json:"userName,omitempty"` - // Password - Password for windows authentication. - Password BasicSecretBase `json:"password,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SSISAccessCredential struct. -func (sac *SSISAccessCredential) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "domain": - if v != nil { - var domain interface{} - err = json.Unmarshal(*v, &domain) - if err != nil { - return err - } - sac.Domain = domain - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sac.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sac.Password = password - } - } - } - - return nil -} - -// SSISChildPackage SSIS embedded child package. -type SSISChildPackage struct { - // PackagePath - Path for embedded child package. Type: string (or Expression with resultType string). - PackagePath interface{} `json:"packagePath,omitempty"` - // PackageName - Name for embedded child package. - PackageName *string `json:"packageName,omitempty"` - // PackageContent - Content for embedded child package. Type: string (or Expression with resultType string). - PackageContent interface{} `json:"packageContent,omitempty"` - // PackageLastModifiedDate - Last modified date for embedded child package. - PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` -} - // SsisEnvironment ssis environment. type SsisEnvironment struct { // FolderID - Folder id which contains environment. @@ -229533,22 +230971,6 @@ type SsisEnvironmentReference struct { ReferenceType *string `json:"referenceType,omitempty"` } -// SSISExecutionCredential SSIS package execution credential. -type SSISExecutionCredential struct { - // Domain - Domain for windows authentication. - Domain interface{} `json:"domain,omitempty"` - // UserName - UseName for windows authentication. - UserName interface{} `json:"userName,omitempty"` - // Password - Password for windows authentication. - Password *SecureString `json:"password,omitempty"` -} - -// SSISExecutionParameter SSIS execution parameter. -type SSISExecutionParameter struct { - // Value - SSIS package execution parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` -} - // SsisFolder ssis folder. type SsisFolder struct { // ID - Metadata id. @@ -229610,81 +231032,6 @@ func (sf SsisFolder) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) return &sf, true } -// SSISLogLocation SSIS package execution log location -type SSISLogLocation struct { - // LogPath - The SSIS package execution log path. Type: string (or Expression with resultType string). - LogPath interface{} `json:"logPath,omitempty"` - // Type - The type of SSIS log location. - Type *string `json:"type,omitempty"` - // SSISLogLocationTypeProperties - SSIS package execution log location properties. - *SSISLogLocationTypeProperties `json:"typeProperties,omitempty"` -} - -// MarshalJSON is the custom marshaler for SSISLogLocation. -func (sll SSISLogLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sll.LogPath != nil { - objectMap["logPath"] = sll.LogPath - } - if sll.Type != nil { - objectMap["type"] = sll.Type - } - if sll.SSISLogLocationTypeProperties != nil { - objectMap["typeProperties"] = sll.SSISLogLocationTypeProperties - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for SSISLogLocation struct. -func (sll *SSISLogLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "logPath": - if v != nil { - var logPath interface{} - err = json.Unmarshal(*v, &logPath) - if err != nil { - return err - } - sll.LogPath = logPath - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sll.Type = &typeVar - } - case "typeProperties": - if v != nil { - var sSISLogLocationTypeProperties SSISLogLocationTypeProperties - err = json.Unmarshal(*v, &sSISLogLocationTypeProperties) - if err != nil { - return err - } - sll.SSISLogLocationTypeProperties = &sSISLogLocationTypeProperties - } - } - } - - return nil -} - -// SSISLogLocationTypeProperties SSIS package execution log location properties. -type SSISLogLocationTypeProperties struct { - // AccessCredential - The package execution log access credential. - AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"` - // LogRefreshInterval - Specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - LogRefreshInterval interface{} `json:"logRefreshInterval,omitempty"` -} - // BasicSsisObjectMetadata SSIS object metadata. type BasicSsisObjectMetadata interface { AsSsisEnvironment() (*SsisEnvironment, bool) @@ -229939,179 +231286,6 @@ func (sp SsisPackage) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool return &sp, true } -// SSISPackageLocation SSIS package location. -type SSISPackageLocation struct { - // PackagePath - The SSIS package path. Type: string (or Expression with resultType string). - PackagePath interface{} `json:"packagePath,omitempty"` - // Type - The type of SSIS package location. Possible values include: 'SsisPackageLocationTypeSSISDB', 'SsisPackageLocationTypeFile', 'SsisPackageLocationTypeInlinePackage', 'SsisPackageLocationTypePackageStore' - Type SsisPackageLocationType `json:"type,omitempty"` - // SSISPackageLocationTypeProperties - SSIS package location properties. - *SSISPackageLocationTypeProperties `json:"typeProperties,omitempty"` -} - -// MarshalJSON is the custom marshaler for SSISPackageLocation. -func (spl SSISPackageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if spl.PackagePath != nil { - objectMap["packagePath"] = spl.PackagePath - } - if spl.Type != "" { - objectMap["type"] = spl.Type - } - if spl.SSISPackageLocationTypeProperties != nil { - objectMap["typeProperties"] = spl.SSISPackageLocationTypeProperties - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for SSISPackageLocation struct. -func (spl *SSISPackageLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "packagePath": - if v != nil { - var packagePath interface{} - err = json.Unmarshal(*v, &packagePath) - if err != nil { - return err - } - spl.PackagePath = packagePath - } - case "type": - if v != nil { - var typeVar SsisPackageLocationType - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - spl.Type = typeVar - } - case "typeProperties": - if v != nil { - var sSISPackageLocationTypeProperties SSISPackageLocationTypeProperties - err = json.Unmarshal(*v, &sSISPackageLocationTypeProperties) - if err != nil { - return err - } - spl.SSISPackageLocationTypeProperties = &sSISPackageLocationTypeProperties - } - } - } - - return nil -} - -// SSISPackageLocationTypeProperties SSIS package location properties. -type SSISPackageLocationTypeProperties struct { - // PackagePassword - Password of the package. - PackagePassword BasicSecretBase `json:"packagePassword,omitempty"` - // AccessCredential - The package access credential. - AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"` - // ConfigurationPath - The configuration file of the package execution. Type: string (or Expression with resultType string). - ConfigurationPath interface{} `json:"configurationPath,omitempty"` - // ConfigurationAccessCredential - The configuration file access credential. - ConfigurationAccessCredential *SSISAccessCredential `json:"configurationAccessCredential,omitempty"` - // PackageName - The package name. - PackageName *string `json:"packageName,omitempty"` - // PackageContent - The embedded package content. Type: string (or Expression with resultType string). - PackageContent interface{} `json:"packageContent,omitempty"` - // PackageLastModifiedDate - The embedded package last modified date. - PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` - // ChildPackages - The embedded child package list. - ChildPackages *[]SSISChildPackage `json:"childPackages,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SSISPackageLocationTypeProperties struct. -func (spltp *SSISPackageLocationTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "packagePassword": - if v != nil { - packagePassword, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - spltp.PackagePassword = packagePassword - } - case "accessCredential": - if v != nil { - var accessCredential SSISAccessCredential - err = json.Unmarshal(*v, &accessCredential) - if err != nil { - return err - } - spltp.AccessCredential = &accessCredential - } - case "configurationPath": - if v != nil { - var configurationPath interface{} - err = json.Unmarshal(*v, &configurationPath) - if err != nil { - return err - } - spltp.ConfigurationPath = configurationPath - } - case "configurationAccessCredential": - if v != nil { - var configurationAccessCredential SSISAccessCredential - err = json.Unmarshal(*v, &configurationAccessCredential) - if err != nil { - return err - } - spltp.ConfigurationAccessCredential = &configurationAccessCredential - } - case "packageName": - if v != nil { - var packageName string - err = json.Unmarshal(*v, &packageName) - if err != nil { - return err - } - spltp.PackageName = &packageName - } - case "packageContent": - if v != nil { - var packageContent interface{} - err = json.Unmarshal(*v, &packageContent) - if err != nil { - return err - } - spltp.PackageContent = packageContent - } - case "packageLastModifiedDate": - if v != nil { - var packageLastModifiedDate string - err = json.Unmarshal(*v, &packageLastModifiedDate) - if err != nil { - return err - } - spltp.PackageLastModifiedDate = &packageLastModifiedDate - } - case "childPackages": - if v != nil { - var childPackages []SSISChildPackage - err = json.Unmarshal(*v, &childPackages) - if err != nil { - return err - } - spltp.ChildPackages = &childPackages - } - } - } - - return nil -} - // SsisParameter ssis parameter. type SsisParameter struct { // ID - Parameter id. @@ -230221,14 +231395,6 @@ func (sp SsisProject) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool return &sp, true } -// SSISPropertyOverride SSIS property override. -type SSISPropertyOverride struct { - // Value - SSIS package property override value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` - // IsSensitive - Whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB if it is true - IsSensitive *bool `json:"isSensitive,omitempty"` -} - // SsisVariable ssis variable. type SsisVariable struct { // ID - Variable id. @@ -230331,14 +231497,6 @@ func (ss *StagingSettings) UnmarshalJSON(body []byte) error { return nil } -// StoredProcedureParameter SQL stored procedure parameter. -type StoredProcedureParameter struct { - // Value - Stored procedure parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` - // Type - Stored procedure parameter type. Possible values include: 'StoredProcedureParameterTypeString', 'StoredProcedureParameterTypeInt', 'StoredProcedureParameterTypeInt64', 'StoredProcedureParameterTypeDecimal', 'StoredProcedureParameterTypeGUID', 'StoredProcedureParameterTypeBoolean', 'StoredProcedureParameterTypeDate' - Type StoredProcedureParameterType `json:"type,omitempty"` -} - // BasicStoreReadSettings connector read setting. type BasicStoreReadSettings interface { AsHdfsReadSettings() (*HdfsReadSettings, bool) @@ -230781,6 +231939,14 @@ func (sws *StoreWriteSettings) UnmarshalJSON(body []byte) error { return nil } +// StoredProcedureParameter SQL stored procedure parameter. +type StoredProcedureParameter struct { + // Value - Stored procedure parameter value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` + // Type - Stored procedure parameter type. Possible values include: 'StoredProcedureParameterTypeString', 'StoredProcedureParameterTypeInt', 'StoredProcedureParameterTypeInt64', 'StoredProcedureParameterTypeDecimal', 'StoredProcedureParameterTypeGUID', 'StoredProcedureParameterTypeBoolean', 'StoredProcedureParameterTypeDate' + Type StoredProcedureParameterType `json:"type,omitempty"` +} + // SubResource azure Data Factory nested resource, which belongs to a factory. type SubResource struct { // ID - READ-ONLY; The resource identifier. @@ -237569,6 +238735,15 @@ type TriggerRunsQueryResponse struct { ContinuationToken *string `json:"continuationToken,omitempty"` } +// TriggerSubscriptionOperationStatus defines the response of a trigger subscription operation. +type TriggerSubscriptionOperationStatus struct { + autorest.Response `json:"-"` + // TriggerName - READ-ONLY; Trigger name. + TriggerName *string `json:"triggerName,omitempty"` + // Status - READ-ONLY; Event Subscription Status. Possible values include: 'Enabled', 'Provisioning', 'Deprovisioning', 'Disabled', 'Unknown' + Status EventSubscriptionStatus `json:"status,omitempty"` +} + // TriggersStartFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type TriggersStartFuture struct { @@ -237682,15 +238857,6 @@ func (future *TriggersSubscribeToEventsFuture) result(client TriggersClient) (ts return } -// TriggerSubscriptionOperationStatus defines the response of a trigger subscription operation. -type TriggerSubscriptionOperationStatus struct { - autorest.Response `json:"-"` - // TriggerName - READ-ONLY; Trigger name. - TriggerName *string `json:"triggerName,omitempty"` - // Status - READ-ONLY; Event Subscription Status. Possible values include: 'Enabled', 'Provisioning', 'Deprovisioning', 'Disabled', 'Unknown' - Status EventSubscriptionStatus `json:"status,omitempty"` -} - // TriggersUnsubscribeFromEventsFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type TriggersUnsubscribeFromEventsFuture struct { @@ -244153,564 +245319,544 @@ type WebTableDatasetTypeProperties struct { Path interface{} `json:"path,omitempty"` } -// XeroLinkedService xero Service linked service. -type XeroLinkedService struct { - // XeroLinkedServiceTypeProperties - Xero Service linked service properties. - *XeroLinkedServiceTypeProperties `json:"typeProperties,omitempty"` +// XMLDataset xml dataset. +type XMLDataset struct { + // XMLDatasetTypeProperties - Xml dataset properties. + *XMLDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. + // Description - Dataset description. Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. + // Annotations - List of tags that can be used for describing the Dataset. Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for XeroLinkedService. -func (xls XeroLinkedService) MarshalJSON() ([]byte, error) { - xls.Type = TypeXero +// MarshalJSON is the custom marshaler for XMLDataset. +func (xd XMLDataset) MarshalJSON() ([]byte, error) { + xd.Type = TypeXML objectMap := make(map[string]interface{}) - if xls.XeroLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = xls.XeroLinkedServiceTypeProperties + if xd.XMLDatasetTypeProperties != nil { + objectMap["typeProperties"] = xd.XMLDatasetTypeProperties } - if xls.ConnectVia != nil { - objectMap["connectVia"] = xls.ConnectVia + if xd.Description != nil { + objectMap["description"] = xd.Description } - if xls.Description != nil { - objectMap["description"] = xls.Description + if xd.Structure != nil { + objectMap["structure"] = xd.Structure } - if xls.Parameters != nil { - objectMap["parameters"] = xls.Parameters + if xd.Schema != nil { + objectMap["schema"] = xd.Schema } - if xls.Annotations != nil { - objectMap["annotations"] = xls.Annotations + if xd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = xd.LinkedServiceName } - if xls.Type != "" { - objectMap["type"] = xls.Type + if xd.Parameters != nil { + objectMap["parameters"] = xd.Parameters } - for k, v := range xls.AdditionalProperties { + if xd.Annotations != nil { + objectMap["annotations"] = xd.Annotations + } + if xd.Folder != nil { + objectMap["folder"] = xd.Folder + } + if xd.Type != "" { + objectMap["type"] = xd.Type + } + for k, v := range xd.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsResponsysLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsNetezzaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsZohoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsXeroLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return &xls, true -} - -// AsSquareLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsSparkLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { +// AsXeroObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { return nil, false } -// AsShopifyLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsServiceNowLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsQuickBooksLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsPrestoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsPhoenixLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPaypalLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsMarketoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMariaDBLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsMagentoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsJiraLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsImpalaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsHubspotLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsHiveLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHBaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsGreenplumLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsEloquaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsDrillLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsCouchbaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsConcurLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { +// AsDrillTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsSapHanaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsSapBWLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsSftpServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { +// AsHTTPDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsFtpServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsHTTPLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { +// AsWebTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsAzureSearchLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { +// AsRestResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsAmazonS3LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsRestServiceLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapEccLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsOffice365LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { +// AsInformixTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsMongoDbLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsCassandraLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { +// AsDb2TableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsWebLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsODataLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsHdfsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { +// AsOracleTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsInformixLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { +// AsODataResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsOdbcLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsAzureMLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsTeradataLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsDb2LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { +// AsFileShareDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsSybaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { +// AsOffice365Dataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsMySQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsOracleLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { +// AsCustomDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsFileServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsHDInsightLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsDynamicsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { +// AsAzureTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsCosmosDbLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { +// AsBinaryDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsAzureBatchLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { +// AsOrcDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false +// AsXMLDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsXMLDataset() (*XMLDataset, bool) { + return &xd, true } -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { +// AsJSONDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsSQLServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { +// AsParquetDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { +// AsExcelDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { +// AsAvroDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAzureStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsLinkedService() (*LinkedService, bool) { +// AsDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &xls, true +// AsBasicDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsBasicDataset() (BasicDataset, bool) { + return &xd, true } -// UnmarshalJSON is the custom unmarshaler for XeroLinkedService struct. -func (xls *XeroLinkedService) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for XMLDataset struct. +func (xd *XMLDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -244720,12 +245866,12 @@ func (xls *XeroLinkedService) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var xeroLinkedServiceTypeProperties XeroLinkedServiceTypeProperties - err = json.Unmarshal(*v, &xeroLinkedServiceTypeProperties) + var XMLDatasetTypeProperties XMLDatasetTypeProperties + err = json.Unmarshal(*v, &XMLDatasetTypeProperties) if err != nil { return err } - xls.XeroLinkedServiceTypeProperties = &xeroLinkedServiceTypeProperties + xd.XMLDatasetTypeProperties = &XMLDatasetTypeProperties } default: if v != nil { @@ -244734,28 +245880,46 @@ func (xls *XeroLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - if xls.AdditionalProperties == nil { - xls.AdditionalProperties = make(map[string]interface{}) + if xd.AdditionalProperties == nil { + xd.AdditionalProperties = make(map[string]interface{}) } - xls.AdditionalProperties[k] = additionalProperties + xd.AdditionalProperties[k] = additionalProperties } - case "connectVia": + case "description": if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - xls.ConnectVia = &connectVia + xd.Description = &description } - case "description": + case "structure": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var structure interface{} + err = json.Unmarshal(*v, &structure) if err != nil { return err } - xls.Description = &description + xd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + xd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + xd.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -244764,7 +245928,7 @@ func (xls *XeroLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - xls.Parameters = parameters + xd.Parameters = parameters } case "annotations": if v != nil { @@ -244773,16 +245937,25 @@ func (xls *XeroLinkedService) UnmarshalJSON(body []byte) error { if err != nil { return err } - xls.Annotations = &annotations + xd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + xd.Folder = &folder } case "type": if v != nil { - var typeVar TypeBasicLinkedService + var typeVar TypeBasicDataset err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - xls.Type = typeVar + xd.Type = typeVar } } } @@ -244790,29 +245963,20 @@ func (xls *XeroLinkedService) UnmarshalJSON(body []byte) error { return nil } -// XeroLinkedServiceTypeProperties xero Service linked service properties. -type XeroLinkedServiceTypeProperties struct { - // ConnectionProperties - Properties used to connect to Xero. It is mutually exclusive with any other properties in the linked service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` - // Host - The endpoint of the Xero server. (i.e. api.xero.com) - Host interface{} `json:"host,omitempty"` - // ConsumerKey - The consumer key associated with the Xero application. - ConsumerKey BasicSecretBase `json:"consumerKey,omitempty"` - // PrivateKey - 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( - // ). - PrivateKey BasicSecretBase `json:"privateKey,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +// XMLDatasetTypeProperties xml dataset properties. +type XMLDatasetTypeProperties struct { + // Location - The location of the json data storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // EncodingName - 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). + EncodingName interface{} `json:"encodingName,omitempty"` + // NullValue - The null value string. Type: string (or Expression with resultType string). + NullValue interface{} `json:"nullValue,omitempty"` + // Compression - The data compression method used for the json dataset. + Compression BasicDatasetCompression `json:"compression,omitempty"` } -// UnmarshalJSON is the custom unmarshaler for XeroLinkedServiceTypeProperties struct. -func (xlstp *XeroLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for XMLDatasetTypeProperties struct. +func (xdtp *XMLDatasetTypeProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -244820,75 +245984,193 @@ func (xlstp *XeroLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "connectionProperties": + case "location": if v != nil { - var connectionProperties interface{} - err = json.Unmarshal(*v, &connectionProperties) + location, err := unmarshalBasicDatasetLocation(*v) if err != nil { return err } - xlstp.ConnectionProperties = connectionProperties + xdtp.Location = location } - case "host": + case "encodingName": if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) + var encodingName interface{} + err = json.Unmarshal(*v, &encodingName) if err != nil { return err } - xlstp.Host = host + xdtp.EncodingName = encodingName } - case "consumerKey": + case "nullValue": if v != nil { - consumerKey, err := unmarshalBasicSecretBase(*v) + var nullValue interface{} + err = json.Unmarshal(*v, &nullValue) if err != nil { return err } - xlstp.ConsumerKey = consumerKey + xdtp.NullValue = nullValue } - case "privateKey": + case "compression": if v != nil { - privateKey, err := unmarshalBasicSecretBase(*v) + compression, err := unmarshalBasicDatasetCompression(*v) if err != nil { return err } - xlstp.PrivateKey = privateKey + xdtp.Compression = compression } - case "useEncryptedEndpoints": + } + } + + return nil +} + +// XMLReadSettings xml read settings. +type XMLReadSettings struct { + // CompressionProperties - Compression settings. + CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` + // ValidationMode - Indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string). + ValidationMode interface{} `json:"validationMode,omitempty"` + // DetectDataType - Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). + DetectDataType interface{} `json:"detectDataType,omitempty"` + // Namespaces - Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). + Namespaces interface{} `json:"namespaces,omitempty"` + // NamespacePrefixes - Namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object). + NamespacePrefixes interface{} `json:"namespacePrefixes,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeFormatReadSettings', 'TypeBinaryReadSettings', 'TypeXMLReadSettings', 'TypeJSONReadSettings', 'TypeDelimitedTextReadSettings' + Type TypeBasicFormatReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for XMLReadSettings. +func (xrs XMLReadSettings) MarshalJSON() ([]byte, error) { + xrs.Type = TypeXMLReadSettings + objectMap := make(map[string]interface{}) + objectMap["compressionProperties"] = xrs.CompressionProperties + if xrs.ValidationMode != nil { + objectMap["validationMode"] = xrs.ValidationMode + } + if xrs.DetectDataType != nil { + objectMap["detectDataType"] = xrs.DetectDataType + } + if xrs.Namespaces != nil { + objectMap["namespaces"] = xrs.Namespaces + } + if xrs.NamespacePrefixes != nil { + objectMap["namespacePrefixes"] = xrs.NamespacePrefixes + } + if xrs.Type != "" { + objectMap["type"] = xrs.Type + } + for k, v := range xrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsBinaryReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { + return nil, false +} + +// AsXMLReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { + return &xrs, true +} + +// AsJSONReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { + return nil, false +} + +// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { + return nil, false +} + +// AsFormatReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { + return nil, false +} + +// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { + return &xrs, true +} + +// UnmarshalJSON is the custom unmarshaler for XMLReadSettings struct. +func (xrs *XMLReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "compressionProperties": if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) + compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) if err != nil { return err } - xlstp.UseEncryptedEndpoints = useEncryptedEndpoints + xrs.CompressionProperties = compressionProperties } - case "useHostVerification": + case "validationMode": if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) + var validationMode interface{} + err = json.Unmarshal(*v, &validationMode) if err != nil { return err } - xlstp.UseHostVerification = useHostVerification + xrs.ValidationMode = validationMode } - case "usePeerVerification": + case "detectDataType": if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) + var detectDataType interface{} + err = json.Unmarshal(*v, &detectDataType) if err != nil { return err } - xlstp.UsePeerVerification = usePeerVerification + xrs.DetectDataType = detectDataType } - case "encryptedCredential": + case "namespaces": if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) + var namespaces interface{} + err = json.Unmarshal(*v, &namespaces) if err != nil { return err } - xlstp.EncryptedCredential = encryptedCredential + xrs.Namespaces = namespaces + } + case "namespacePrefixes": + if v != nil { + var namespacePrefixes interface{} + err = json.Unmarshal(*v, &namespacePrefixes) + if err != nil { + return err + } + xrs.NamespacePrefixes = namespacePrefixes + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if xrs.AdditionalProperties == nil { + xrs.AdditionalProperties = make(map[string]interface{}) + } + xrs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + xrs.Type = typeVar } } } @@ -244896,544 +246178,537 @@ func (xlstp *XeroLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { return nil } -// XeroObjectDataset xero Service dataset. -type XeroObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` +// XMLSource a copy activity Xml source. +type XMLSource struct { + // StoreSettings - Xml store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // FormatSettings - Xml format settings. + FormatSettings *XMLReadSettings `json:"formatSettings,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). + AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeAzureDatabricksDeltaLakeDataset', 'TypeSharePointOnlineListResource', 'TypeSnowflakeTable', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeAzureMariaDBTable', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSapTableResource', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapHanaTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSapBwCube', 'TypeSybaseTable', 'TypeSalesforceServiceCloudObject', 'TypeSalesforceObject', 'TypeMicrosoftAccessTable', 'TypePostgreSQLTable', 'TypeMySQLTable', 'TypeOdbcTable', 'TypeInformixTable', 'TypeRelationalTable', 'TypeDb2Table', 'TypeAmazonRedshiftTable', 'TypeAzureMySQLTable', 'TypeTeradataTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbAtlasCollection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeCommonDataServiceForAppsEntity', 'TypeDynamicsCrmEntity', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCosmosDbSQLAPICollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLMITable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeBinary', 'TypeOrc', 'TypeXML', 'TypeJSON', 'TypeDelimitedText', 'TypeParquet', 'TypeExcel', 'TypeAvro', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for XeroObjectDataset. -func (xod XeroObjectDataset) MarshalJSON() ([]byte, error) { - xod.Type = TypeXeroObject +// MarshalJSON is the custom marshaler for XMLSource. +func (xs XMLSource) MarshalJSON() ([]byte, error) { + xs.Type = TypeXMLSource objectMap := make(map[string]interface{}) - if xod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = xod.GenericDatasetTypeProperties - } - if xod.Description != nil { - objectMap["description"] = xod.Description - } - if xod.Structure != nil { - objectMap["structure"] = xod.Structure - } - if xod.Schema != nil { - objectMap["schema"] = xod.Schema + objectMap["storeSettings"] = xs.StoreSettings + if xs.FormatSettings != nil { + objectMap["formatSettings"] = xs.FormatSettings } - if xod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = xod.LinkedServiceName + if xs.AdditionalColumns != nil { + objectMap["additionalColumns"] = xs.AdditionalColumns } - if xod.Parameters != nil { - objectMap["parameters"] = xod.Parameters + if xs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = xs.SourceRetryCount } - if xod.Annotations != nil { - objectMap["annotations"] = xod.Annotations + if xs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = xs.SourceRetryWait } - if xod.Folder != nil { - objectMap["folder"] = xod.Folder + if xs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = xs.MaxConcurrentConnections } - if xod.Type != "" { - objectMap["type"] = xod.Type + if xs.Type != "" { + objectMap["type"] = xs.Type } - for k, v := range xod.AdditionalProperties { + for k, v := range xs.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsHTTPSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsOffice365Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsMongoDbSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsWebSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return &xod, true +// AsOracleSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsOracleSource() (*OracleSource, bool) { + return nil, false } -// AsSquareObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsHdfsSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsFileSystemSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsRestSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsODataSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsRelationalSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsDynamicsSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsBlobSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsResponsysSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsVerticaSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsNetezzaSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsZohoSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsXeroSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsXeroSource() (*XeroSource, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsSquareSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsSparkSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsShopifySource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsServiceNowSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsPrestoSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsPhoenixSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsPaypalSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsMarketoSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsMariaDBSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsMagentoSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsImpalaSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsHubspotSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsHiveSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsHBaseSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsGreenplumSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsEloquaSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsDrillSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsConcurSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsCassandraSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsTeradataSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsSQLDWSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsSQLMISource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsSQLServerSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsSQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsSapTableSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsSapHanaSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsSapEccSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsSalesforceSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsSapBwSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsSybaseSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsMySQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsOdbcSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsDb2Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsInformixSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsTabularSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBasicTabularSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsBasicTabularSource() (BasicTabularSource, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsBinarySource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsXMLDataset() (*XMLDataset, bool) { +// AsOrcSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsJSONDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false +// AsXMLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsXMLSource() (*XMLSource, bool) { + return &xs, true } -// AsDelimitedTextDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsJSONSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsParquetSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsExcelSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAvroSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDataset() (*Dataset, bool) { +// AsCopySource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &xod, true +// AsBasicCopySource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsBasicCopySource() (BasicCopySource, bool) { + return &xs, true } -// UnmarshalJSON is the custom unmarshaler for XeroObjectDataset struct. -func (xod *XeroObjectDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for XMLSource struct. +func (xs *XMLSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -245441,98 +246716,79 @@ func (xod *XeroObjectDataset) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - xod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: + case "storeSettings": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + storeSettings, err := unmarshalBasicStoreReadSettings(*v) if err != nil { return err } - if xod.AdditionalProperties == nil { - xod.AdditionalProperties = make(map[string]interface{}) - } - xod.AdditionalProperties[k] = additionalProperties + xs.StoreSettings = storeSettings } - case "description": + case "formatSettings": if v != nil { - var description string - err = json.Unmarshal(*v, &description) + var formatSettings XMLReadSettings + err = json.Unmarshal(*v, &formatSettings) if err != nil { return err } - xod.Description = &description + xs.FormatSettings = &formatSettings } - case "structure": + case "additionalColumns": if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) + var additionalColumns []AdditionalColumns + err = json.Unmarshal(*v, &additionalColumns) if err != nil { return err } - xod.Structure = structure + xs.AdditionalColumns = &additionalColumns } - case "schema": + default: if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - xod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err + if xs.AdditionalProperties == nil { + xs.AdditionalProperties = make(map[string]interface{}) } - xod.LinkedServiceName = &linkedServiceName + xs.AdditionalProperties[k] = additionalProperties } - case "parameters": + case "sourceRetryCount": if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) if err != nil { return err } - xod.Parameters = parameters + xs.SourceRetryCount = sourceRetryCount } - case "annotations": + case "sourceRetryWait": if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) if err != nil { return err } - xod.Annotations = &annotations + xs.SourceRetryWait = sourceRetryWait } - case "folder": + case "maxConcurrentConnections": if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) if err != nil { return err } - xod.Folder = &folder + xs.MaxConcurrentConnections = maxConcurrentConnections } case "type": if v != nil { - var typeVar TypeBasicDataset + var typeVar TypeBasicCopySource err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - xod.Type = typeVar + xs.Type = typeVar } } } @@ -245540,539 +246796,564 @@ func (xod *XeroObjectDataset) UnmarshalJSON(body []byte) error { return nil } -// XeroSource a copy activity Xero Service source. -type XeroSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). - AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` +// XeroLinkedService xero Service linked service. +type XeroLinkedService struct { + // XeroLinkedServiceTypeProperties - Xero Service linked service properties. + *XeroLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeSharePointOnlineListSource', 'TypeAzureDatabricksDeltaLakeSource', 'TypeSnowflakeSource', 'TypeHTTPSource', 'TypeAzureBlobFSSource', 'TypeAzureDataLakeStoreSource', 'TypeOffice365Source', 'TypeCosmosDbMongoDbAPISource', 'TypeMongoDbV2Source', 'TypeMongoDbAtlasSource', 'TypeMongoDbSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureDataExplorerSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeRestSource', 'TypeSalesforceServiceCloudSource', 'TypeODataSource', 'TypeMicrosoftAccessSource', 'TypeRelationalSource', 'TypeCommonDataServiceForAppsSource', 'TypeDynamicsCrmSource', 'TypeDynamicsSource', 'TypeCosmosDbSQLAPISource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAmazonRedshiftSource', 'TypeGoogleAdWordsSource', 'TypeOracleServiceCloudSource', 'TypeDynamicsAXSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeAzureMariaDBSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeCassandraSource', 'TypeTeradataSource', 'TypeAzureMySQLSource', 'TypeSQLDWSource', 'TypeSQLMISource', 'TypeAzureSQLSource', 'TypeSQLServerSource', 'TypeSQLSource', 'TypeSapTableSource', 'TypeSapOpenHubSource', 'TypeSapHanaSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeSapBwSource', 'TypeSybaseSource', 'TypePostgreSQLSource', 'TypeMySQLSource', 'TypeOdbcSource', 'TypeDb2Source', 'TypeInformixSource', 'TypeAzureTableSource', 'TypeTabularSource', 'TypeBinarySource', 'TypeOrcSource', 'TypeXMLSource', 'TypeJSONSource', 'TypeDelimitedTextSource', 'TypeParquetSource', 'TypeExcelSource', 'TypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeLinkedService', 'TypeSharePointOnlineList', 'TypeSnowflake', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricksDeltaLake', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDbAtlas', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeOracleCloudStorage', 'TypeAmazonS3Compatible', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for XeroSource. -func (xs XeroSource) MarshalJSON() ([]byte, error) { - xs.Type = TypeXeroSource +// MarshalJSON is the custom marshaler for XeroLinkedService. +func (xls XeroLinkedService) MarshalJSON() ([]byte, error) { + xls.Type = TypeXero objectMap := make(map[string]interface{}) - if xs.Query != nil { - objectMap["query"] = xs.Query - } - if xs.QueryTimeout != nil { - objectMap["queryTimeout"] = xs.QueryTimeout + if xls.XeroLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = xls.XeroLinkedServiceTypeProperties } - if xs.AdditionalColumns != nil { - objectMap["additionalColumns"] = xs.AdditionalColumns + if xls.ConnectVia != nil { + objectMap["connectVia"] = xls.ConnectVia } - if xs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = xs.SourceRetryCount + if xls.Description != nil { + objectMap["description"] = xls.Description } - if xs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = xs.SourceRetryWait + if xls.Parameters != nil { + objectMap["parameters"] = xls.Parameters } - if xs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = xs.MaxConcurrentConnections + if xls.Annotations != nil { + objectMap["annotations"] = xls.Annotations } - if xs.Type != "" { - objectMap["type"] = xs.Type + if xls.Type != "" { + objectMap["type"] = xls.Type } - for k, v := range xs.AdditionalProperties { + for k, v := range xls.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsSnowflakeLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHTTPSource() (*HTTPSource, bool) { +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsSapTableLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOffice365Source() (*Office365Source, bool) { +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsResponsysLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsWebSource() (*WebSource, bool) { +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOracleSource() (*OracleSource, bool) { +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHdfsSource() (*HdfsSource, bool) { +// AsNetezzaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsVerticaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsRestSource() (*RestSource, bool) { +// AsZohoLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsXeroLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return &xls, true +} + +// AsSquareLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsODataSource() (*ODataSource, bool) { +// AsSparkLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsShopifyLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsRelationalSource() (*RelationalSource, bool) { +// AsServiceNowLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsQuickBooksLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsPrestoLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsPhoenixLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsPaypalLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsMarketoLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsBlobSource() (*BlobSource, bool) { +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsMariaDBLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsMagentoLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsJiraLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsImpalaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsHubspotLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsHiveLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsVerticaSource() (*VerticaSource, bool) { +// AsHBaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsGreenplumLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsZohoSource() (*ZohoSource, bool) { +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsXeroSource() (*XeroSource, bool) { - return &xs, true +// AsEloquaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false } -// AsSquareSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSquareSource() (*SquareSource, bool) { +// AsDrillLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSparkSource() (*SparkSource, bool) { +// AsCouchbaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsShopifySource() (*ShopifySource, bool) { +// AsConcurLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPrestoSource() (*PrestoSource, bool) { +// AsSapHanaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsSapBWLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPaypalSource() (*PaypalSource, bool) { +// AsSftpServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMarketoSource() (*MarketoSource, bool) { +// AsFtpServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsHTTPLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsAzureSearchLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMagentoSource() (*MagentoSource, bool) { +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsJiraSource() (*JiraSource, bool) { +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsAmazonS3LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHubspotSource() (*HubspotSource, bool) { +// AsRestServiceLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHiveSource() (*HiveSource, bool) { +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHBaseSource() (*HBaseSource, bool) { +// AsSapEccLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsEloquaSource() (*EloquaSource, bool) { +// AsSalesforceLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDrillSource() (*DrillSource, bool) { +// AsOffice365LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsConcurSource() (*ConcurSource, bool) { +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCassandraSource() (*CassandraSource, bool) { +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsTeradataSource() (*TeradataSource, bool) { +// AsMongoDbLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsCassandraLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsWebLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSQLMISource() (*SQLMISource, bool) { +// AsODataLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsHdfsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSQLSource() (*SQLSource, bool) { +// AsInformixLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapTableSource() (*SapTableSource, bool) { +// AsOdbcLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsAzureMLLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapEccSource() (*SapEccSource, bool) { +// AsTeradataLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsDb2LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSybaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapBwSource() (*SapBwSource, bool) { +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSybaseSource() (*SybaseSource, bool) { +// AsMySQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMySQLSource() (*MySQLSource, bool) { +// AsOracleLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOdbcSource() (*OdbcSource, bool) { +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDb2Source() (*Db2Source, bool) { +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsInformixSource() (*InformixSource, bool) { +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsTabularSource() (*TabularSource, bool) { +// AsFileServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &xs, true +// AsHDInsightLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false } -// AsBinarySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsBinarySource() (*BinarySource, bool) { +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOrcSource() (*OrcSource, bool) { +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsXMLSource() (*XMLSource, bool) { +// AsDynamicsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { return nil, false } -// AsJSONSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsJSONSource() (*JSONSource, bool) { +// AsCosmosDbLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsParquetSource() (*ParquetSource, bool) { +// AsAzureBatchLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsExcelSource() (*ExcelSource, bool) { +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAvroSource() (*AvroSource, bool) { +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCopySource() (*CopySource, bool) { +// AsSQLServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsBasicCopySource() (BasicCopySource, bool) { - return &xs, true +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false } -// UnmarshalJSON is the custom unmarshaler for XeroSource struct. -func (xs *XeroSource) UnmarshalJSON(body []byte) error { +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &xls, true +} + +// UnmarshalJSON is the custom unmarshaler for XeroLinkedService struct. +func (xls *XeroLinkedService) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -246080,80 +247361,177 @@ func (xs *XeroSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "query": + case "typeProperties": if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) + var xeroLinkedServiceTypeProperties XeroLinkedServiceTypeProperties + err = json.Unmarshal(*v, &xeroLinkedServiceTypeProperties) if err != nil { return err } - xs.Query = query + xls.XeroLinkedServiceTypeProperties = &xeroLinkedServiceTypeProperties } - case "queryTimeout": + default: if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - xs.QueryTimeout = queryTimeout + if xls.AdditionalProperties == nil { + xls.AdditionalProperties = make(map[string]interface{}) + } + xls.AdditionalProperties[k] = additionalProperties } - case "additionalColumns": + case "connectVia": if v != nil { - var additionalColumns []AdditionalColumns - err = json.Unmarshal(*v, &additionalColumns) + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) if err != nil { return err } - xs.AdditionalColumns = &additionalColumns + xls.ConnectVia = &connectVia } - default: + case "description": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var description string + err = json.Unmarshal(*v, &description) if err != nil { return err } - if xs.AdditionalProperties == nil { - xs.AdditionalProperties = make(map[string]interface{}) + xls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err } - xs.AdditionalProperties[k] = additionalProperties + xls.Parameters = parameters } - case "sourceRetryCount": + case "annotations": if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) if err != nil { return err } - xs.SourceRetryCount = sourceRetryCount + xls.Annotations = &annotations } - case "sourceRetryWait": + case "type": if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) if err != nil { return err } - xs.SourceRetryWait = sourceRetryWait + xls.Type = typeVar } - case "maxConcurrentConnections": + } + } + + return nil +} + +// XeroLinkedServiceTypeProperties xero Service linked service properties. +type XeroLinkedServiceTypeProperties struct { + // ConnectionProperties - Properties used to connect to Xero. It is mutually exclusive with any other properties in the linked service. Type: object. + ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + // Host - The endpoint of the Xero server. (i.e. api.xero.com) + Host interface{} `json:"host,omitempty"` + // ConsumerKey - The consumer key associated with the Xero application. + ConsumerKey BasicSecretBase `json:"consumerKey,omitempty"` + // PrivateKey - 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( + // ). + PrivateKey BasicSecretBase `json:"privateKey,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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. + UseHostVerification interface{} `json:"useHostVerification,omitempty"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). + EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for XeroLinkedServiceTypeProperties struct. +func (xlstp *XeroLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionProperties": if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) + var connectionProperties interface{} + err = json.Unmarshal(*v, &connectionProperties) if err != nil { return err } - xs.MaxConcurrentConnections = maxConcurrentConnections + xlstp.ConnectionProperties = connectionProperties } - case "type": + case "host": if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) + var host interface{} + err = json.Unmarshal(*v, &host) if err != nil { return err } - xs.Type = typeVar + xlstp.Host = host + } + case "consumerKey": + if v != nil { + consumerKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + xlstp.ConsumerKey = consumerKey + } + case "privateKey": + if v != nil { + privateKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + xlstp.PrivateKey = privateKey + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + xlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + xlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + xlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential interface{} + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + xlstp.EncryptedCredential = encryptedCredential } } } @@ -246161,10 +247539,10 @@ func (xs *XeroSource) UnmarshalJSON(body []byte) error { return nil } -// XMLDataset xml dataset. -type XMLDataset struct { - // XMLDatasetTypeProperties - Xml dataset properties. - *XMLDatasetTypeProperties `json:"typeProperties,omitempty"` +// XeroObjectDataset xero Service dataset. +type XeroObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Description - Dataset description. @@ -246185,520 +247563,520 @@ type XMLDataset struct { Type TypeBasicDataset `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for XMLDataset. -func (xd XMLDataset) MarshalJSON() ([]byte, error) { - xd.Type = TypeXML +// MarshalJSON is the custom marshaler for XeroObjectDataset. +func (xod XeroObjectDataset) MarshalJSON() ([]byte, error) { + xod.Type = TypeXeroObject objectMap := make(map[string]interface{}) - if xd.XMLDatasetTypeProperties != nil { - objectMap["typeProperties"] = xd.XMLDatasetTypeProperties + if xod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = xod.GenericDatasetTypeProperties } - if xd.Description != nil { - objectMap["description"] = xd.Description + if xod.Description != nil { + objectMap["description"] = xod.Description } - if xd.Structure != nil { - objectMap["structure"] = xd.Structure + if xod.Structure != nil { + objectMap["structure"] = xod.Structure } - if xd.Schema != nil { - objectMap["schema"] = xd.Schema + if xod.Schema != nil { + objectMap["schema"] = xod.Schema } - if xd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = xd.LinkedServiceName + if xod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = xod.LinkedServiceName } - if xd.Parameters != nil { - objectMap["parameters"] = xd.Parameters + if xod.Parameters != nil { + objectMap["parameters"] = xod.Parameters } - if xd.Annotations != nil { - objectMap["annotations"] = xd.Annotations + if xod.Annotations != nil { + objectMap["annotations"] = xod.Annotations } - if xd.Folder != nil { - objectMap["folder"] = xd.Folder + if xod.Folder != nil { + objectMap["folder"] = xod.Folder } - if xd.Type != "" { - objectMap["type"] = xd.Type + if xod.Type != "" { + objectMap["type"] = xod.Type } - for k, v := range xd.AdditionalProperties { + for k, v := range xod.AdditionalProperties { objectMap[k] = v } return json.Marshal(objectMap) } -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { return nil, false } -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { return nil, false } -// AsSnowflakeDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { +// AsSnowflakeDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { return nil, false } -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { return nil, false } -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { return nil, false } -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { return nil, false } -// AsDynamicsAXResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { +// AsDynamicsAXResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { return nil, false } -// AsResponsysObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { +// AsResponsysObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { return nil, false } -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { return nil, false } -// AsVerticaTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { +// AsVerticaTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { return nil, false } -// AsNetezzaTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { +// AsNetezzaTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { return nil, false } -// AsZohoObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { +// AsZohoObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { return nil, false } -// AsXeroObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false +// AsXeroObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return &xod, true } -// AsSquareObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { +// AsSquareObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { return nil, false } -// AsSparkObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { +// AsSparkObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { return nil, false } -// AsShopifyObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { +// AsShopifyObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { return nil, false } -// AsServiceNowObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { +// AsServiceNowObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { return nil, false } -// AsQuickBooksObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { +// AsQuickBooksObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { return nil, false } -// AsPrestoObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { +// AsPrestoObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { return nil, false } -// AsPhoenixObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { +// AsPhoenixObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { return nil, false } -// AsPaypalObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { +// AsPaypalObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { return nil, false } -// AsMarketoObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { +// AsMarketoObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { return nil, false } -// AsAzureMariaDBTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { +// AsAzureMariaDBTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { return nil, false } -// AsMariaDBTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { +// AsMariaDBTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { return nil, false } -// AsMagentoObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { +// AsMagentoObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { return nil, false } -// AsJiraObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { +// AsJiraObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { return nil, false } -// AsImpalaObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { +// AsImpalaObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { return nil, false } -// AsHubspotObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { +// AsHubspotObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { return nil, false } -// AsHiveObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { +// AsHiveObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { return nil, false } -// AsHBaseObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { +// AsHBaseObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { return nil, false } -// AsGreenplumTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { +// AsGreenplumTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { return nil, false } -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { return nil, false } -// AsEloquaObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { +// AsEloquaObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { return nil, false } -// AsDrillTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { +// AsDrillTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { return nil, false } -// AsCouchbaseTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { +// AsCouchbaseTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { return nil, false } -// AsConcurObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { +// AsConcurObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { return nil, false } -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { return nil, false } -// AsAmazonMWSObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { +// AsAmazonMWSObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { return nil, false } -// AsHTTPDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsHTTPDataset() (*HTTPDataset, bool) { +// AsHTTPDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { return nil, false } -// AsAzureSearchIndexDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { +// AsAzureSearchIndexDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { return nil, false } -// AsWebTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsWebTableDataset() (*WebTableDataset, bool) { +// AsWebTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { return nil, false } -// AsSapTableResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { +// AsSapTableResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { return nil, false } -// AsRestResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { +// AsRestResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { return nil, false } -// AsSQLServerTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { +// AsSQLServerTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { return nil, false } -// AsSapOpenHubTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { +// AsSapOpenHubTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { return nil, false } -// AsSapHanaTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { +// AsSapHanaTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { return nil, false } -// AsSapEccResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { +// AsSapEccResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { return nil, false } -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { return nil, false } -// AsSapBwCubeDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { +// AsSapBwCubeDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { return nil, false } -// AsSybaseTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { +// AsSybaseTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { return nil, false } -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { return nil, false } -// AsSalesforceObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { +// AsSalesforceObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { return nil, false } -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { return nil, false } -// AsPostgreSQLTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { +// AsPostgreSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { return nil, false } -// AsMySQLTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { +// AsMySQLTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { return nil, false } -// AsOdbcTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { +// AsOdbcTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { return nil, false } -// AsInformixTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { +// AsInformixTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { return nil, false } -// AsRelationalTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { +// AsRelationalTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { return nil, false } -// AsDb2TableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { +// AsDb2TableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { return nil, false } -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { return nil, false } -// AsAzureMySQLTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { +// AsAzureMySQLTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { return nil, false } -// AsTeradataTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { +// AsTeradataTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { return nil, false } -// AsOracleTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { +// AsOracleTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { return nil, false } -// AsODataResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { +// AsODataResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { return nil, false } -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { return nil, false } -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { return nil, false } -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { return nil, false } -// AsMongoDbCollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { +// AsMongoDbCollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { return nil, false } -// AsFileShareDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsFileShareDataset() (*FileShareDataset, bool) { +// AsFileShareDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsOffice365Dataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsOffice365Dataset() (*Office365Dataset, bool) { +// AsOffice365Dataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false } -// AsAzureBlobFSDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { +// AsAzureBlobFSDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { return nil, false } -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { return nil, false } -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { return nil, false } -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { return nil, false } -// AsDynamicsEntityDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { +// AsDynamicsEntityDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { return nil, false } -// AsDocumentDbCollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { +// AsDocumentDbCollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { return nil, false } -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { return nil, false } -// AsCustomDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCustomDataset() (*CustomDataset, bool) { +// AsCustomDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCustomDataset() (*CustomDataset, bool) { return nil, false } -// AsCassandraTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { +// AsCassandraTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { return nil, false } -// AsAzureSQLDWTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { +// AsAzureSQLDWTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { return nil, false } -// AsAzureSQLMITableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { +// AsAzureSQLMITableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { return nil, false } -// AsAzureSQLTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { +// AsAzureSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { return nil, false } -// AsAzureTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { +// AsAzureTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { return nil, false } -// AsAzureBlobDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { +// AsAzureBlobDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { return nil, false } -// AsBinaryDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsBinaryDataset() (*BinaryDataset, bool) { +// AsBinaryDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { return nil, false } -// AsOrcDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsOrcDataset() (*OrcDataset, bool) { +// AsOrcDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsOrcDataset() (*OrcDataset, bool) { return nil, false } -// AsXMLDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsXMLDataset() (*XMLDataset, bool) { - return &xd, true +// AsXMLDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false } -// AsJSONDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsJSONDataset() (*JSONDataset, bool) { +// AsJSONDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsJSONDataset() (*JSONDataset, bool) { return nil, false } -// AsDelimitedTextDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { +// AsDelimitedTextDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { return nil, false } -// AsParquetDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsParquetDataset() (*ParquetDataset, bool) { +// AsParquetDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { return nil, false } -// AsExcelDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsExcelDataset() (*ExcelDataset, bool) { +// AsExcelDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { return nil, false } -// AsAvroDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAvroDataset() (*AvroDataset, bool) { +// AsAvroDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAvroDataset() (*AvroDataset, bool) { return nil, false } -// AsAmazonS3Dataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { +// AsAmazonS3Dataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { return nil, false } -// AsDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDataset() (*Dataset, bool) { +// AsDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDataset() (*Dataset, bool) { return nil, false } -// AsBasicDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsBasicDataset() (BasicDataset, bool) { - return &xd, true +// AsBasicDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &xod, true } -// UnmarshalJSON is the custom unmarshaler for XMLDataset struct. -func (xd *XMLDataset) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for XeroObjectDataset struct. +func (xod *XeroObjectDataset) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -246708,12 +248086,12 @@ func (xd *XMLDataset) UnmarshalJSON(body []byte) error { switch k { case "typeProperties": if v != nil { - var XMLDatasetTypeProperties XMLDatasetTypeProperties - err = json.Unmarshal(*v, &XMLDatasetTypeProperties) + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) if err != nil { return err } - xd.XMLDatasetTypeProperties = &XMLDatasetTypeProperties + xod.GenericDatasetTypeProperties = &genericDatasetTypeProperties } default: if v != nil { @@ -246722,10 +248100,10 @@ func (xd *XMLDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - if xd.AdditionalProperties == nil { - xd.AdditionalProperties = make(map[string]interface{}) + if xod.AdditionalProperties == nil { + xod.AdditionalProperties = make(map[string]interface{}) } - xd.AdditionalProperties[k] = additionalProperties + xod.AdditionalProperties[k] = additionalProperties } case "description": if v != nil { @@ -246734,7 +248112,7 @@ func (xd *XMLDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - xd.Description = &description + xod.Description = &description } case "structure": if v != nil { @@ -246743,7 +248121,7 @@ func (xd *XMLDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - xd.Structure = structure + xod.Structure = structure } case "schema": if v != nil { @@ -246752,7 +248130,7 @@ func (xd *XMLDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - xd.Schema = schema + xod.Schema = schema } case "linkedServiceName": if v != nil { @@ -246761,7 +248139,7 @@ func (xd *XMLDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - xd.LinkedServiceName = &linkedServiceName + xod.LinkedServiceName = &linkedServiceName } case "parameters": if v != nil { @@ -246770,7 +248148,7 @@ func (xd *XMLDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - xd.Parameters = parameters + xod.Parameters = parameters } case "annotations": if v != nil { @@ -246779,7 +248157,7 @@ func (xd *XMLDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - xd.Annotations = &annotations + xod.Annotations = &annotations } case "folder": if v != nil { @@ -246788,7 +248166,7 @@ func (xd *XMLDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - xd.Folder = &folder + xod.Folder = &folder } case "type": if v != nil { @@ -246797,222 +248175,7 @@ func (xd *XMLDataset) UnmarshalJSON(body []byte) error { if err != nil { return err } - xd.Type = typeVar - } - } - } - - return nil -} - -// XMLDatasetTypeProperties xml dataset properties. -type XMLDatasetTypeProperties struct { - // Location - The location of the json data storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // EncodingName - 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). - EncodingName interface{} `json:"encodingName,omitempty"` - // NullValue - The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` - // Compression - The data compression method used for the json dataset. - Compression BasicDatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for XMLDatasetTypeProperties struct. -func (xdtp *XMLDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "location": - if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) - if err != nil { - return err - } - xdtp.Location = location - } - case "encodingName": - if v != nil { - var encodingName interface{} - err = json.Unmarshal(*v, &encodingName) - if err != nil { - return err - } - xdtp.EncodingName = encodingName - } - case "nullValue": - if v != nil { - var nullValue interface{} - err = json.Unmarshal(*v, &nullValue) - if err != nil { - return err - } - xdtp.NullValue = nullValue - } - case "compression": - if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) - if err != nil { - return err - } - xdtp.Compression = compression - } - } - } - - return nil -} - -// XMLReadSettings xml read settings. -type XMLReadSettings struct { - // CompressionProperties - Compression settings. - CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` - // ValidationMode - Indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string). - ValidationMode interface{} `json:"validationMode,omitempty"` - // DetectDataType - Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). - DetectDataType interface{} `json:"detectDataType,omitempty"` - // Namespaces - Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). - Namespaces interface{} `json:"namespaces,omitempty"` - // NamespacePrefixes - Namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object). - NamespacePrefixes interface{} `json:"namespacePrefixes,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeFormatReadSettings', 'TypeBinaryReadSettings', 'TypeXMLReadSettings', 'TypeJSONReadSettings', 'TypeDelimitedTextReadSettings' - Type TypeBasicFormatReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for XMLReadSettings. -func (xrs XMLReadSettings) MarshalJSON() ([]byte, error) { - xrs.Type = TypeXMLReadSettings - objectMap := make(map[string]interface{}) - objectMap["compressionProperties"] = xrs.CompressionProperties - if xrs.ValidationMode != nil { - objectMap["validationMode"] = xrs.ValidationMode - } - if xrs.DetectDataType != nil { - objectMap["detectDataType"] = xrs.DetectDataType - } - if xrs.Namespaces != nil { - objectMap["namespaces"] = xrs.Namespaces - } - if xrs.NamespacePrefixes != nil { - objectMap["namespacePrefixes"] = xrs.NamespacePrefixes - } - if xrs.Type != "" { - objectMap["type"] = xrs.Type - } - for k, v := range xrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsBinaryReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { - return nil, false -} - -// AsXMLReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { - return &xrs, true -} - -// AsJSONReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { - return nil, false -} - -// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { - return nil, false -} - -// AsFormatReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { - return nil, false -} - -// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { - return &xrs, true -} - -// UnmarshalJSON is the custom unmarshaler for XMLReadSettings struct. -func (xrs *XMLReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "compressionProperties": - if v != nil { - compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) - if err != nil { - return err - } - xrs.CompressionProperties = compressionProperties - } - case "validationMode": - if v != nil { - var validationMode interface{} - err = json.Unmarshal(*v, &validationMode) - if err != nil { - return err - } - xrs.ValidationMode = validationMode - } - case "detectDataType": - if v != nil { - var detectDataType interface{} - err = json.Unmarshal(*v, &detectDataType) - if err != nil { - return err - } - xrs.DetectDataType = detectDataType - } - case "namespaces": - if v != nil { - var namespaces interface{} - err = json.Unmarshal(*v, &namespaces) - if err != nil { - return err - } - xrs.Namespaces = namespaces - } - case "namespacePrefixes": - if v != nil { - var namespacePrefixes interface{} - err = json.Unmarshal(*v, &namespacePrefixes) - if err != nil { - return err - } - xrs.NamespacePrefixes = namespacePrefixes - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if xrs.AdditionalProperties == nil { - xrs.AdditionalProperties = make(map[string]interface{}) - } - xrs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - xrs.Type = typeVar + xod.Type = typeVar } } } @@ -247020,12 +248183,12 @@ func (xrs *XMLReadSettings) UnmarshalJSON(body []byte) error { return nil } -// XMLSource a copy activity Xml source. -type XMLSource struct { - // StoreSettings - Xml store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // FormatSettings - Xml format settings. - FormatSettings *XMLReadSettings `json:"formatSettings,omitempty"` +// XeroSource a copy activity Xero Service source. +type XeroSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + QueryTimeout interface{} `json:"queryTimeout,omitempty"` // AdditionalColumns - Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects). AdditionalColumns *[]AdditionalColumns `json:"additionalColumns,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -247040,13 +248203,15 @@ type XMLSource struct { Type TypeBasicCopySource `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for XMLSource. -func (xs XMLSource) MarshalJSON() ([]byte, error) { - xs.Type = TypeXMLSource +// MarshalJSON is the custom marshaler for XeroSource. +func (xs XeroSource) MarshalJSON() ([]byte, error) { + xs.Type = TypeXeroSource objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = xs.StoreSettings - if xs.FormatSettings != nil { - objectMap["formatSettings"] = xs.FormatSettings + if xs.Query != nil { + objectMap["query"] = xs.Query + } + if xs.QueryTimeout != nil { + objectMap["queryTimeout"] = xs.QueryTimeout } if xs.AdditionalColumns != nil { objectMap["additionalColumns"] = xs.AdditionalColumns @@ -247069,488 +248234,488 @@ func (xs XMLSource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AsSharePointOnlineListSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { +// AsSharePointOnlineListSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { return nil, false } -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { return nil, false } -// AsSnowflakeSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { +// AsSnowflakeSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSnowflakeSource() (*SnowflakeSource, bool) { return nil, false } -// AsHTTPSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsHTTPSource() (*HTTPSource, bool) { +// AsHTTPSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsHTTPSource() (*HTTPSource, bool) { return nil, false } -// AsAzureBlobFSSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { +// AsAzureBlobFSSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { return nil, false } -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { return nil, false } -// AsOffice365Source is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsOffice365Source() (*Office365Source, bool) { +// AsOffice365Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsOffice365Source() (*Office365Source, bool) { return nil, false } -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { return nil, false } -// AsMongoDbV2Source is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { +// AsMongoDbV2Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { return nil, false } -// AsMongoDbAtlasSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { +// AsMongoDbAtlasSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { return nil, false } -// AsMongoDbSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMongoDbSource() (*MongoDbSource, bool) { +// AsMongoDbSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMongoDbSource() (*MongoDbSource, bool) { return nil, false } -// AsWebSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsWebSource() (*WebSource, bool) { +// AsWebSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsWebSource() (*WebSource, bool) { return nil, false } -// AsOracleSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsOracleSource() (*OracleSource, bool) { +// AsOracleSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsOracleSource() (*OracleSource, bool) { return nil, false } -// AsAzureDataExplorerSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { +// AsAzureDataExplorerSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { return nil, false } -// AsHdfsSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsHdfsSource() (*HdfsSource, bool) { +// AsHdfsSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsHdfsSource() (*HdfsSource, bool) { return nil, false } -// AsFileSystemSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsFileSystemSource() (*FileSystemSource, bool) { +// AsFileSystemSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsFileSystemSource() (*FileSystemSource, bool) { return nil, false } -// AsRestSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsRestSource() (*RestSource, bool) { +// AsRestSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsRestSource() (*RestSource, bool) { return nil, false } -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { return nil, false } -// AsODataSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsODataSource() (*ODataSource, bool) { +// AsODataSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsODataSource() (*ODataSource, bool) { return nil, false } -// AsMicrosoftAccessSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { +// AsMicrosoftAccessSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { return nil, false } -// AsRelationalSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsRelationalSource() (*RelationalSource, bool) { +// AsRelationalSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsRelationalSource() (*RelationalSource, bool) { return nil, false } -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { return nil, false } -// AsDynamicsCrmSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { +// AsDynamicsCrmSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { return nil, false } -// AsDynamicsSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDynamicsSource() (*DynamicsSource, bool) { +// AsDynamicsSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDynamicsSource() (*DynamicsSource, bool) { return nil, false } -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { return nil, false } -// AsDocumentDbCollectionSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { +// AsDocumentDbCollectionSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { return nil, false } -// AsBlobSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsBlobSource() (*BlobSource, bool) { +// AsBlobSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsBlobSource() (*BlobSource, bool) { return nil, false } -// AsAmazonRedshiftSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { +// AsAmazonRedshiftSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { return nil, false } -// AsGoogleAdWordsSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { +// AsGoogleAdWordsSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { return nil, false } -// AsOracleServiceCloudSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { +// AsOracleServiceCloudSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { return nil, false } -// AsDynamicsAXSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { +// AsDynamicsAXSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { return nil, false } -// AsResponsysSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsResponsysSource() (*ResponsysSource, bool) { +// AsResponsysSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsResponsysSource() (*ResponsysSource, bool) { return nil, false } -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { return nil, false } -// AsVerticaSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsVerticaSource() (*VerticaSource, bool) { +// AsVerticaSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsVerticaSource() (*VerticaSource, bool) { return nil, false } -// AsNetezzaSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsNetezzaSource() (*NetezzaSource, bool) { +// AsNetezzaSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsNetezzaSource() (*NetezzaSource, bool) { return nil, false } -// AsZohoSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsZohoSource() (*ZohoSource, bool) { +// AsZohoSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsZohoSource() (*ZohoSource, bool) { return nil, false } -// AsXeroSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false +// AsXeroSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsXeroSource() (*XeroSource, bool) { + return &xs, true } -// AsSquareSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSquareSource() (*SquareSource, bool) { +// AsSquareSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSquareSource() (*SquareSource, bool) { return nil, false } -// AsSparkSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSparkSource() (*SparkSource, bool) { +// AsSparkSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSparkSource() (*SparkSource, bool) { return nil, false } -// AsShopifySource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsShopifySource() (*ShopifySource, bool) { +// AsShopifySource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsShopifySource() (*ShopifySource, bool) { return nil, false } -// AsServiceNowSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsServiceNowSource() (*ServiceNowSource, bool) { +// AsServiceNowSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsServiceNowSource() (*ServiceNowSource, bool) { return nil, false } -// AsQuickBooksSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { +// AsQuickBooksSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsQuickBooksSource() (*QuickBooksSource, bool) { return nil, false } -// AsPrestoSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsPrestoSource() (*PrestoSource, bool) { +// AsPrestoSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsPrestoSource() (*PrestoSource, bool) { return nil, false } -// AsPhoenixSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsPhoenixSource() (*PhoenixSource, bool) { +// AsPhoenixSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsPhoenixSource() (*PhoenixSource, bool) { return nil, false } -// AsPaypalSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsPaypalSource() (*PaypalSource, bool) { +// AsPaypalSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsPaypalSource() (*PaypalSource, bool) { return nil, false } -// AsMarketoSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMarketoSource() (*MarketoSource, bool) { +// AsMarketoSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMarketoSource() (*MarketoSource, bool) { return nil, false } -// AsAzureMariaDBSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { +// AsAzureMariaDBSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { return nil, false } -// AsMariaDBSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMariaDBSource() (*MariaDBSource, bool) { +// AsMariaDBSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMariaDBSource() (*MariaDBSource, bool) { return nil, false } -// AsMagentoSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMagentoSource() (*MagentoSource, bool) { +// AsMagentoSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMagentoSource() (*MagentoSource, bool) { return nil, false } -// AsJiraSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsJiraSource() (*JiraSource, bool) { +// AsJiraSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsJiraSource() (*JiraSource, bool) { return nil, false } -// AsImpalaSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsImpalaSource() (*ImpalaSource, bool) { +// AsImpalaSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsImpalaSource() (*ImpalaSource, bool) { return nil, false } -// AsHubspotSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsHubspotSource() (*HubspotSource, bool) { +// AsHubspotSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsHubspotSource() (*HubspotSource, bool) { return nil, false } -// AsHiveSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsHiveSource() (*HiveSource, bool) { +// AsHiveSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsHiveSource() (*HiveSource, bool) { return nil, false } -// AsHBaseSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsHBaseSource() (*HBaseSource, bool) { +// AsHBaseSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsHBaseSource() (*HBaseSource, bool) { return nil, false } -// AsGreenplumSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsGreenplumSource() (*GreenplumSource, bool) { +// AsGreenplumSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsGreenplumSource() (*GreenplumSource, bool) { return nil, false } -// AsGoogleBigQuerySource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { +// AsGoogleBigQuerySource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { return nil, false } -// AsEloquaSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsEloquaSource() (*EloquaSource, bool) { +// AsEloquaSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsEloquaSource() (*EloquaSource, bool) { return nil, false } -// AsDrillSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDrillSource() (*DrillSource, bool) { +// AsDrillSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDrillSource() (*DrillSource, bool) { return nil, false } -// AsCouchbaseSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { +// AsCouchbaseSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCouchbaseSource() (*CouchbaseSource, bool) { return nil, false } -// AsConcurSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsConcurSource() (*ConcurSource, bool) { +// AsConcurSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsConcurSource() (*ConcurSource, bool) { return nil, false } -// AsAzurePostgreSQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { +// AsAzurePostgreSQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { return nil, false } -// AsAmazonMWSSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { +// AsAmazonMWSSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { return nil, false } -// AsCassandraSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCassandraSource() (*CassandraSource, bool) { +// AsCassandraSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCassandraSource() (*CassandraSource, bool) { return nil, false } -// AsTeradataSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsTeradataSource() (*TeradataSource, bool) { +// AsTeradataSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsTeradataSource() (*TeradataSource, bool) { return nil, false } -// AsAzureMySQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { +// AsAzureMySQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { return nil, false } -// AsSQLDWSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSQLDWSource() (*SQLDWSource, bool) { +// AsSQLDWSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSQLDWSource() (*SQLDWSource, bool) { return nil, false } -// AsSQLMISource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSQLMISource() (*SQLMISource, bool) { +// AsSQLMISource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSQLMISource() (*SQLMISource, bool) { return nil, false } -// AsAzureSQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { +// AsAzureSQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureSQLSource() (*AzureSQLSource, bool) { return nil, false } -// AsSQLServerSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSQLServerSource() (*SQLServerSource, bool) { +// AsSQLServerSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSQLServerSource() (*SQLServerSource, bool) { return nil, false } -// AsSQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSQLSource() (*SQLSource, bool) { +// AsSQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSQLSource() (*SQLSource, bool) { return nil, false } -// AsSapTableSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapTableSource() (*SapTableSource, bool) { +// AsSapTableSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapTableSource() (*SapTableSource, bool) { return nil, false } -// AsSapOpenHubSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { +// AsSapOpenHubSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { return nil, false } -// AsSapHanaSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapHanaSource() (*SapHanaSource, bool) { +// AsSapHanaSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapHanaSource() (*SapHanaSource, bool) { return nil, false } -// AsSapEccSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapEccSource() (*SapEccSource, bool) { +// AsSapEccSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapEccSource() (*SapEccSource, bool) { return nil, false } -// AsSapCloudForCustomerSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { +// AsSapCloudForCustomerSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { return nil, false } -// AsSalesforceSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSalesforceSource() (*SalesforceSource, bool) { +// AsSalesforceSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSalesforceSource() (*SalesforceSource, bool) { return nil, false } -// AsSapBwSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapBwSource() (*SapBwSource, bool) { +// AsSapBwSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapBwSource() (*SapBwSource, bool) { return nil, false } -// AsSybaseSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSybaseSource() (*SybaseSource, bool) { +// AsSybaseSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSybaseSource() (*SybaseSource, bool) { return nil, false } -// AsPostgreSQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { +// AsPostgreSQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { return nil, false } -// AsMySQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMySQLSource() (*MySQLSource, bool) { +// AsMySQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMySQLSource() (*MySQLSource, bool) { return nil, false } -// AsOdbcSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsOdbcSource() (*OdbcSource, bool) { +// AsOdbcSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsOdbcSource() (*OdbcSource, bool) { return nil, false } -// AsDb2Source is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDb2Source() (*Db2Source, bool) { +// AsDb2Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDb2Source() (*Db2Source, bool) { return nil, false } -// AsInformixSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsInformixSource() (*InformixSource, bool) { +// AsInformixSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsInformixSource() (*InformixSource, bool) { return nil, false } -// AsAzureTableSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureTableSource() (*AzureTableSource, bool) { +// AsAzureTableSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureTableSource() (*AzureTableSource, bool) { return nil, false } -// AsTabularSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsTabularSource() (*TabularSource, bool) { +// AsTabularSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsTabularSource() (*TabularSource, bool) { return nil, false } -// AsBasicTabularSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false +// AsBasicTabularSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &xs, true } -// AsBinarySource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsBinarySource() (*BinarySource, bool) { +// AsBinarySource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsBinarySource() (*BinarySource, bool) { return nil, false } -// AsOrcSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsOrcSource() (*OrcSource, bool) { +// AsOrcSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsOrcSource() (*OrcSource, bool) { return nil, false } -// AsXMLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsXMLSource() (*XMLSource, bool) { - return &xs, true +// AsXMLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsXMLSource() (*XMLSource, bool) { + return nil, false } -// AsJSONSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsJSONSource() (*JSONSource, bool) { +// AsJSONSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsJSONSource() (*JSONSource, bool) { return nil, false } -// AsDelimitedTextSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { +// AsDelimitedTextSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { return nil, false } -// AsParquetSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsParquetSource() (*ParquetSource, bool) { +// AsParquetSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsParquetSource() (*ParquetSource, bool) { return nil, false } -// AsExcelSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsExcelSource() (*ExcelSource, bool) { +// AsExcelSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsExcelSource() (*ExcelSource, bool) { return nil, false } -// AsAvroSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAvroSource() (*AvroSource, bool) { +// AsAvroSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAvroSource() (*AvroSource, bool) { return nil, false } -// AsCopySource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCopySource() (*CopySource, bool) { +// AsCopySource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCopySource() (*CopySource, bool) { return nil, false } -// AsBasicCopySource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsBasicCopySource() (BasicCopySource, bool) { +// AsBasicCopySource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsBasicCopySource() (BasicCopySource, bool) { return &xs, true } -// UnmarshalJSON is the custom unmarshaler for XMLSource struct. -func (xs *XMLSource) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for XeroSource struct. +func (xs *XeroSource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -247558,22 +248723,23 @@ func (xs *XMLSource) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "storeSettings": + case "query": if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) + var query interface{} + err = json.Unmarshal(*v, &query) if err != nil { return err } - xs.StoreSettings = storeSettings + xs.Query = query } - case "formatSettings": + case "queryTimeout": if v != nil { - var formatSettings XMLReadSettings - err = json.Unmarshal(*v, &formatSettings) + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) if err != nil { return err } - xs.FormatSettings = &formatSettings + xs.QueryTimeout = queryTimeout } case "additionalColumns": if v != nil { From 3d36a009e7a610262bc55bdedf028c44d0392ac7 Mon Sep 17 00:00:00 2001 From: yupwei68 Date: Wed, 14 Apr 2021 06:47:17 +0000 Subject: [PATCH 2/4] Generated from specification/signalr/resource-manager/readme.md tag package-2021-04-01-preview (commit hash: ea5bc27ee9cadeb67767d774c82095be2420bcad) --- .../preview/signalr/mgmt/signalr/models.go | 65 +- .../signalr/mgmt/signalr/signalrapi/models.go | 3 +- .../2021-04-01-preview/signalr/CHANGELOG.md | 5 + .../mgmt/2021-04-01-preview/signalr/client.go | 41 + .../mgmt/2021-04-01-preview/signalr/enums.go | 229 ++ .../mgmt/2021-04-01-preview/signalr/models.go | 2264 +++++++++++++++++ .../2021-04-01-preview/signalr/operations.go | 140 + .../signalr/privateendpointconnections.go | 393 +++ .../signalr/privatelinkresources.go | 151 ++ .../signalr/sharedprivatelinkresources.go | 405 +++ .../2021-04-01-preview/signalr/signalr.go | 912 +++++++ .../signalr/signalrapi/interfaces.go | 76 + .../mgmt/2021-04-01-preview/signalr/usages.go | 147 ++ .../2021-04-01-preview/signalr/version.go | 19 + 14 files changed, 4846 insertions(+), 4 deletions(-) create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/CHANGELOG.md create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/client.go create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/enums.go create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/models.go create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/operations.go create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/privateendpointconnections.go create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/privatelinkresources.go create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/sharedprivatelinkresources.go create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/signalr.go create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/signalrapi/interfaces.go create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/usages.go create mode 100644 services/preview/signalr/mgmt/2021-04-01-preview/signalr/version.go diff --git a/profiles/preview/preview/signalr/mgmt/signalr/models.go b/profiles/preview/preview/signalr/mgmt/signalr/models.go index 18a97fbc91ab..ea014cf3d7f3 100644 --- a/profiles/preview/preview/signalr/mgmt/signalr/models.go +++ b/profiles/preview/preview/signalr/mgmt/signalr/models.go @@ -11,7 +11,7 @@ package signalr import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2020-07-01-preview/signalr" + original "github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2021-04-01-preview/signalr" ) const ( @@ -25,10 +25,20 @@ const ( Deny ACLAction = original.Deny ) +type CreatedByType = original.CreatedByType + +const ( + CreatedByTypeApplication CreatedByType = original.CreatedByTypeApplication + CreatedByTypeKey CreatedByType = original.CreatedByTypeKey + CreatedByTypeManagedIdentity CreatedByType = original.CreatedByTypeManagedIdentity + CreatedByTypeUser CreatedByType = original.CreatedByTypeUser +) + type FeatureFlags = original.FeatureFlags const ( EnableConnectivityLogs FeatureFlags = original.EnableConnectivityLogs + EnableLiveTrace FeatureFlags = original.EnableLiveTrace EnableMessagingLogs FeatureFlags = original.EnableMessagingLogs ServiceMode FeatureFlags = original.ServiceMode ) @@ -77,6 +87,7 @@ const ( ClientConnection RequestType = original.ClientConnection RESTAPI RequestType = original.RESTAPI ServerConnection RequestType = original.ServerConnection + Trace RequestType = original.Trace ) type ServiceKind = original.ServiceKind @@ -86,6 +97,16 @@ const ( SignalR ServiceKind = original.SignalR ) +type SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatus + +const ( + SharedPrivateLinkResourceStatusApproved SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusApproved + SharedPrivateLinkResourceStatusDisconnected SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusDisconnected + SharedPrivateLinkResourceStatusPending SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusPending + SharedPrivateLinkResourceStatusRejected SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusRejected + SharedPrivateLinkResourceStatusTimeout SharedPrivateLinkResourceStatus = original.SharedPrivateLinkResourceStatusTimeout +) + type SkuTier = original.SkuTier const ( @@ -106,11 +127,11 @@ type BaseClient = original.BaseClient type Client = original.Client type CorsSettings = original.CorsSettings type CreateOrUpdateFuture = original.CreateOrUpdateFuture -type CreateOrUpdateProperties = original.CreateOrUpdateProperties type DeleteFuture = original.DeleteFuture type Dimension = original.Dimension +type ErrorAdditionalInfo = original.ErrorAdditionalInfo +type ErrorDetail = original.ErrorDetail type ErrorResponse = original.ErrorResponse -type ErrorResponseBody = original.ErrorResponseBody type Feature = original.Feature type Keys = original.Keys type LogSpecification = original.LogSpecification @@ -131,6 +152,9 @@ type OperationsClient = original.OperationsClient type PrivateEndpoint = original.PrivateEndpoint type PrivateEndpointACL = original.PrivateEndpointACL type PrivateEndpointConnection = original.PrivateEndpointConnection +type PrivateEndpointConnectionList = original.PrivateEndpointConnectionList +type PrivateEndpointConnectionListIterator = original.PrivateEndpointConnectionListIterator +type PrivateEndpointConnectionListPage = original.PrivateEndpointConnectionListPage type PrivateEndpointConnectionProperties = original.PrivateEndpointConnectionProperties type PrivateEndpointConnectionsClient = original.PrivateEndpointConnectionsClient type PrivateEndpointConnectionsDeleteFuture = original.PrivateEndpointConnectionsDeleteFuture @@ -154,6 +178,17 @@ type ResourceType = original.ResourceType type RestartFuture = original.RestartFuture type ServerlessUpstreamSettings = original.ServerlessUpstreamSettings type ServiceSpecification = original.ServiceSpecification +type ShareablePrivateLinkResourceProperties = original.ShareablePrivateLinkResourceProperties +type ShareablePrivateLinkResourceType = original.ShareablePrivateLinkResourceType +type SharedPrivateLinkResource = original.SharedPrivateLinkResource +type SharedPrivateLinkResourceList = original.SharedPrivateLinkResourceList +type SharedPrivateLinkResourceListIterator = original.SharedPrivateLinkResourceListIterator +type SharedPrivateLinkResourceListPage = original.SharedPrivateLinkResourceListPage +type SharedPrivateLinkResourceProperties = original.SharedPrivateLinkResourceProperties +type SharedPrivateLinkResourcesClient = original.SharedPrivateLinkResourcesClient +type SharedPrivateLinkResourcesCreateOrUpdateFuture = original.SharedPrivateLinkResourcesCreateOrUpdateFuture +type SharedPrivateLinkResourcesDeleteFuture = original.SharedPrivateLinkResourcesDeleteFuture +type SystemData = original.SystemData type TLSSettings = original.TLSSettings type TrackedResource = original.TrackedResource type UpdateFuture = original.UpdateFuture @@ -188,6 +223,12 @@ func NewOperationsClient(subscriptionID string) OperationsClient { func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) } +func NewPrivateEndpointConnectionListIterator(page PrivateEndpointConnectionListPage) PrivateEndpointConnectionListIterator { + return original.NewPrivateEndpointConnectionListIterator(page) +} +func NewPrivateEndpointConnectionListPage(cur PrivateEndpointConnectionList, getNextPage func(context.Context, PrivateEndpointConnectionList) (PrivateEndpointConnectionList, error)) PrivateEndpointConnectionListPage { + return original.NewPrivateEndpointConnectionListPage(cur, getNextPage) +} func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient { return original.NewPrivateEndpointConnectionsClient(subscriptionID) } @@ -212,6 +253,18 @@ func NewResourceListIterator(page ResourceListPage) ResourceListIterator { func NewResourceListPage(cur ResourceList, getNextPage func(context.Context, ResourceList) (ResourceList, error)) ResourceListPage { return original.NewResourceListPage(cur, getNextPage) } +func NewSharedPrivateLinkResourceListIterator(page SharedPrivateLinkResourceListPage) SharedPrivateLinkResourceListIterator { + return original.NewSharedPrivateLinkResourceListIterator(page) +} +func NewSharedPrivateLinkResourceListPage(cur SharedPrivateLinkResourceList, getNextPage func(context.Context, SharedPrivateLinkResourceList) (SharedPrivateLinkResourceList, error)) SharedPrivateLinkResourceListPage { + return original.NewSharedPrivateLinkResourceListPage(cur, getNextPage) +} +func NewSharedPrivateLinkResourcesClient(subscriptionID string) SharedPrivateLinkResourcesClient { + return original.NewSharedPrivateLinkResourcesClient(subscriptionID) +} +func NewSharedPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) SharedPrivateLinkResourcesClient { + return original.NewSharedPrivateLinkResourcesClientWithBaseURI(baseURI, subscriptionID) +} func NewUsageListIterator(page UsageListPage) UsageListIterator { return original.NewUsageListIterator(page) } @@ -230,6 +283,9 @@ func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { func PossibleACLActionValues() []ACLAction { return original.PossibleACLActionValues() } +func PossibleCreatedByTypeValues() []CreatedByType { + return original.PossibleCreatedByTypeValues() +} func PossibleFeatureFlagsValues() []FeatureFlags { return original.PossibleFeatureFlagsValues() } @@ -251,6 +307,9 @@ func PossibleRequestTypeValues() []RequestType { func PossibleServiceKindValues() []ServiceKind { return original.PossibleServiceKindValues() } +func PossibleSharedPrivateLinkResourceStatusValues() []SharedPrivateLinkResourceStatus { + return original.PossibleSharedPrivateLinkResourceStatusValues() +} func PossibleSkuTierValues() []SkuTier { return original.PossibleSkuTierValues() } diff --git a/profiles/preview/preview/signalr/mgmt/signalr/signalrapi/models.go b/profiles/preview/preview/signalr/mgmt/signalr/signalrapi/models.go index 24c12ef1bb4d..2fafc5e22184 100644 --- a/profiles/preview/preview/signalr/mgmt/signalr/signalrapi/models.go +++ b/profiles/preview/preview/signalr/mgmt/signalr/signalrapi/models.go @@ -8,10 +8,11 @@ package signalrapi -import original "github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2020-07-01-preview/signalr/signalrapi" +import original "github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2021-04-01-preview/signalr/signalrapi" type ClientAPI = original.ClientAPI type OperationsClientAPI = original.OperationsClientAPI type PrivateEndpointConnectionsClientAPI = original.PrivateEndpointConnectionsClientAPI type PrivateLinkResourcesClientAPI = original.PrivateLinkResourcesClientAPI +type SharedPrivateLinkResourcesClientAPI = original.SharedPrivateLinkResourcesClientAPI type UsagesClientAPI = original.UsagesClientAPI diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/CHANGELOG.md b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/CHANGELOG.md new file mode 100644 index 000000000000..7ed8f13525ea --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/CHANGELOG.md @@ -0,0 +1,5 @@ +Generated from https://github.com/Azure/azure-rest-api-specs/tree/ea5bc27ee9cadeb67767d774c82095be2420bcad/specification/signalr/resource-manager/readme.md tag: `package-2021-04-01-preview` + +Code generator @microsoft.azure/autorest.go@2.1.178 + + diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/client.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/client.go new file mode 100644 index 000000000000..a1f0b846cec7 --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/client.go @@ -0,0 +1,41 @@ +// Package signalr implements the Azure ARM Signalr service API version 2021-04-01-preview. +// +// REST API for Azure SignalR Service +package signalr + +// 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. + +import ( + "github.com/Azure/go-autorest/autorest" +) + +const ( + // DefaultBaseURI is the default URI used for the service Signalr + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Signalr. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/enums.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/enums.go new file mode 100644 index 000000000000..d8f5d2c14883 --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/enums.go @@ -0,0 +1,229 @@ +package signalr + +// 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. + +// ACLAction enumerates the values for acl action. +type ACLAction string + +const ( + // Allow ... + Allow ACLAction = "Allow" + // Deny ... + Deny ACLAction = "Deny" +) + +// PossibleACLActionValues returns an array of possible values for the ACLAction const type. +func PossibleACLActionValues() []ACLAction { + return []ACLAction{Allow, Deny} +} + +// CreatedByType enumerates the values for created by type. +type CreatedByType string + +const ( + // CreatedByTypeApplication ... + CreatedByTypeApplication CreatedByType = "Application" + // CreatedByTypeKey ... + CreatedByTypeKey CreatedByType = "Key" + // CreatedByTypeManagedIdentity ... + CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" + // CreatedByTypeUser ... + CreatedByTypeUser CreatedByType = "User" +) + +// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser} +} + +// FeatureFlags enumerates the values for feature flags. +type FeatureFlags string + +const ( + // EnableConnectivityLogs ... + EnableConnectivityLogs FeatureFlags = "EnableConnectivityLogs" + // EnableLiveTrace ... + EnableLiveTrace FeatureFlags = "EnableLiveTrace" + // EnableMessagingLogs ... + EnableMessagingLogs FeatureFlags = "EnableMessagingLogs" + // ServiceMode ... + ServiceMode FeatureFlags = "ServiceMode" +) + +// PossibleFeatureFlagsValues returns an array of possible values for the FeatureFlags const type. +func PossibleFeatureFlagsValues() []FeatureFlags { + return []FeatureFlags{EnableConnectivityLogs, EnableLiveTrace, EnableMessagingLogs, ServiceMode} +} + +// KeyType enumerates the values for key type. +type KeyType string + +const ( + // Primary ... + Primary KeyType = "Primary" + // Secondary ... + Secondary KeyType = "Secondary" +) + +// PossibleKeyTypeValues returns an array of possible values for the KeyType const type. +func PossibleKeyTypeValues() []KeyType { + return []KeyType{Primary, Secondary} +} + +// ManagedIdentityType enumerates the values for managed identity type. +type ManagedIdentityType string + +const ( + // None ... + None ManagedIdentityType = "None" + // SystemAssigned ... + SystemAssigned ManagedIdentityType = "SystemAssigned" + // UserAssigned ... + UserAssigned ManagedIdentityType = "UserAssigned" +) + +// PossibleManagedIdentityTypeValues returns an array of possible values for the ManagedIdentityType const type. +func PossibleManagedIdentityTypeValues() []ManagedIdentityType { + return []ManagedIdentityType{None, SystemAssigned, UserAssigned} +} + +// PrivateLinkServiceConnectionStatus enumerates the values for private link service connection status. +type PrivateLinkServiceConnectionStatus string + +const ( + // Approved ... + Approved PrivateLinkServiceConnectionStatus = "Approved" + // Disconnected ... + Disconnected PrivateLinkServiceConnectionStatus = "Disconnected" + // Pending ... + Pending PrivateLinkServiceConnectionStatus = "Pending" + // Rejected ... + Rejected PrivateLinkServiceConnectionStatus = "Rejected" +) + +// PossiblePrivateLinkServiceConnectionStatusValues returns an array of possible values for the PrivateLinkServiceConnectionStatus const type. +func PossiblePrivateLinkServiceConnectionStatusValues() []PrivateLinkServiceConnectionStatus { + return []PrivateLinkServiceConnectionStatus{Approved, Disconnected, Pending, Rejected} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // Canceled ... + Canceled ProvisioningState = "Canceled" + // Creating ... + Creating ProvisioningState = "Creating" + // Deleting ... + Deleting ProvisioningState = "Deleting" + // Failed ... + Failed ProvisioningState = "Failed" + // Moving ... + Moving ProvisioningState = "Moving" + // Running ... + Running ProvisioningState = "Running" + // Succeeded ... + Succeeded ProvisioningState = "Succeeded" + // Unknown ... + Unknown ProvisioningState = "Unknown" + // Updating ... + Updating ProvisioningState = "Updating" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{Canceled, Creating, Deleting, Failed, Moving, Running, Succeeded, Unknown, Updating} +} + +// RequestType enumerates the values for request type. +type RequestType string + +const ( + // ClientConnection ... + ClientConnection RequestType = "ClientConnection" + // RESTAPI ... + RESTAPI RequestType = "RESTAPI" + // ServerConnection ... + ServerConnection RequestType = "ServerConnection" + // Trace ... + Trace RequestType = "Trace" +) + +// PossibleRequestTypeValues returns an array of possible values for the RequestType const type. +func PossibleRequestTypeValues() []RequestType { + return []RequestType{ClientConnection, RESTAPI, ServerConnection, Trace} +} + +// ServiceKind enumerates the values for service kind. +type ServiceKind string + +const ( + // RawWebSockets ... + RawWebSockets ServiceKind = "RawWebSockets" + // SignalR ... + SignalR ServiceKind = "SignalR" +) + +// PossibleServiceKindValues returns an array of possible values for the ServiceKind const type. +func PossibleServiceKindValues() []ServiceKind { + return []ServiceKind{RawWebSockets, SignalR} +} + +// SharedPrivateLinkResourceStatus enumerates the values for shared private link resource status. +type SharedPrivateLinkResourceStatus string + +const ( + // SharedPrivateLinkResourceStatusApproved ... + SharedPrivateLinkResourceStatusApproved SharedPrivateLinkResourceStatus = "Approved" + // SharedPrivateLinkResourceStatusDisconnected ... + SharedPrivateLinkResourceStatusDisconnected SharedPrivateLinkResourceStatus = "Disconnected" + // SharedPrivateLinkResourceStatusPending ... + SharedPrivateLinkResourceStatusPending SharedPrivateLinkResourceStatus = "Pending" + // SharedPrivateLinkResourceStatusRejected ... + SharedPrivateLinkResourceStatusRejected SharedPrivateLinkResourceStatus = "Rejected" + // SharedPrivateLinkResourceStatusTimeout ... + SharedPrivateLinkResourceStatusTimeout SharedPrivateLinkResourceStatus = "Timeout" +) + +// PossibleSharedPrivateLinkResourceStatusValues returns an array of possible values for the SharedPrivateLinkResourceStatus const type. +func PossibleSharedPrivateLinkResourceStatusValues() []SharedPrivateLinkResourceStatus { + return []SharedPrivateLinkResourceStatus{SharedPrivateLinkResourceStatusApproved, SharedPrivateLinkResourceStatusDisconnected, SharedPrivateLinkResourceStatusPending, SharedPrivateLinkResourceStatusRejected, SharedPrivateLinkResourceStatusTimeout} +} + +// SkuTier enumerates the values for sku tier. +type SkuTier string + +const ( + // Basic ... + Basic SkuTier = "Basic" + // Free ... + Free SkuTier = "Free" + // Premium ... + Premium SkuTier = "Premium" + // Standard ... + Standard SkuTier = "Standard" +) + +// PossibleSkuTierValues returns an array of possible values for the SkuTier const type. +func PossibleSkuTierValues() []SkuTier { + return []SkuTier{Basic, Free, Premium, Standard} +} + +// UpstreamAuthType enumerates the values for upstream auth type. +type UpstreamAuthType string + +const ( + // UpstreamAuthTypeManagedIdentity ... + UpstreamAuthTypeManagedIdentity UpstreamAuthType = "ManagedIdentity" + // UpstreamAuthTypeNone ... + UpstreamAuthTypeNone UpstreamAuthType = "None" +) + +// PossibleUpstreamAuthTypeValues returns an array of possible values for the UpstreamAuthType const type. +func PossibleUpstreamAuthTypeValues() []UpstreamAuthType { + return []UpstreamAuthType{UpstreamAuthTypeManagedIdentity, UpstreamAuthTypeNone} +} diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/models.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/models.go new file mode 100644 index 000000000000..1bd47d778d78 --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/models.go @@ -0,0 +1,2264 @@ +package signalr + +// 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. + +import ( + "context" + "encoding/json" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// The package's fully qualified name. +const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2021-04-01-preview/signalr" + +// CorsSettings cross-Origin Resource Sharing (CORS) settings. +type CorsSettings struct { + // AllowedOrigins - Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. If omitted, allow all by default. + AllowedOrigins *[]string `json:"allowedOrigins,omitempty"` +} + +// CreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type CreateOrUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(Client) (ResourceType, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *CreateOrUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for CreateOrUpdateFuture.Result. +func (future *CreateOrUpdateFuture) result(client Client) (rt ResourceType, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.CreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("signalr.CreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rt.Response.Response, err = future.GetResult(sender); err == nil && rt.Response.Response.StatusCode != http.StatusNoContent { + rt, err = client.CreateOrUpdateResponder(rt.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.CreateOrUpdateFuture", "Result", rt.Response.Response, "Failure responding to request") + } + } + return +} + +// DeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type DeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(Client) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DeleteFuture.Result. +func (future *DeleteFuture) result(client Client) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.DeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("signalr.DeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// Dimension specifications of the Dimension of metrics. +type Dimension struct { + // Name - The public facing name of the dimension. + Name *string `json:"name,omitempty"` + // DisplayName - Localized friendly display name of the dimension. + DisplayName *string `json:"displayName,omitempty"` + // InternalName - Name of the dimension as it appears in MDM. + InternalName *string `json:"internalName,omitempty"` + // ToBeExportedForShoebox - A Boolean flag indicating whether this dimension should be included for the shoebox export scenario. + ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` +} + +// ErrorAdditionalInfo the resource management error additional info. +type ErrorAdditionalInfo struct { + // Type - READ-ONLY; The additional info type. + Type *string `json:"type,omitempty"` + // Info - READ-ONLY; The additional info. + Info interface{} `json:"info,omitempty"` +} + +// ErrorDetail the error detail. +type ErrorDetail struct { + // Code - READ-ONLY; The error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; The error message. + Message *string `json:"message,omitempty"` + // Target - READ-ONLY; The error target. + Target *string `json:"target,omitempty"` + // Details - READ-ONLY; The error details. + Details *[]ErrorDetail `json:"details,omitempty"` + // AdditionalInfo - READ-ONLY; The error additional info. + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` +} + +// ErrorResponse common error response for all Azure Resource Manager APIs to return error details for +// failed operations. (This also follows the OData error response format.). +type ErrorResponse struct { + // Error - The error object. + Error *ErrorDetail `json:"error,omitempty"` +} + +// Feature feature of a SignalR resource, which controls the SignalR runtime behavior. +type Feature struct { + // Flag - FeatureFlags is the supported features of Azure SignalR service. + // - ServiceMode: Flag for backend server for SignalR service. Values allowed: "Default": have your own backend server; "Serverless": your application doesn't have a backend server; "Classic": for backward compatibility. Support both Default and Serverless mode but not recommended; "PredefinedOnly": for future use. + // - EnableConnectivityLogs: "true"/"false", to enable/disable the connectivity log category respectively. + // - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity log category respectively. + // - EnableLiveTrace: Live Trace allows you to know what's happening inside Azure SignalR service, it will give you live traces in real time, it will be helpful when you developing your own Azure SignalR based web application or self-troubleshooting some issues. Please note that live traces are counted as outbound messages that will be charged. Values allowed: "true"/"false", to enable/disable live trace feature. Possible values include: 'ServiceMode', 'EnableConnectivityLogs', 'EnableMessagingLogs', 'EnableLiveTrace' + Flag FeatureFlags `json:"flag,omitempty"` + // Value - Value of the feature flag. See Azure SignalR service document https://docs.microsoft.com/azure/azure-signalr/ for allowed values. + Value *string `json:"value,omitempty"` + // Properties - Optional properties related to this feature. + Properties map[string]*string `json:"properties"` +} + +// MarshalJSON is the custom marshaler for Feature. +func (f Feature) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if f.Flag != "" { + objectMap["flag"] = f.Flag + } + if f.Value != nil { + objectMap["value"] = f.Value + } + if f.Properties != nil { + objectMap["properties"] = f.Properties + } + return json.Marshal(objectMap) +} + +// Keys a class represents the access keys of the resource. +type Keys struct { + autorest.Response `json:"-"` + // PrimaryKey - The primary access key. + PrimaryKey *string `json:"primaryKey,omitempty"` + // SecondaryKey - The secondary access key. + SecondaryKey *string `json:"secondaryKey,omitempty"` + // PrimaryConnectionString - Connection string constructed via the primaryKey + PrimaryConnectionString *string `json:"primaryConnectionString,omitempty"` + // SecondaryConnectionString - Connection string constructed via the secondaryKey + SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"` +} + +// LogSpecification specifications of the Logs for Azure Monitoring. +type LogSpecification struct { + // Name - Name of the log. + Name *string `json:"name,omitempty"` + // DisplayName - Localized friendly display name of the log. + DisplayName *string `json:"displayName,omitempty"` +} + +// ManagedIdentity a class represent managed identities used for request and response +type ManagedIdentity struct { + // Type - Represent the identity type: systemAssigned, userAssigned, None. Possible values include: 'None', 'SystemAssigned', 'UserAssigned' + Type ManagedIdentityType `json:"type,omitempty"` + // UserAssignedIdentities - Get or set the user assigned identities + UserAssignedIdentities map[string]*UserAssignedIdentityProperty `json:"userAssignedIdentities"` + // PrincipalID - READ-ONLY; Get the principal id for the system assigned identity. + // Only be used in response. + PrincipalID *string `json:"principalId,omitempty"` + // TenantID - READ-ONLY; Get the tenant id for the system assigned identity. + // Only be used in response + TenantID *string `json:"tenantId,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedIdentity. +func (mi ManagedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mi.Type != "" { + objectMap["type"] = mi.Type + } + if mi.UserAssignedIdentities != nil { + objectMap["userAssignedIdentities"] = mi.UserAssignedIdentities + } + return json.Marshal(objectMap) +} + +// ManagedIdentitySettings managed identity settings for upstream. +type ManagedIdentitySettings struct { + // Resource - The Resource indicating the App ID URI of the target resource. + // It also appears in the aud (audience) claim of the issued token. + Resource *string `json:"resource,omitempty"` +} + +// MetricSpecification specifications of the Metrics for Azure Monitoring. +type MetricSpecification struct { + // Name - Name of the metric. + Name *string `json:"name,omitempty"` + // DisplayName - Localized friendly display name of the metric. + DisplayName *string `json:"displayName,omitempty"` + // DisplayDescription - Localized friendly description of the metric. + DisplayDescription *string `json:"displayDescription,omitempty"` + // Unit - The unit that makes sense for the metric. + Unit *string `json:"unit,omitempty"` + // AggregationType - Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. + AggregationType *string `json:"aggregationType,omitempty"` + // FillGapWithZero - Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. + // Ex. a metric that returns the number of times a particular error code was emitted. The error code may not appear + // often, instead of the RP publishing 0, Shoebox can auto fill in 0s for time periods where nothing was emitted. + FillGapWithZero *string `json:"fillGapWithZero,omitempty"` + // Category - The name of the metric category that the metric belongs to. A metric can only belong to a single category. + Category *string `json:"category,omitempty"` + // Dimensions - The dimensions of the metrics. + Dimensions *[]Dimension `json:"dimensions,omitempty"` +} + +// NameAvailability result of the request to check name availability. It contains a flag and possible +// reason of failure. +type NameAvailability struct { + autorest.Response `json:"-"` + // NameAvailable - Indicates whether the name is available or not. + NameAvailable *bool `json:"nameAvailable,omitempty"` + // Reason - The reason of the availability. Required if name is not available. + Reason *string `json:"reason,omitempty"` + // Message - The message of the operation. + Message *string `json:"message,omitempty"` +} + +// NameAvailabilityParameters data POST-ed to the nameAvailability action +type NameAvailabilityParameters struct { + // Type - The resource type. Can be "Microsoft.SignalRService/SignalR" or "Microsoft.SignalRService/webPubSub" + Type *string `json:"type,omitempty"` + // Name - The resource name to validate. e.g."my-resource-name" + Name *string `json:"name,omitempty"` +} + +// NetworkACL network ACL +type NetworkACL struct { + // Allow - Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI. + Allow *[]RequestType `json:"allow,omitempty"` + // Deny - Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI. + Deny *[]RequestType `json:"deny,omitempty"` +} + +// NetworkACLs network ACLs for the resource +type NetworkACLs struct { + // DefaultAction - Default action when no other rule matches. Possible values include: 'Allow', 'Deny' + DefaultAction ACLAction `json:"defaultAction,omitempty"` + // PublicNetwork - ACL for requests from public network + PublicNetwork *NetworkACL `json:"publicNetwork,omitempty"` + // PrivateEndpoints - ACLs for requests from private endpoints + PrivateEndpoints *[]PrivateEndpointACL `json:"privateEndpoints,omitempty"` +} + +// Operation REST API operation supported by resource provider. +type Operation struct { + // Name - Name of the operation with format: {provider}/{resource}/{operation} + Name *string `json:"name,omitempty"` + // IsDataAction - If the operation is a data action. (for data plane rbac) + IsDataAction *bool `json:"isDataAction,omitempty"` + // Display - The object that describes the operation. + Display *OperationDisplay `json:"display,omitempty"` + // Origin - Optional. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. + Origin *string `json:"origin,omitempty"` + // Properties - Extra properties for the operation. + Properties *OperationProperties `json:"properties,omitempty"` +} + +// OperationDisplay the object that describes a operation. +type OperationDisplay struct { + // Provider - Friendly name of the resource provider + Provider *string `json:"provider,omitempty"` + // Resource - Resource type on which the operation is performed. + Resource *string `json:"resource,omitempty"` + // Operation - The localized friendly name for the operation. + Operation *string `json:"operation,omitempty"` + // Description - The localized friendly description for the operation + Description *string `json:"description,omitempty"` +} + +// OperationList result of the request to list REST API operations. It contains a list of operations. +type OperationList struct { + autorest.Response `json:"-"` + // Value - List of operations supported by the resource provider. + Value *[]Operation `json:"value,omitempty"` + // NextLink - The URL the client should use to fetch the next page (per server side paging). + // It's null for now, added for future use. + NextLink *string `json:"nextLink,omitempty"` +} + +// OperationListIterator provides access to a complete listing of Operation values. +type OperationListIterator struct { + i int + page OperationListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OperationListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OperationListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OperationListIterator) Response() OperationList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OperationListIterator) Value() Operation { + if !iter.page.NotDone() { + return Operation{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OperationListIterator type. +func NewOperationListIterator(page OperationListPage) OperationListIterator { + return OperationListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ol OperationList) IsEmpty() bool { + return ol.Value == nil || len(*ol.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ol OperationList) hasNextLink() bool { + return ol.NextLink != nil && len(*ol.NextLink) != 0 +} + +// operationListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ol OperationList) operationListPreparer(ctx context.Context) (*http.Request, error) { + if !ol.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ol.NextLink))) +} + +// OperationListPage contains a page of Operation values. +type OperationListPage struct { + fn func(context.Context, OperationList) (OperationList, error) + ol OperationList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OperationListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ol) + if err != nil { + return err + } + page.ol = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OperationListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OperationListPage) NotDone() bool { + return !page.ol.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OperationListPage) Response() OperationList { + return page.ol +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OperationListPage) Values() []Operation { + if page.ol.IsEmpty() { + return nil + } + return *page.ol.Value +} + +// Creates a new instance of the OperationListPage type. +func NewOperationListPage(cur OperationList, getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage { + return OperationListPage{ + fn: getNextPage, + ol: cur, + } +} + +// OperationProperties extra Operation properties. +type OperationProperties struct { + // ServiceSpecification - The service specifications. + ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` +} + +// PrivateEndpoint private endpoint +type PrivateEndpoint struct { + // ID - Full qualified Id of the private endpoint + ID *string `json:"id,omitempty"` +} + +// PrivateEndpointACL ACL for a private endpoint +type PrivateEndpointACL struct { + // Name - Name of the private endpoint connection + Name *string `json:"name,omitempty"` + // Allow - Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI. + Allow *[]RequestType `json:"allow,omitempty"` + // Deny - Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI. + Deny *[]RequestType `json:"deny,omitempty"` +} + +// PrivateEndpointConnection a private endpoint connection to an azure resource +type PrivateEndpointConnection struct { + autorest.Response `json:"-"` + // SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource. + SystemData *SystemData `json:"systemData,omitempty"` + // PrivateEndpointConnectionProperties - Properties of the private endpoint connection + *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource - e.g. "Microsoft.SignalRService/SignalR" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointConnection. +func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pec.PrivateEndpointConnectionProperties != nil { + objectMap["properties"] = pec.PrivateEndpointConnectionProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct. +func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + pec.SystemData = &systemData + } + case "properties": + if v != nil { + var privateEndpointConnectionProperties PrivateEndpointConnectionProperties + err = json.Unmarshal(*v, &privateEndpointConnectionProperties) + if err != nil { + return err + } + pec.PrivateEndpointConnectionProperties = &privateEndpointConnectionProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pec.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pec.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pec.Type = &typeVar + } + } + } + + return nil +} + +// PrivateEndpointConnectionList a list of private endpoint connections +type PrivateEndpointConnectionList struct { + autorest.Response `json:"-"` + // Value - The list of the private endpoint connections + Value *[]PrivateEndpointConnection `json:"value,omitempty"` + // NextLink - Request URL that can be used to query next page of private endpoint connections. Returned when the total number of requested private endpoint connections exceed maximum page size. + NextLink *string `json:"nextLink,omitempty"` +} + +// PrivateEndpointConnectionListIterator provides access to a complete listing of PrivateEndpointConnection +// values. +type PrivateEndpointConnectionListIterator struct { + i int + page PrivateEndpointConnectionListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PrivateEndpointConnectionListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PrivateEndpointConnectionListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PrivateEndpointConnectionListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PrivateEndpointConnectionListIterator) Response() PrivateEndpointConnectionList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PrivateEndpointConnectionListIterator) Value() PrivateEndpointConnection { + if !iter.page.NotDone() { + return PrivateEndpointConnection{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PrivateEndpointConnectionListIterator type. +func NewPrivateEndpointConnectionListIterator(page PrivateEndpointConnectionListPage) PrivateEndpointConnectionListIterator { + return PrivateEndpointConnectionListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (pecl PrivateEndpointConnectionList) IsEmpty() bool { + return pecl.Value == nil || len(*pecl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (pecl PrivateEndpointConnectionList) hasNextLink() bool { + return pecl.NextLink != nil && len(*pecl.NextLink) != 0 +} + +// privateEndpointConnectionListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (pecl PrivateEndpointConnectionList) privateEndpointConnectionListPreparer(ctx context.Context) (*http.Request, error) { + if !pecl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(pecl.NextLink))) +} + +// PrivateEndpointConnectionListPage contains a page of PrivateEndpointConnection values. +type PrivateEndpointConnectionListPage struct { + fn func(context.Context, PrivateEndpointConnectionList) (PrivateEndpointConnectionList, error) + pecl PrivateEndpointConnectionList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PrivateEndpointConnectionListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.pecl) + if err != nil { + return err + } + page.pecl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PrivateEndpointConnectionListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PrivateEndpointConnectionListPage) NotDone() bool { + return !page.pecl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PrivateEndpointConnectionListPage) Response() PrivateEndpointConnectionList { + return page.pecl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PrivateEndpointConnectionListPage) Values() []PrivateEndpointConnection { + if page.pecl.IsEmpty() { + return nil + } + return *page.pecl.Value +} + +// Creates a new instance of the PrivateEndpointConnectionListPage type. +func NewPrivateEndpointConnectionListPage(cur PrivateEndpointConnectionList, getNextPage func(context.Context, PrivateEndpointConnectionList) (PrivateEndpointConnectionList, error)) PrivateEndpointConnectionListPage { + return PrivateEndpointConnectionListPage{ + fn: getNextPage, + pecl: cur, + } +} + +// PrivateEndpointConnectionProperties private endpoint connection properties +type PrivateEndpointConnectionProperties struct { + // ProvisioningState - READ-ONLY; Provisioning state of the private endpoint connection. Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrivateEndpoint - Private endpoint associated with the private endpoint connection + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + // PrivateLinkServiceConnectionState - Connection state + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionProperties. +func (pecp PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pecp.PrivateEndpoint != nil { + objectMap["privateEndpoint"] = pecp.PrivateEndpoint + } + if pecp.PrivateLinkServiceConnectionState != nil { + objectMap["privateLinkServiceConnectionState"] = pecp.PrivateLinkServiceConnectionState + } + return json.Marshal(objectMap) +} + +// PrivateEndpointConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type PrivateEndpointConnectionsDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(PrivateEndpointConnectionsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for PrivateEndpointConnectionsDeleteFuture.Result. +func (future *PrivateEndpointConnectionsDeleteFuture) result(client PrivateEndpointConnectionsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("signalr.PrivateEndpointConnectionsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// PrivateLinkResource private link resource +type PrivateLinkResource struct { + // PrivateLinkResourceProperties - Properties of a private link resource + *PrivateLinkResourceProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource - e.g. "Microsoft.SignalRService/SignalR" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plr.PrivateLinkResourceProperties != nil { + objectMap["properties"] = plr.PrivateLinkResourceProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct. +func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var privateLinkResourceProperties PrivateLinkResourceProperties + err = json.Unmarshal(*v, &privateLinkResourceProperties) + if err != nil { + return err + } + plr.PrivateLinkResourceProperties = &privateLinkResourceProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + plr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + plr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + plr.Type = &typeVar + } + } + } + + return nil +} + +// PrivateLinkResourceList contains a list of PrivateLinkResource and a possible link to query more results +type PrivateLinkResourceList struct { + autorest.Response `json:"-"` + // Value - List of PrivateLinkResource + Value *[]PrivateLinkResource `json:"value,omitempty"` + // NextLink - The URL the client should use to fetch the next page (per server side paging). + // It's null for now, added for future use. + NextLink *string `json:"nextLink,omitempty"` +} + +// PrivateLinkResourceListIterator provides access to a complete listing of PrivateLinkResource values. +type PrivateLinkResourceListIterator struct { + i int + page PrivateLinkResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PrivateLinkResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PrivateLinkResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PrivateLinkResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PrivateLinkResourceListIterator) Response() PrivateLinkResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PrivateLinkResourceListIterator) Value() PrivateLinkResource { + if !iter.page.NotDone() { + return PrivateLinkResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PrivateLinkResourceListIterator type. +func NewPrivateLinkResourceListIterator(page PrivateLinkResourceListPage) PrivateLinkResourceListIterator { + return PrivateLinkResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (plrl PrivateLinkResourceList) IsEmpty() bool { + return plrl.Value == nil || len(*plrl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (plrl PrivateLinkResourceList) hasNextLink() bool { + return plrl.NextLink != nil && len(*plrl.NextLink) != 0 +} + +// privateLinkResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (plrl PrivateLinkResourceList) privateLinkResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !plrl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(plrl.NextLink))) +} + +// PrivateLinkResourceListPage contains a page of PrivateLinkResource values. +type PrivateLinkResourceListPage struct { + fn func(context.Context, PrivateLinkResourceList) (PrivateLinkResourceList, error) + plrl PrivateLinkResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PrivateLinkResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.plrl) + if err != nil { + return err + } + page.plrl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PrivateLinkResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PrivateLinkResourceListPage) NotDone() bool { + return !page.plrl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PrivateLinkResourceListPage) Response() PrivateLinkResourceList { + return page.plrl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PrivateLinkResourceListPage) Values() []PrivateLinkResource { + if page.plrl.IsEmpty() { + return nil + } + return *page.plrl.Value +} + +// Creates a new instance of the PrivateLinkResourceListPage type. +func NewPrivateLinkResourceListPage(cur PrivateLinkResourceList, getNextPage func(context.Context, PrivateLinkResourceList) (PrivateLinkResourceList, error)) PrivateLinkResourceListPage { + return PrivateLinkResourceListPage{ + fn: getNextPage, + plrl: cur, + } +} + +// PrivateLinkResourceProperties private link resource properties +type PrivateLinkResourceProperties struct { + // GroupID - Group Id of the private link resource + GroupID *string `json:"groupId,omitempty"` + // RequiredMembers - Required members of the private link resource + RequiredMembers *[]string `json:"requiredMembers,omitempty"` + // RequiredZoneNames - Required private DNS zone names + RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` + // ShareablePrivateLinkResourceTypes - The list of resources that are onboarded to private link service + ShareablePrivateLinkResourceTypes *[]ShareablePrivateLinkResourceType `json:"shareablePrivateLinkResourceTypes,omitempty"` +} + +// PrivateLinkServiceConnectionState connection state of the private endpoint connection +type PrivateLinkServiceConnectionState struct { + // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' + Status PrivateLinkServiceConnectionStatus `json:"status,omitempty"` + // Description - The reason for approval/rejection of the connection. + Description *string `json:"description,omitempty"` + // ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer. + ActionsRequired *string `json:"actionsRequired,omitempty"` +} + +// Properties a class that describes the properties of the resource +type Properties struct { + // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // ExternalIP - READ-ONLY; The publicly accessible IP of the resource. + ExternalIP *string `json:"externalIP,omitempty"` + // HostName - READ-ONLY; FQDN of the service instance. + HostName *string `json:"hostName,omitempty"` + // PublicPort - READ-ONLY; The publicly accessible port of the resource which is designed for browser/client side usage. + PublicPort *int32 `json:"publicPort,omitempty"` + // ServerPort - READ-ONLY; The publicly accessible port of the resource which is designed for customer server side usage. + ServerPort *int32 `json:"serverPort,omitempty"` + // Version - READ-ONLY; Version of the resource. Probably you need the same or higher version of client SDKs. + Version *string `json:"version,omitempty"` + // PrivateEndpointConnections - READ-ONLY; Private endpoint connections to the resource. + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + // SharedPrivateLinkResources - READ-ONLY; The list of shared private link resources. + SharedPrivateLinkResources *[]SharedPrivateLinkResource `json:"sharedPrivateLinkResources,omitempty"` + // TLS - TLS settings. + TLS *TLSSettings `json:"tls,omitempty"` + // Features - List of the featureFlags. + // + // FeatureFlags that are not included in the parameters for the update operation will not be modified. + // And the response will only include featureFlags that are explicitly set. + // When a featureFlag is not explicitly set, its globally default value will be used + // But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. + Features *[]Feature `json:"features,omitempty"` + // Cors - Cross-Origin Resource Sharing (CORS) settings. + Cors *CorsSettings `json:"cors,omitempty"` + // Upstream - Upstream settings when the service is in server-less mode. + Upstream *ServerlessUpstreamSettings `json:"upstream,omitempty"` + // NetworkACLs - Network ACLs + NetworkACLs *NetworkACLs `json:"networkACLs,omitempty"` +} + +// MarshalJSON is the custom marshaler for Properties. +func (p Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if p.TLS != nil { + objectMap["tls"] = p.TLS + } + if p.Features != nil { + objectMap["features"] = p.Features + } + if p.Cors != nil { + objectMap["cors"] = p.Cors + } + if p.Upstream != nil { + objectMap["upstream"] = p.Upstream + } + if p.NetworkACLs != nil { + objectMap["networkACLs"] = p.NetworkACLs + } + return json.Marshal(objectMap) +} + +// ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than +// required location and tags +type ProxyResource struct { + // ID - READ-ONLY; Fully qualified resource Id for the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource - e.g. "Microsoft.SignalRService/SignalR" + Type *string `json:"type,omitempty"` +} + +// RegenerateKeyFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type RegenerateKeyFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(Client) (Keys, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *RegenerateKeyFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for RegenerateKeyFuture.Result. +func (future *RegenerateKeyFuture) result(client Client) (kVar Keys, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.RegenerateKeyFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("signalr.RegenerateKeyFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if kVar.Response.Response, err = future.GetResult(sender); err == nil && kVar.Response.Response.StatusCode != http.StatusNoContent { + kVar, err = client.RegenerateKeyResponder(kVar.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.RegenerateKeyFuture", "Result", kVar.Response.Response, "Failure responding to request") + } + } + return +} + +// RegenerateKeyParameters parameters describes the request to regenerate access keys +type RegenerateKeyParameters struct { + // KeyType - The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). Possible values include: 'Primary', 'Secondary' + KeyType KeyType `json:"keyType,omitempty"` +} + +// Resource the core properties of ARM resources. +type Resource struct { + // ID - READ-ONLY; Fully qualified resource Id for the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource - e.g. "Microsoft.SignalRService/SignalR" + Type *string `json:"type,omitempty"` +} + +// ResourceList object that includes an array of resources and a possible link for next set. +type ResourceList struct { + autorest.Response `json:"-"` + // Value - List of the resources + Value *[]ResourceType `json:"value,omitempty"` + // NextLink - The URL the client should use to fetch the next page (per server side paging). + // It's null for now, added for future use. + NextLink *string `json:"nextLink,omitempty"` +} + +// ResourceListIterator provides access to a complete listing of ResourceType values. +type ResourceListIterator struct { + i int + page ResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ResourceListIterator) Response() ResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ResourceListIterator) Value() ResourceType { + if !iter.page.NotDone() { + return ResourceType{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ResourceListIterator type. +func NewResourceListIterator(page ResourceListPage) ResourceListIterator { + return ResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rl ResourceList) IsEmpty() bool { + return rl.Value == nil || len(*rl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (rl ResourceList) hasNextLink() bool { + return rl.NextLink != nil && len(*rl.NextLink) != 0 +} + +// resourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rl ResourceList) resourceListPreparer(ctx context.Context) (*http.Request, error) { + if !rl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rl.NextLink))) +} + +// ResourceListPage contains a page of ResourceType values. +type ResourceListPage struct { + fn func(context.Context, ResourceList) (ResourceList, error) + rl ResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.rl) + if err != nil { + return err + } + page.rl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ResourceListPage) NotDone() bool { + return !page.rl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ResourceListPage) Response() ResourceList { + return page.rl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ResourceListPage) Values() []ResourceType { + if page.rl.IsEmpty() { + return nil + } + return *page.rl.Value +} + +// Creates a new instance of the ResourceListPage type. +func NewResourceListPage(cur ResourceList, getNextPage func(context.Context, ResourceList) (ResourceList, error)) ResourceListPage { + return ResourceListPage{ + fn: getNextPage, + rl: cur, + } +} + +// ResourceSku the billing information of the resource. +type ResourceSku struct { + // Name - The name of the SKU. Required. + // + // Allowed values: Standard_S1, Free_F1 + Name *string `json:"name,omitempty"` + // Tier - Optional tier of this particular SKU. 'Standard' or 'Free'. + // + // `Basic` is deprecated, use `Standard` instead. Possible values include: 'Free', 'Basic', 'Standard', 'Premium' + Tier SkuTier `json:"tier,omitempty"` + // Size - READ-ONLY; Not used. Retained for future use. + Size *string `json:"size,omitempty"` + // Family - READ-ONLY; Not used. Retained for future use. + Family *string `json:"family,omitempty"` + // Capacity - Optional, integer. The unit count of the resource. 1 by default. + // + // If present, following values are allowed: + // Free: 1 + // Standard: 1,2,5,10,20,50,100 + Capacity *int32 `json:"capacity,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceSku. +func (rs ResourceSku) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rs.Name != nil { + objectMap["name"] = rs.Name + } + if rs.Tier != "" { + objectMap["tier"] = rs.Tier + } + if rs.Capacity != nil { + objectMap["capacity"] = rs.Capacity + } + return json.Marshal(objectMap) +} + +// ResourceType a class represent a resource. +type ResourceType struct { + autorest.Response `json:"-"` + // Sku - The billing information of the resource.(e.g. Free, Standard) + Sku *ResourceSku `json:"sku,omitempty"` + // Properties - Settings used to provision or configure the resource + *Properties `json:"properties,omitempty"` + // Kind - The kind of the service - e.g. "SignalR" for "Microsoft.SignalRService/SignalR". Possible values include: 'SignalR', 'RawWebSockets' + Kind ServiceKind `json:"kind,omitempty"` + // Identity - The managed identity response + Identity *ManagedIdentity `json:"identity,omitempty"` + // SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource. + SystemData *SystemData `json:"systemData,omitempty"` + // Location - The GEO location of the resource. e.g. West US | East US | North Central US | South Central US. + Location *string `json:"location,omitempty"` + // Tags - Tags of the service which is a list of key value pairs that describe the resource. + Tags map[string]*string `json:"tags"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource - e.g. "Microsoft.SignalRService/SignalR" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResourceType. +func (rt ResourceType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rt.Sku != nil { + objectMap["sku"] = rt.Sku + } + if rt.Properties != nil { + objectMap["properties"] = rt.Properties + } + if rt.Kind != "" { + objectMap["kind"] = rt.Kind + } + if rt.Identity != nil { + objectMap["identity"] = rt.Identity + } + if rt.Location != nil { + objectMap["location"] = rt.Location + } + if rt.Tags != nil { + objectMap["tags"] = rt.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ResourceType struct. +func (rt *ResourceType) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sku": + if v != nil { + var sku ResourceSku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + rt.Sku = &sku + } + case "properties": + if v != nil { + var properties Properties + err = json.Unmarshal(*v, &properties) + if err != nil { + return err + } + rt.Properties = &properties + } + case "kind": + if v != nil { + var kind ServiceKind + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + rt.Kind = kind + } + case "identity": + if v != nil { + var identity ManagedIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + rt.Identity = &identity + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + rt.SystemData = &systemData + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + rt.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + rt.Tags = tags + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rt.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rt.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rt.Type = &typeVar + } + } + } + + return nil +} + +// RestartFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type RestartFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(Client) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *RestartFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for RestartFuture.Result. +func (future *RestartFuture) result(client Client) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.RestartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("signalr.RestartFuture") + return + } + ar.Response = future.Response() + return +} + +// ServerlessUpstreamSettings the settings for the Upstream when the service is in server-less mode. +type ServerlessUpstreamSettings struct { + // Templates - Gets or sets the list of Upstream URL templates. Order matters, and the first matching template takes effects. + Templates *[]UpstreamTemplate `json:"templates,omitempty"` +} + +// ServiceSpecification an object that describes a specification. +type ServiceSpecification struct { + // MetricSpecifications - Specifications of the Metrics for Azure Monitoring. + MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` + // LogSpecifications - Specifications of the Logs for Azure Monitoring. + LogSpecifications *[]LogSpecification `json:"logSpecifications,omitempty"` +} + +// ShareablePrivateLinkResourceProperties describes the properties of a resource type that has been +// onboarded to private link service +type ShareablePrivateLinkResourceProperties struct { + // Description - The description of the resource type that has been onboarded to private link service + Description *string `json:"description,omitempty"` + // GroupID - The resource provider group id for the resource that has been onboarded to private link service + GroupID *string `json:"groupId,omitempty"` + // Type - The resource provider type for the resource that has been onboarded to private link service + Type *string `json:"type,omitempty"` +} + +// ShareablePrivateLinkResourceType describes a resource type that has been onboarded to private link +// service +type ShareablePrivateLinkResourceType struct { + // Name - The name of the resource type that has been onboarded to private link service + Name *string `json:"name,omitempty"` + // Properties - Describes the properties of a resource type that has been onboarded to private link service + Properties *ShareablePrivateLinkResourceProperties `json:"properties,omitempty"` +} + +// SharedPrivateLinkResource describes a Shared Private Link Resource +type SharedPrivateLinkResource struct { + autorest.Response `json:"-"` + // SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource. + SystemData *SystemData `json:"systemData,omitempty"` + // SharedPrivateLinkResourceProperties - Describes the properties of a Shared Private Link Resource + *SharedPrivateLinkResourceProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource - e.g. "Microsoft.SignalRService/SignalR" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SharedPrivateLinkResource. +func (splr SharedPrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if splr.SharedPrivateLinkResourceProperties != nil { + objectMap["properties"] = splr.SharedPrivateLinkResourceProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SharedPrivateLinkResource struct. +func (splr *SharedPrivateLinkResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + splr.SystemData = &systemData + } + case "properties": + if v != nil { + var sharedPrivateLinkResourceProperties SharedPrivateLinkResourceProperties + err = json.Unmarshal(*v, &sharedPrivateLinkResourceProperties) + if err != nil { + return err + } + splr.SharedPrivateLinkResourceProperties = &sharedPrivateLinkResourceProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + splr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + splr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + splr.Type = &typeVar + } + } + } + + return nil +} + +// SharedPrivateLinkResourceList a list of shared private link resources +type SharedPrivateLinkResourceList struct { + autorest.Response `json:"-"` + // Value - The list of the shared private link resources + Value *[]SharedPrivateLinkResource `json:"value,omitempty"` + // NextLink - Request URL that can be used to query next page of private endpoint connections. Returned when the total number of requested private endpoint connections exceed maximum page size. + NextLink *string `json:"nextLink,omitempty"` +} + +// SharedPrivateLinkResourceListIterator provides access to a complete listing of SharedPrivateLinkResource +// values. +type SharedPrivateLinkResourceListIterator struct { + i int + page SharedPrivateLinkResourceListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SharedPrivateLinkResourceListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedPrivateLinkResourceListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *SharedPrivateLinkResourceListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter SharedPrivateLinkResourceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter SharedPrivateLinkResourceListIterator) Response() SharedPrivateLinkResourceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter SharedPrivateLinkResourceListIterator) Value() SharedPrivateLinkResource { + if !iter.page.NotDone() { + return SharedPrivateLinkResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the SharedPrivateLinkResourceListIterator type. +func NewSharedPrivateLinkResourceListIterator(page SharedPrivateLinkResourceListPage) SharedPrivateLinkResourceListIterator { + return SharedPrivateLinkResourceListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (splrl SharedPrivateLinkResourceList) IsEmpty() bool { + return splrl.Value == nil || len(*splrl.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (splrl SharedPrivateLinkResourceList) hasNextLink() bool { + return splrl.NextLink != nil && len(*splrl.NextLink) != 0 +} + +// sharedPrivateLinkResourceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (splrl SharedPrivateLinkResourceList) sharedPrivateLinkResourceListPreparer(ctx context.Context) (*http.Request, error) { + if !splrl.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(splrl.NextLink))) +} + +// SharedPrivateLinkResourceListPage contains a page of SharedPrivateLinkResource values. +type SharedPrivateLinkResourceListPage struct { + fn func(context.Context, SharedPrivateLinkResourceList) (SharedPrivateLinkResourceList, error) + splrl SharedPrivateLinkResourceList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *SharedPrivateLinkResourceListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedPrivateLinkResourceListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.splrl) + if err != nil { + return err + } + page.splrl = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *SharedPrivateLinkResourceListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page SharedPrivateLinkResourceListPage) NotDone() bool { + return !page.splrl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page SharedPrivateLinkResourceListPage) Response() SharedPrivateLinkResourceList { + return page.splrl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page SharedPrivateLinkResourceListPage) Values() []SharedPrivateLinkResource { + if page.splrl.IsEmpty() { + return nil + } + return *page.splrl.Value +} + +// Creates a new instance of the SharedPrivateLinkResourceListPage type. +func NewSharedPrivateLinkResourceListPage(cur SharedPrivateLinkResourceList, getNextPage func(context.Context, SharedPrivateLinkResourceList) (SharedPrivateLinkResourceList, error)) SharedPrivateLinkResourceListPage { + return SharedPrivateLinkResourceListPage{ + fn: getNextPage, + splrl: cur, + } +} + +// SharedPrivateLinkResourceProperties describes the properties of an existing Shared Private Link Resource +type SharedPrivateLinkResourceProperties struct { + // GroupID - The group id from the provider of resource the shared private link resource is for + GroupID *string `json:"groupId,omitempty"` + // PrivateLinkResourceID - The resource id of the resource the shared private link resource is for + PrivateLinkResourceID *string `json:"privateLinkResourceId,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning state of the shared private link resource. Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // RequestMessage - The request message for requesting approval of the shared private link resource + RequestMessage *string `json:"requestMessage,omitempty"` + // Status - READ-ONLY; Status of the shared private link resource. Possible values include: 'SharedPrivateLinkResourceStatusPending', 'SharedPrivateLinkResourceStatusApproved', 'SharedPrivateLinkResourceStatusRejected', 'SharedPrivateLinkResourceStatusDisconnected', 'SharedPrivateLinkResourceStatusTimeout' + Status SharedPrivateLinkResourceStatus `json:"status,omitempty"` +} + +// MarshalJSON is the custom marshaler for SharedPrivateLinkResourceProperties. +func (splrp SharedPrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if splrp.GroupID != nil { + objectMap["groupId"] = splrp.GroupID + } + if splrp.PrivateLinkResourceID != nil { + objectMap["privateLinkResourceId"] = splrp.PrivateLinkResourceID + } + if splrp.RequestMessage != nil { + objectMap["requestMessage"] = splrp.RequestMessage + } + return json.Marshal(objectMap) +} + +// SharedPrivateLinkResourcesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type SharedPrivateLinkResourcesCreateOrUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(SharedPrivateLinkResourcesClient) (SharedPrivateLinkResource, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *SharedPrivateLinkResourcesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for SharedPrivateLinkResourcesCreateOrUpdateFuture.Result. +func (future *SharedPrivateLinkResourcesCreateOrUpdateFuture) result(client SharedPrivateLinkResourcesClient) (splr SharedPrivateLinkResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("signalr.SharedPrivateLinkResourcesCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if splr.Response.Response, err = future.GetResult(sender); err == nil && splr.Response.Response.StatusCode != http.StatusNoContent { + splr, err = client.CreateOrUpdateResponder(splr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesCreateOrUpdateFuture", "Result", splr.Response.Response, "Failure responding to request") + } + } + return +} + +// SharedPrivateLinkResourcesDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type SharedPrivateLinkResourcesDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(SharedPrivateLinkResourcesClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *SharedPrivateLinkResourcesDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for SharedPrivateLinkResourcesDeleteFuture.Result. +func (future *SharedPrivateLinkResourcesDeleteFuture) result(client SharedPrivateLinkResourcesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("signalr.SharedPrivateLinkResourcesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// SystemData metadata pertaining to creation and last modification of the resource. +type SystemData struct { + // CreatedBy - The identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' + CreatedByType CreatedByType `json:"createdByType,omitempty"` + // CreatedAt - The timestamp of resource creation (UTC). + CreatedAt *date.Time `json:"createdAt,omitempty"` + // LastModifiedBy - The identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' + LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` + // LastModifiedAt - The timestamp of resource last modification (UTC) + LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` +} + +// TLSSettings TLS settings for the resource +type TLSSettings struct { + // ClientCertEnabled - Request client certificate during TLS handshake if enabled + ClientCertEnabled *bool `json:"clientCertEnabled,omitempty"` +} + +// TrackedResource the resource model definition for a ARM tracked top level resource. +type TrackedResource struct { + // Location - The GEO location of the resource. e.g. West US | East US | North Central US | South Central US. + Location *string `json:"location,omitempty"` + // Tags - Tags of the service which is a list of key value pairs that describe the resource. + Tags map[string]*string `json:"tags"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource - e.g. "Microsoft.SignalRService/SignalR" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TrackedResource. +func (tr TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tr.Location != nil { + objectMap["location"] = tr.Location + } + if tr.Tags != nil { + objectMap["tags"] = tr.Tags + } + return json.Marshal(objectMap) +} + +// UpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type UpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(Client) (ResourceType, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *UpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for UpdateFuture.Result. +func (future *UpdateFuture) result(client Client) (rt ResourceType, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.UpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("signalr.UpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rt.Response.Response, err = future.GetResult(sender); err == nil && rt.Response.Response.StatusCode != http.StatusNoContent { + rt, err = client.UpdateResponder(rt.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.UpdateFuture", "Result", rt.Response.Response, "Failure responding to request") + } + } + return +} + +// UpstreamAuthSettings upstream auth settings. +type UpstreamAuthSettings struct { + // Type - Gets or sets the type of auth. None or ManagedIdentity is supported now. Possible values include: 'UpstreamAuthTypeNone', 'UpstreamAuthTypeManagedIdentity' + Type UpstreamAuthType `json:"type,omitempty"` + // ManagedIdentity - Gets or sets the managed identity settings. It's required if the auth type is set to ManagedIdentity. + ManagedIdentity *ManagedIdentitySettings `json:"managedIdentity,omitempty"` +} + +// UpstreamTemplate upstream template item settings. It defines the Upstream URL of the incoming requests. +// The template defines the pattern of the event, the hub or the category of the incoming request that +// matches current URL template. +type UpstreamTemplate struct { + // HubPattern - Gets or sets the matching pattern for hub names. If not set, it matches any hub. + // There are 3 kind of patterns supported: + // 1. "*", it to matches any hub name + // 2. Combine multiple hubs with ",", for example "hub1,hub2", it matches "hub1" and "hub2" + // 3. The single hub name, for example, "hub1", it matches "hub1" + HubPattern *string `json:"hubPattern,omitempty"` + // EventPattern - Gets or sets the matching pattern for event names. If not set, it matches any event. + // There are 3 kind of patterns supported: + // 1. "*", it to matches any event name + // 2. Combine multiple events with ",", for example "connect,disconnect", it matches event "connect" and "disconnect" + // 3. The single event name, for example, "connect", it matches "connect" + EventPattern *string `json:"eventPattern,omitempty"` + // CategoryPattern - Gets or sets the matching pattern for category names. If not set, it matches any category. + // There are 3 kind of patterns supported: + // 1. "*", it to matches any category name + // 2. Combine multiple categories with ",", for example "connections,messages", it matches category "connections" and "messages" + // 3. The single category name, for example, "connections", it matches the category "connections" + CategoryPattern *string `json:"categoryPattern,omitempty"` + // URLTemplate - Gets or sets the Upstream URL template. You can use 3 predefined parameters {hub}, {category} {event} inside the template, the value of the Upstream URL is dynamically calculated when the client request comes in. + // For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`, with a client request from hub `chat` connects, it will first POST to this URL: `http://example.com/chat/api/connect`. + URLTemplate *string `json:"urlTemplate,omitempty"` + // Auth - Gets or sets the auth settings for an upstream. If not set, no auth is used for upstream messages. + Auth *UpstreamAuthSettings `json:"auth,omitempty"` +} + +// Usage object that describes a specific usage of the resources. +type Usage struct { + // ID - Fully qualified ARM resource id + ID *string `json:"id,omitempty"` + // CurrentValue - Current value for the usage quota. + CurrentValue *int64 `json:"currentValue,omitempty"` + // Limit - The maximum permitted value for the usage quota. If there is no limit, this value will be -1. + Limit *int64 `json:"limit,omitempty"` + // Name - Localizable String object containing the name and a localized value. + Name *UsageName `json:"name,omitempty"` + // Unit - Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. + Unit *string `json:"unit,omitempty"` +} + +// UsageList object that includes an array of the resource usages and a possible link for next set. +type UsageList struct { + autorest.Response `json:"-"` + // Value - List of the resource usages + Value *[]Usage `json:"value,omitempty"` + // NextLink - The URL the client should use to fetch the next page (per server side paging). + // It's null for now, added for future use. + NextLink *string `json:"nextLink,omitempty"` +} + +// UsageListIterator provides access to a complete listing of Usage values. +type UsageListIterator struct { + i int + page UsageListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *UsageListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsageListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *UsageListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter UsageListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter UsageListIterator) Response() UsageList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter UsageListIterator) Value() Usage { + if !iter.page.NotDone() { + return Usage{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the UsageListIterator type. +func NewUsageListIterator(page UsageListPage) UsageListIterator { + return UsageListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ul UsageList) IsEmpty() bool { + return ul.Value == nil || len(*ul.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ul UsageList) hasNextLink() bool { + return ul.NextLink != nil && len(*ul.NextLink) != 0 +} + +// usageListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ul UsageList) usageListPreparer(ctx context.Context) (*http.Request, error) { + if !ul.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ul.NextLink))) +} + +// UsageListPage contains a page of Usage values. +type UsageListPage struct { + fn func(context.Context, UsageList) (UsageList, error) + ul UsageList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *UsageListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsageListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ul) + if err != nil { + return err + } + page.ul = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *UsageListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page UsageListPage) NotDone() bool { + return !page.ul.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page UsageListPage) Response() UsageList { + return page.ul +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page UsageListPage) Values() []Usage { + if page.ul.IsEmpty() { + return nil + } + return *page.ul.Value +} + +// Creates a new instance of the UsageListPage type. +func NewUsageListPage(cur UsageList, getNextPage func(context.Context, UsageList) (UsageList, error)) UsageListPage { + return UsageListPage{ + fn: getNextPage, + ul: cur, + } +} + +// UsageName localizable String object containing the name and a localized value. +type UsageName struct { + // Value - The identifier of the usage. + Value *string `json:"value,omitempty"` + // LocalizedValue - Localized name of the usage. + LocalizedValue *string `json:"localizedValue,omitempty"` +} + +// UserAssignedIdentityProperty properties of user assigned identity. +type UserAssignedIdentityProperty struct { + // PrincipalID - READ-ONLY; Get the principal id for the user assigned identity + PrincipalID *string `json:"principalId,omitempty"` + // ClientID - READ-ONLY; Get the client id for the user assigned identity + ClientID *string `json:"clientId,omitempty"` +} diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/operations.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/operations.go new file mode 100644 index 000000000000..02d1903ef441 --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/operations.go @@ -0,0 +1,140 @@ +package signalr + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationsClient is the REST API for Azure SignalR Service +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists all of the available REST API operations of the Microsoft.SignalRService provider. +func (client OperationsClient) List(ctx context.Context) (result OperationListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.ol.Response.Response != nil { + sc = result.ol.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ol.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "List", resp, "Failure sending request") + return + } + + result.ol, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "List", resp, "Failure responding to request") + return + } + if result.ol.hasNextLink() && result.ol.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.SignalRService/operations"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client OperationsClient) listNextResults(ctx context.Context, lastResults OperationList) (result OperationList, err error) { + req, err := lastResults.operationListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "signalr.OperationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "signalr.OperationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/privateendpointconnections.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/privateendpointconnections.go new file mode 100644 index 000000000000..6f43aa0964c0 --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/privateendpointconnections.go @@ -0,0 +1,393 @@ +package signalr + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateEndpointConnectionsClient is the REST API for Azure SignalR Service +type PrivateEndpointConnectionsClient struct { + BaseClient +} + +// NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client. +func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient { + return NewPrivateEndpointConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient { + return PrivateEndpointConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Delete delete the specified private endpoint connection +// Parameters: +// privateEndpointConnectionName - the name of the private endpoint connection +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, privateEndpointConnectionName string, resourceGroupName string, resourceName string) (result PrivateEndpointConnectionsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, privateEndpointConnectionName, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, privateEndpointConnectionName string, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (future PrivateEndpointConnectionsDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get the specified private endpoint connection +// Parameters: +// privateEndpointConnectionName - the name of the private endpoint connection +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, privateEndpointConnectionName string, resourceGroupName string, resourceName string) (result PrivateEndpointConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, privateEndpointConnectionName, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, privateEndpointConnectionName string, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list private endpoint connections +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result PrivateEndpointConnectionListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.List") + defer func() { + sc := -1 + if result.pecl.Response.Response != nil { + sc = result.pecl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.pecl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "List", resp, "Failure sending request") + return + } + + result.pecl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return + } + if result.pecl.hasNextLink() && result.pecl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PrivateEndpointConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) ListResponder(resp *http.Response) (result PrivateEndpointConnectionList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client PrivateEndpointConnectionsClient) listNextResults(ctx context.Context, lastResults PrivateEndpointConnectionList) (result PrivateEndpointConnectionList, err error) { + req, err := lastResults.privateEndpointConnectionListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PrivateEndpointConnectionsClient) ListComplete(ctx context.Context, resourceGroupName string, resourceName string) (result PrivateEndpointConnectionListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, resourceName) + return +} + +// Update update the state of specified private endpoint connection +// Parameters: +// privateEndpointConnectionName - the name of the private endpoint connection +// parameters - the resource of private endpoint and its properties +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client PrivateEndpointConnectionsClient) Update(ctx context.Context, privateEndpointConnectionName string, parameters PrivateEndpointConnection, resourceGroupName string, resourceName string) (result PrivateEndpointConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, privateEndpointConnectionName, parameters, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateEndpointConnectionsClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client PrivateEndpointConnectionsClient) UpdatePreparer(ctx context.Context, privateEndpointConnectionName string, parameters PrivateEndpointConnection, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.SystemData = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) UpdateResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/privatelinkresources.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/privatelinkresources.go new file mode 100644 index 000000000000..d0bdb16a83f5 --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/privatelinkresources.go @@ -0,0 +1,151 @@ +package signalr + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateLinkResourcesClient is the REST API for Azure SignalR Service +type PrivateLinkResourcesClient struct { + BaseClient +} + +// NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client. +func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient { + return NewPrivateLinkResourcesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient { + return PrivateLinkResourcesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List get the private link resources that need to be created for a resource. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result PrivateLinkResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkResourcesClient.List") + defer func() { + sc := -1 + if result.plrl.Response.Response != nil { + sc = result.plrl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateLinkResourcesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.plrl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.PrivateLinkResourcesClient", "List", resp, "Failure sending request") + return + } + + result.plrl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return + } + if result.plrl.hasNextLink() && result.plrl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PrivateLinkResourcesClient) ListPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateLinkResources", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkResourcesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PrivateLinkResourcesClient) ListResponder(resp *http.Response) (result PrivateLinkResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client PrivateLinkResourcesClient) listNextResults(ctx context.Context, lastResults PrivateLinkResourceList) (result PrivateLinkResourceList, err error) { + req, err := lastResults.privateLinkResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "signalr.PrivateLinkResourcesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "signalr.PrivateLinkResourcesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.PrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client PrivateLinkResourcesClient) ListComplete(ctx context.Context, resourceGroupName string, resourceName string) (result PrivateLinkResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkResourcesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, resourceName) + return +} diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/sharedprivatelinkresources.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/sharedprivatelinkresources.go new file mode 100644 index 000000000000..99e168d04960 --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/sharedprivatelinkresources.go @@ -0,0 +1,405 @@ +package signalr + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SharedPrivateLinkResourcesClient is the REST API for Azure SignalR Service +type SharedPrivateLinkResourcesClient struct { + BaseClient +} + +// NewSharedPrivateLinkResourcesClient creates an instance of the SharedPrivateLinkResourcesClient client. +func NewSharedPrivateLinkResourcesClient(subscriptionID string) SharedPrivateLinkResourcesClient { + return NewSharedPrivateLinkResourcesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSharedPrivateLinkResourcesClientWithBaseURI creates an instance of the SharedPrivateLinkResourcesClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewSharedPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) SharedPrivateLinkResourcesClient { + return SharedPrivateLinkResourcesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or update a shared private link resource +// Parameters: +// sharedPrivateLinkResourceName - the name of the shared private link resource +// parameters - the shared private link resource +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client SharedPrivateLinkResourcesClient) CreateOrUpdate(ctx context.Context, sharedPrivateLinkResourceName string, parameters SharedPrivateLinkResource, resourceGroupName string, resourceName string) (result SharedPrivateLinkResourcesCreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedPrivateLinkResourcesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.SharedPrivateLinkResourceProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.SharedPrivateLinkResourceProperties.GroupID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.SharedPrivateLinkResourceProperties.PrivateLinkResourceID", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("signalr.SharedPrivateLinkResourcesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, sharedPrivateLinkResourceName, parameters, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "CreateOrUpdate", nil, "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client SharedPrivateLinkResourcesClient) CreateOrUpdatePreparer(ctx context.Context, sharedPrivateLinkResourceName string, parameters SharedPrivateLinkResource, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "sharedPrivateLinkResourceName": autorest.Encode("path", sharedPrivateLinkResourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.SystemData = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client SharedPrivateLinkResourcesClient) CreateOrUpdateSender(req *http.Request) (future SharedPrivateLinkResourcesCreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client SharedPrivateLinkResourcesClient) CreateOrUpdateResponder(resp *http.Response) (result SharedPrivateLinkResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete delete the specified shared private link resource +// Parameters: +// sharedPrivateLinkResourceName - the name of the shared private link resource +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client SharedPrivateLinkResourcesClient) Delete(ctx context.Context, sharedPrivateLinkResourceName string, resourceGroupName string, resourceName string) (result SharedPrivateLinkResourcesDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedPrivateLinkResourcesClient.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, sharedPrivateLinkResourceName, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client SharedPrivateLinkResourcesClient) DeletePreparer(ctx context.Context, sharedPrivateLinkResourceName string, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "sharedPrivateLinkResourceName": autorest.Encode("path", sharedPrivateLinkResourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client SharedPrivateLinkResourcesClient) DeleteSender(req *http.Request) (future SharedPrivateLinkResourcesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client SharedPrivateLinkResourcesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get the specified shared private link resource +// Parameters: +// sharedPrivateLinkResourceName - the name of the shared private link resource +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client SharedPrivateLinkResourcesClient) Get(ctx context.Context, sharedPrivateLinkResourceName string, resourceGroupName string, resourceName string) (result SharedPrivateLinkResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedPrivateLinkResourcesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, sharedPrivateLinkResourceName, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client SharedPrivateLinkResourcesClient) GetPreparer(ctx context.Context, sharedPrivateLinkResourceName string, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "sharedPrivateLinkResourceName": autorest.Encode("path", sharedPrivateLinkResourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client SharedPrivateLinkResourcesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client SharedPrivateLinkResourcesClient) GetResponder(resp *http.Response) (result SharedPrivateLinkResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list shared private link resources +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client SharedPrivateLinkResourcesClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result SharedPrivateLinkResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedPrivateLinkResourcesClient.List") + defer func() { + sc := -1 + if result.splrl.Response.Response != nil { + sc = result.splrl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.splrl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "List", resp, "Failure sending request") + return + } + + result.splrl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "List", resp, "Failure responding to request") + return + } + if result.splrl.hasNextLink() && result.splrl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SharedPrivateLinkResourcesClient) ListPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SharedPrivateLinkResourcesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SharedPrivateLinkResourcesClient) ListResponder(resp *http.Response) (result SharedPrivateLinkResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client SharedPrivateLinkResourcesClient) listNextResults(ctx context.Context, lastResults SharedPrivateLinkResourceList) (result SharedPrivateLinkResourceList, err error) { + req, err := lastResults.sharedPrivateLinkResourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.SharedPrivateLinkResourcesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client SharedPrivateLinkResourcesClient) ListComplete(ctx context.Context, resourceGroupName string, resourceName string) (result SharedPrivateLinkResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SharedPrivateLinkResourcesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, resourceName) + return +} diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/signalr.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/signalr.go new file mode 100644 index 000000000000..9335e03aff2b --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/signalr.go @@ -0,0 +1,912 @@ +package signalr + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// Client is the REST API for Azure SignalR Service +type Client struct { + BaseClient +} + +// NewClient creates an instance of the Client client. +func NewClient(subscriptionID string) Client { + return NewClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewClientWithBaseURI creates an instance of the Client client using a custom endpoint. Use this when interacting +// with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewClientWithBaseURI(baseURI string, subscriptionID string) Client { + return Client{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CheckNameAvailability checks that the resource name is valid and is not already in use. +// Parameters: +// location - the region +// parameters - parameters supplied to the operation. +func (client Client) CheckNameAvailability(ctx context.Context, location string, parameters NameAvailabilityParameters) (result NameAvailability, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.CheckNameAvailability") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Type", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("signalr.Client", "CheckNameAvailability", err.Error()) + } + + req, err := client.CheckNameAvailabilityPreparer(ctx, location, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "CheckNameAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckNameAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.Client", "CheckNameAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckNameAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "CheckNameAvailability", resp, "Failure responding to request") + return + } + + return +} + +// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request. +func (client Client) CheckNameAvailabilityPreparer(ctx context.Context, location string, parameters NameAvailabilityParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client Client) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always +// closes the http.Response Body. +func (client Client) CheckNameAvailabilityResponder(resp *http.Response) (result NameAvailability, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateOrUpdate create or update a resource. +// Parameters: +// parameters - parameters for the create or update operation +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client Client) CreateOrUpdate(ctx context.Context, parameters ResourceType, resourceGroupName string, resourceName string) (result CreateOrUpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.CreateOrUpdate") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("signalr.Client", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, parameters, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = client.CreateOrUpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "CreateOrUpdate", nil, "Failure sending request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client Client) CreateOrUpdatePreparer(ctx context.Context, parameters ResourceType, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.SystemData = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client Client) CreateOrUpdateSender(req *http.Request) (future CreateOrUpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client Client) CreateOrUpdateResponder(resp *http.Response) (result ResourceType, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete operation to delete a resource. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client Client) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result DeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.Delete") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "Delete", nil, "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client Client) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client Client) DeleteSender(req *http.Request) (future DeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get the resource and its properties. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client Client) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ResourceType, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.Client", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client Client) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client Client) GetResponder(resp *http.Response) (result ResourceType, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup handles requests to list all resources in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListByResourceGroup") + defer func() { + sc := -1 + if result.rl.Response.Response != nil { + sc = result.rl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.rl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.Client", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.rl, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.rl.hasNextLink() && result.rl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client Client) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client Client) ListByResourceGroupResponder(resp *http.Response) (result ResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client Client) listByResourceGroupNextResults(ctx context.Context, lastResults ResourceList) (result ResourceList, err error) { + req, err := lastResults.resourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "signalr.Client", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "signalr.Client", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client Client) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListBySubscription handles requests to list all resources in a subscription. +func (client Client) ListBySubscription(ctx context.Context) (result ResourceListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListBySubscription") + defer func() { + sc := -1 + if result.rl.Response.Response != nil { + sc = result.rl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.rl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.Client", "ListBySubscription", resp, "Failure sending request") + return + } + + result.rl, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "ListBySubscription", resp, "Failure responding to request") + return + } + if result.rl.hasNextLink() && result.rl.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client Client) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/signalR", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client Client) ListBySubscriptionResponder(resp *http.Response) (result ResourceList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client Client) listBySubscriptionNextResults(ctx context.Context, lastResults ResourceList) (result ResourceList, err error) { + req, err := lastResults.resourceListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "signalr.Client", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "signalr.Client", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client Client) ListBySubscriptionComplete(ctx context.Context) (result ResourceListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListBySubscription") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListBySubscription(ctx) + return +} + +// ListKeys get the access keys of the resource. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client Client) ListKeys(ctx context.Context, resourceGroupName string, resourceName string) (result Keys, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListKeys") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListKeysPreparer(ctx, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "ListKeys", nil, "Failure preparing request") + return + } + + resp, err := client.ListKeysSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.Client", "ListKeys", resp, "Failure sending request") + return + } + + result, err = client.ListKeysResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "ListKeys", resp, "Failure responding to request") + return + } + + return +} + +// ListKeysPreparer prepares the ListKeys request. +func (client Client) ListKeysPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListKeysSender sends the ListKeys request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ListKeysSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListKeysResponder handles the response to the ListKeys request. The method always +// closes the http.Response Body. +func (client Client) ListKeysResponder(resp *http.Response) (result Keys, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// RegenerateKey regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the +// same time. +// Parameters: +// parameters - parameter that describes the Regenerate Key Operation. +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client Client) RegenerateKey(ctx context.Context, parameters RegenerateKeyParameters, resourceGroupName string, resourceName string) (result RegenerateKeyFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.RegenerateKey") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RegenerateKeyPreparer(ctx, parameters, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "RegenerateKey", nil, "Failure preparing request") + return + } + + result, err = client.RegenerateKeySender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "RegenerateKey", nil, "Failure sending request") + return + } + + return +} + +// RegenerateKeyPreparer prepares the RegenerateKey request. +func (client Client) RegenerateKeyPreparer(ctx context.Context, parameters RegenerateKeyParameters, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RegenerateKeySender sends the RegenerateKey request. The method will close the +// http.Response Body if it receives an error. +func (client Client) RegenerateKeySender(req *http.Request) (future RegenerateKeyFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// RegenerateKeyResponder handles the response to the RegenerateKey request. The method always +// closes the http.Response Body. +func (client Client) RegenerateKeyResponder(resp *http.Response) (result Keys, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Restart operation to restart a resource. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client Client) Restart(ctx context.Context, resourceGroupName string, resourceName string) (result RestartFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.Restart") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RestartPreparer(ctx, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "Restart", nil, "Failure preparing request") + return + } + + result, err = client.RestartSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "Restart", nil, "Failure sending request") + return + } + + return +} + +// RestartPreparer prepares the Restart request. +func (client Client) RestartPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RestartSender sends the Restart request. The method will close the +// http.Response Body if it receives an error. +func (client Client) RestartSender(req *http.Request) (future RestartFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// RestartResponder handles the response to the Restart request. The method always +// closes the http.Response Body. +func (client Client) RestartResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Update operation to update an exiting resource. +// Parameters: +// parameters - parameters for the update operation +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// resourceName - the name of the resource. +func (client Client) Update(ctx context.Context, parameters ResourceType, resourceGroupName string, resourceName string) (result UpdateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.Update") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, parameters, resourceGroupName, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "Update", nil, "Failure preparing request") + return + } + + result, err = client.UpdateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.Client", "Update", nil, "Failure sending request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client Client) UpdatePreparer(ctx context.Context, parameters ResourceType, resourceGroupName string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.SystemData = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client Client) UpdateSender(req *http.Request) (future UpdateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client Client) UpdateResponder(resp *http.Response) (result ResourceType, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/signalrapi/interfaces.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/signalrapi/interfaces.go new file mode 100644 index 000000000000..af8fee7122b9 --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/signalrapi/interfaces.go @@ -0,0 +1,76 @@ +package signalrapi + +// 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. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2021-04-01-preview/signalr" +) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result signalr.OperationListPage, err error) + ListComplete(ctx context.Context) (result signalr.OperationListIterator, err error) +} + +var _ OperationsClientAPI = (*signalr.OperationsClient)(nil) + +// ClientAPI contains the set of methods on the Client type. +type ClientAPI interface { + CheckNameAvailability(ctx context.Context, location string, parameters signalr.NameAvailabilityParameters) (result signalr.NameAvailability, err error) + CreateOrUpdate(ctx context.Context, parameters signalr.ResourceType, resourceGroupName string, resourceName string) (result signalr.CreateOrUpdateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, resourceName string) (result signalr.DeleteFuture, err error) + Get(ctx context.Context, resourceGroupName string, resourceName string) (result signalr.ResourceType, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result signalr.ResourceListPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result signalr.ResourceListIterator, err error) + ListBySubscription(ctx context.Context) (result signalr.ResourceListPage, err error) + ListBySubscriptionComplete(ctx context.Context) (result signalr.ResourceListIterator, err error) + ListKeys(ctx context.Context, resourceGroupName string, resourceName string) (result signalr.Keys, err error) + RegenerateKey(ctx context.Context, parameters signalr.RegenerateKeyParameters, resourceGroupName string, resourceName string) (result signalr.RegenerateKeyFuture, err error) + Restart(ctx context.Context, resourceGroupName string, resourceName string) (result signalr.RestartFuture, err error) + Update(ctx context.Context, parameters signalr.ResourceType, resourceGroupName string, resourceName string) (result signalr.UpdateFuture, err error) +} + +var _ ClientAPI = (*signalr.Client)(nil) + +// UsagesClientAPI contains the set of methods on the UsagesClient type. +type UsagesClientAPI interface { + List(ctx context.Context, location string) (result signalr.UsageListPage, err error) + ListComplete(ctx context.Context, location string) (result signalr.UsageListIterator, err error) +} + +var _ UsagesClientAPI = (*signalr.UsagesClient)(nil) + +// PrivateEndpointConnectionsClientAPI contains the set of methods on the PrivateEndpointConnectionsClient type. +type PrivateEndpointConnectionsClientAPI interface { + Delete(ctx context.Context, privateEndpointConnectionName string, resourceGroupName string, resourceName string) (result signalr.PrivateEndpointConnectionsDeleteFuture, err error) + Get(ctx context.Context, privateEndpointConnectionName string, resourceGroupName string, resourceName string) (result signalr.PrivateEndpointConnection, err error) + List(ctx context.Context, resourceGroupName string, resourceName string) (result signalr.PrivateEndpointConnectionListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, resourceName string) (result signalr.PrivateEndpointConnectionListIterator, err error) + Update(ctx context.Context, privateEndpointConnectionName string, parameters signalr.PrivateEndpointConnection, resourceGroupName string, resourceName string) (result signalr.PrivateEndpointConnection, err error) +} + +var _ PrivateEndpointConnectionsClientAPI = (*signalr.PrivateEndpointConnectionsClient)(nil) + +// PrivateLinkResourcesClientAPI contains the set of methods on the PrivateLinkResourcesClient type. +type PrivateLinkResourcesClientAPI interface { + List(ctx context.Context, resourceGroupName string, resourceName string) (result signalr.PrivateLinkResourceListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, resourceName string) (result signalr.PrivateLinkResourceListIterator, err error) +} + +var _ PrivateLinkResourcesClientAPI = (*signalr.PrivateLinkResourcesClient)(nil) + +// SharedPrivateLinkResourcesClientAPI contains the set of methods on the SharedPrivateLinkResourcesClient type. +type SharedPrivateLinkResourcesClientAPI interface { + CreateOrUpdate(ctx context.Context, sharedPrivateLinkResourceName string, parameters signalr.SharedPrivateLinkResource, resourceGroupName string, resourceName string) (result signalr.SharedPrivateLinkResourcesCreateOrUpdateFuture, err error) + Delete(ctx context.Context, sharedPrivateLinkResourceName string, resourceGroupName string, resourceName string) (result signalr.SharedPrivateLinkResourcesDeleteFuture, err error) + Get(ctx context.Context, sharedPrivateLinkResourceName string, resourceGroupName string, resourceName string) (result signalr.SharedPrivateLinkResource, err error) + List(ctx context.Context, resourceGroupName string, resourceName string) (result signalr.SharedPrivateLinkResourceListPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, resourceName string) (result signalr.SharedPrivateLinkResourceListIterator, err error) +} + +var _ SharedPrivateLinkResourcesClientAPI = (*signalr.SharedPrivateLinkResourcesClient)(nil) diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/usages.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/usages.go new file mode 100644 index 000000000000..b38e95708fcb --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/usages.go @@ -0,0 +1,147 @@ +package signalr + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// UsagesClient is the REST API for Azure SignalR Service +type UsagesClient struct { + BaseClient +} + +// NewUsagesClient creates an instance of the UsagesClient client. +func NewUsagesClient(subscriptionID string) UsagesClient { + return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient { + return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List list resource usage quotas by location. +// Parameters: +// location - the location like "eastus" +func (client UsagesClient) List(ctx context.Context, location string) (result UsageListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsagesClient.List") + defer func() { + sc := -1 + if result.ul.Response.Response != nil { + sc = result.ul.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, location) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ul.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "List", resp, "Failure sending request") + return + } + + result.ul, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "List", resp, "Failure responding to request") + return + } + if result.ul.hasNextLink() && result.ul.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client UsagesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-04-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client UsagesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client UsagesClient) ListResponder(resp *http.Response) (result UsageList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client UsagesClient) listNextResults(ctx context.Context, lastResults UsageList) (result UsageList, err error) { + req, err := lastResults.usageListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "signalr.UsagesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "signalr.UsagesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "signalr.UsagesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client UsagesClient) ListComplete(ctx context.Context, location string) (result UsageListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsagesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, location) + return +} diff --git a/services/preview/signalr/mgmt/2021-04-01-preview/signalr/version.go b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/version.go new file mode 100644 index 000000000000..5e6219a92581 --- /dev/null +++ b/services/preview/signalr/mgmt/2021-04-01-preview/signalr/version.go @@ -0,0 +1,19 @@ +package signalr + +import "github.com/Azure/azure-sdk-for-go/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + Version() + " signalr/2021-04-01-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} From 0a4357c1e74aa1d61f051d581a6a1c0a6cc76af1 Mon Sep 17 00:00:00 2001 From: yupwei68 Date: Wed, 14 Apr 2021 06:47:59 +0000 Subject: [PATCH 3/4] Generated from specification/storage/resource-manager/readme.md tag package-2021-02 (commit hash: ea5bc27ee9cadeb67767d774c82095be2420bcad) --- .../latest/storage/mgmt/storage/models.go | 5 +- .../storage/mgmt/storage/storageapi/models.go | 2 +- .../preview/storage/mgmt/storage/models.go | 5 +- .../storage/mgmt/storage/storageapi/models.go | 2 +- .../mgmt/2021-02-01/storage/CHANGELOG.md | 5 + .../mgmt/2021-02-01/storage/accounts.go | 1441 +++++ .../mgmt/2021-02-01/storage/blobcontainers.go | 1437 +++++ .../storage/blobinventorypolicies.go | 411 ++ .../mgmt/2021-02-01/storage/blobservices.go | 344 ++ .../storage/mgmt/2021-02-01/storage/client.go | 41 + .../2021-02-01/storage/deletedaccounts.go | 236 + .../2021-02-01/storage/encryptionscopes.go | 469 ++ .../storage/mgmt/2021-02-01/storage/enums.go | 863 +++ .../mgmt/2021-02-01/storage/fileservices.go | 323 ++ .../mgmt/2021-02-01/storage/fileshares.go | 703 +++ .../2021-02-01/storage/managementpolicies.go | 316 ++ .../storage/mgmt/2021-02-01/storage/models.go | 4933 +++++++++++++++++ .../storage/objectreplicationpolicies.go | 417 ++ .../mgmt/2021-02-01/storage/operations.go | 98 + .../storage/privateendpointconnections.go | 411 ++ .../storage/privatelinkresources.go | 124 + .../storage/mgmt/2021-02-01/storage/queue.go | 571 ++ .../mgmt/2021-02-01/storage/queueservices.go | 313 ++ .../storage/mgmt/2021-02-01/storage/skus.go | 109 + .../storage/storageapi/interfaces.go | 215 + .../storage/mgmt/2021-02-01/storage/table.go | 556 ++ .../mgmt/2021-02-01/storage/tableservices.go | 313 ++ .../storage/mgmt/2021-02-01/storage/usages.go | 112 + .../mgmt/2021-02-01/storage/version.go | 19 + 29 files changed, 14790 insertions(+), 4 deletions(-) create mode 100644 services/storage/mgmt/2021-02-01/storage/CHANGELOG.md create mode 100644 services/storage/mgmt/2021-02-01/storage/accounts.go create mode 100644 services/storage/mgmt/2021-02-01/storage/blobcontainers.go create mode 100644 services/storage/mgmt/2021-02-01/storage/blobinventorypolicies.go create mode 100644 services/storage/mgmt/2021-02-01/storage/blobservices.go create mode 100644 services/storage/mgmt/2021-02-01/storage/client.go create mode 100644 services/storage/mgmt/2021-02-01/storage/deletedaccounts.go create mode 100644 services/storage/mgmt/2021-02-01/storage/encryptionscopes.go create mode 100644 services/storage/mgmt/2021-02-01/storage/enums.go create mode 100644 services/storage/mgmt/2021-02-01/storage/fileservices.go create mode 100644 services/storage/mgmt/2021-02-01/storage/fileshares.go create mode 100644 services/storage/mgmt/2021-02-01/storage/managementpolicies.go create mode 100644 services/storage/mgmt/2021-02-01/storage/models.go create mode 100644 services/storage/mgmt/2021-02-01/storage/objectreplicationpolicies.go create mode 100644 services/storage/mgmt/2021-02-01/storage/operations.go create mode 100644 services/storage/mgmt/2021-02-01/storage/privateendpointconnections.go create mode 100644 services/storage/mgmt/2021-02-01/storage/privatelinkresources.go create mode 100644 services/storage/mgmt/2021-02-01/storage/queue.go create mode 100644 services/storage/mgmt/2021-02-01/storage/queueservices.go create mode 100644 services/storage/mgmt/2021-02-01/storage/skus.go create mode 100644 services/storage/mgmt/2021-02-01/storage/storageapi/interfaces.go create mode 100644 services/storage/mgmt/2021-02-01/storage/table.go create mode 100644 services/storage/mgmt/2021-02-01/storage/tableservices.go create mode 100644 services/storage/mgmt/2021-02-01/storage/usages.go create mode 100644 services/storage/mgmt/2021-02-01/storage/version.go diff --git a/profiles/latest/storage/mgmt/storage/models.go b/profiles/latest/storage/mgmt/storage/models.go index 20927ee808dc..d1bf77613d5c 100644 --- a/profiles/latest/storage/mgmt/storage/models.go +++ b/profiles/latest/storage/mgmt/storage/models.go @@ -11,7 +11,7 @@ package storage import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-01-01/storage" + original "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage" ) const ( @@ -511,6 +511,8 @@ type Identity = original.Identity type ImmutabilityPolicy = original.ImmutabilityPolicy type ImmutabilityPolicyProperties = original.ImmutabilityPolicyProperties type ImmutabilityPolicyProperty = original.ImmutabilityPolicyProperty +type KeyCreationTime = original.KeyCreationTime +type KeyPolicy = original.KeyPolicy type KeyVaultProperties = original.KeyVaultProperties type LastAccessTimeTrackingPolicy = original.LastAccessTimeTrackingPolicy type LeaseContainerRequest = original.LeaseContainerRequest @@ -583,6 +585,7 @@ type RestorePolicyProperties = original.RestorePolicyProperties type Restriction = original.Restriction type RoutingPreference = original.RoutingPreference type SKUCapability = original.SKUCapability +type SasPolicy = original.SasPolicy type ServiceSasParameters = original.ServiceSasParameters type ServiceSpecification = original.ServiceSpecification type Sku = original.Sku diff --git a/profiles/latest/storage/mgmt/storage/storageapi/models.go b/profiles/latest/storage/mgmt/storage/storageapi/models.go index 7ed95a0291ab..0772c68efc00 100644 --- a/profiles/latest/storage/mgmt/storage/storageapi/models.go +++ b/profiles/latest/storage/mgmt/storage/storageapi/models.go @@ -8,7 +8,7 @@ package storageapi -import original "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-01-01/storage/storageapi" +import original "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage/storageapi" type AccountsClientAPI = original.AccountsClientAPI type BlobContainersClientAPI = original.BlobContainersClientAPI diff --git a/profiles/preview/storage/mgmt/storage/models.go b/profiles/preview/storage/mgmt/storage/models.go index 33020c8d09cd..059a6d9a21ff 100644 --- a/profiles/preview/storage/mgmt/storage/models.go +++ b/profiles/preview/storage/mgmt/storage/models.go @@ -11,7 +11,7 @@ package storage import ( "context" - original "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-01-01/storage" + original "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage" ) const ( @@ -511,6 +511,8 @@ type Identity = original.Identity type ImmutabilityPolicy = original.ImmutabilityPolicy type ImmutabilityPolicyProperties = original.ImmutabilityPolicyProperties type ImmutabilityPolicyProperty = original.ImmutabilityPolicyProperty +type KeyCreationTime = original.KeyCreationTime +type KeyPolicy = original.KeyPolicy type KeyVaultProperties = original.KeyVaultProperties type LastAccessTimeTrackingPolicy = original.LastAccessTimeTrackingPolicy type LeaseContainerRequest = original.LeaseContainerRequest @@ -583,6 +585,7 @@ type RestorePolicyProperties = original.RestorePolicyProperties type Restriction = original.Restriction type RoutingPreference = original.RoutingPreference type SKUCapability = original.SKUCapability +type SasPolicy = original.SasPolicy type ServiceSasParameters = original.ServiceSasParameters type ServiceSpecification = original.ServiceSpecification type Sku = original.Sku diff --git a/profiles/preview/storage/mgmt/storage/storageapi/models.go b/profiles/preview/storage/mgmt/storage/storageapi/models.go index 7ed95a0291ab..0772c68efc00 100644 --- a/profiles/preview/storage/mgmt/storage/storageapi/models.go +++ b/profiles/preview/storage/mgmt/storage/storageapi/models.go @@ -8,7 +8,7 @@ package storageapi -import original "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-01-01/storage/storageapi" +import original "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage/storageapi" type AccountsClientAPI = original.AccountsClientAPI type BlobContainersClientAPI = original.BlobContainersClientAPI diff --git a/services/storage/mgmt/2021-02-01/storage/CHANGELOG.md b/services/storage/mgmt/2021-02-01/storage/CHANGELOG.md new file mode 100644 index 000000000000..96798d91c975 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/CHANGELOG.md @@ -0,0 +1,5 @@ +Generated from https://github.com/Azure/azure-rest-api-specs/tree/ea5bc27ee9cadeb67767d774c82095be2420bcad/specification/storage/resource-manager/readme.md tag: `package-2021-02` + +Code generator @microsoft.azure/autorest.go@2.1.178 + + diff --git a/services/storage/mgmt/2021-02-01/storage/accounts.go b/services/storage/mgmt/2021-02-01/storage/accounts.go new file mode 100644 index 000000000000..0e34d4a948d5 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/accounts.go @@ -0,0 +1,1441 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AccountsClient is the the Azure Storage Management API. +type AccountsClient struct { + BaseClient +} + +// NewAccountsClient creates an instance of the AccountsClient client. +func NewAccountsClient(subscriptionID string) AccountsClient { + return NewAccountsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewAccountsClientWithBaseURI creates an instance of the AccountsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient { + return AccountsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CheckNameAvailability checks that the storage account name is valid and is not already in use. +// Parameters: +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client AccountsClient) CheckNameAvailability(ctx context.Context, accountName AccountCheckNameAvailabilityParameters) (result CheckNameAvailabilityResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.CheckNameAvailability") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "accountName.Type", Name: validation.Null, Rule: true, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "CheckNameAvailability", err.Error()) + } + + req, err := client.CheckNameAvailabilityPreparer(ctx, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckNameAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckNameAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "CheckNameAvailability", resp, "Failure responding to request") + return + } + + return +} + +// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request. +func (client AccountsClient) CheckNameAvailabilityPreparer(ctx context.Context, accountName AccountCheckNameAvailabilityParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability", pathParameters), + autorest.WithJSON(accountName), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always +// closes the http.Response Body. +func (client AccountsClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Create asynchronously creates a new storage account with the specified parameters. If an account is already created +// and a subsequent create request is issued with different properties, the account properties will be updated. If an +// account is already created and a subsequent create or update request is issued with the exact same set of +// properties, the request will succeed. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// parameters - the parameters to provide for the created account. +func (client AccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters) (result AccountsCreateFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Create") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.AccountPropertiesCreateParameters", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.AccountPropertiesCreateParameters.SasPolicy", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.AccountPropertiesCreateParameters.SasPolicy.SasExpirationPeriod", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.AccountPropertiesCreateParameters.SasPolicy.ExpirationAction", Name: validation.Null, Rule: true, Chain: nil}, + }}, + {Target: "parameters.AccountPropertiesCreateParameters.KeyPolicy", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.AccountPropertiesCreateParameters.KeyPolicy.KeyExpirationPeriodInDays", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.AccountPropertiesCreateParameters.CustomDomain", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.AccountPropertiesCreateParameters.CustomDomain.Name", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.AccountPropertiesCreateParameters.AzureFilesIdentityBasedAuthentication", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.AccountPropertiesCreateParameters.AzureFilesIdentityBasedAuthentication.ActiveDirectoryProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.AccountPropertiesCreateParameters.AzureFilesIdentityBasedAuthentication.ActiveDirectoryProperties.DomainName", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.AccountPropertiesCreateParameters.AzureFilesIdentityBasedAuthentication.ActiveDirectoryProperties.NetBiosDomainName", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.AccountPropertiesCreateParameters.AzureFilesIdentityBasedAuthentication.ActiveDirectoryProperties.ForestName", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.AccountPropertiesCreateParameters.AzureFilesIdentityBasedAuthentication.ActiveDirectoryProperties.DomainGUID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.AccountPropertiesCreateParameters.AzureFilesIdentityBasedAuthentication.ActiveDirectoryProperties.DomainSid", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.AccountPropertiesCreateParameters.AzureFilesIdentityBasedAuthentication.ActiveDirectoryProperties.AzureStorageSid", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}, + }}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Create", nil, "Failure preparing request") + return + } + + result, err = client.CreateSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Create", nil, "Failure sending request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client AccountsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) CreateSender(req *http.Request) (future AccountsCreateFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client AccountsClient) CreateResponder(resp *http.Response) (result Account, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes a storage account in Microsoft Azure. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client AccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client AccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client AccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Failover failover request can be triggered for a storage account in case of availability issues. The failover occurs +// from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will +// become primary after failover. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client AccountsClient) Failover(ctx context.Context, resourceGroupName string, accountName string) (result AccountsFailoverFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Failover") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "Failover", err.Error()) + } + + req, err := client.FailoverPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Failover", nil, "Failure preparing request") + return + } + + result, err = client.FailoverSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Failover", nil, "Failure sending request") + return + } + + return +} + +// FailoverPreparer prepares the Failover request. +func (client AccountsClient) FailoverPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// FailoverSender sends the Failover request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) FailoverSender(req *http.Request) (future AccountsFailoverFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// FailoverResponder handles the response to the Failover request. The method always +// closes the http.Response Body. +func (client AccountsClient) FailoverResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// GetProperties returns the properties for the specified storage account including but not limited to name, SKU name, +// location, and account status. The ListKeys operation should be used to retrieve storage keys. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// expand - may be used to expand the properties within account's properties. By default, data is not included +// when fetching properties. Currently we only support geoReplicationStats and blobRestoreStatus. +func (client AccountsClient) GetProperties(ctx context.Context, resourceGroupName string, accountName string, expand AccountExpand) (result Account, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.GetProperties") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "GetProperties", err.Error()) + } + + req, err := client.GetPropertiesPreparer(ctx, resourceGroupName, accountName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", nil, "Failure preparing request") + return + } + + resp, err := client.GetPropertiesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure sending request") + return + } + + result, err = client.GetPropertiesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "GetProperties", resp, "Failure responding to request") + return + } + + return +} + +// GetPropertiesPreparer prepares the GetProperties request. +func (client AccountsClient) GetPropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string, expand AccountExpand) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(string(expand)) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetPropertiesSender sends the GetProperties request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) GetPropertiesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetPropertiesResponder handles the response to the GetProperties request. The method always +// closes the http.Response Body. +func (client AccountsClient) GetPropertiesResponder(resp *http.Response) (result Account, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all the storage accounts available under the subscription. Note that storage keys are not returned; use +// the ListKeys operation for this. +func (client AccountsClient) List(ctx context.Context) (result AccountListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.List") + defer func() { + sc := -1 + if result.alr.Response.Response != nil { + sc = result.alr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.alr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure sending request") + return + } + + result.alr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "List", resp, "Failure responding to request") + return + } + if result.alr.hasNextLink() && result.alr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client AccountsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client AccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client AccountsClient) listNextResults(ctx context.Context, lastResults AccountListResult) (result AccountListResult, err error) { + req, err := lastResults.accountListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storage.AccountsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storage.AccountsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client AccountsClient) ListComplete(ctx context.Context) (result AccountListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} + +// ListAccountSAS list SAS credentials of a storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// parameters - the parameters to provide to list SAS credentials for the storage account. +func (client AccountsClient) ListAccountSAS(ctx context.Context, resourceGroupName string, accountName string, parameters AccountSasParameters) (result ListAccountSasResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListAccountSAS") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.SharedAccessExpiryTime", Name: validation.Null, Rule: true, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "ListAccountSAS", err.Error()) + } + + req, err := client.ListAccountSASPreparer(ctx, resourceGroupName, accountName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", nil, "Failure preparing request") + return + } + + resp, err := client.ListAccountSASSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure sending request") + return + } + + result, err = client.ListAccountSASResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListAccountSAS", resp, "Failure responding to request") + return + } + + return +} + +// ListAccountSASPreparer prepares the ListAccountSAS request. +func (client AccountsClient) ListAccountSASPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters AccountSasParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListAccountSASSender sends the ListAccountSAS request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) ListAccountSASSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListAccountSASResponder handles the response to the ListAccountSAS request. The method always +// closes the http.Response Body. +func (client AccountsClient) ListAccountSASResponder(resp *http.Response) (result ListAccountSasResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup lists all the storage accounts available under the given resource group. Note that storage keys +// are not returned; use the ListKeys operation for this. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.alr.Response.Response != nil { + sc = result.alr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "ListByResourceGroup", err.Error()) + } + + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.alr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.alr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + return + } + if result.alr.hasNextLink() && result.alr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client AccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client AccountsClient) listByResourceGroupNextResults(ctx context.Context, lastResults AccountListResult) (result AccountListResult, err error) { + req, err := lastResults.accountListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storage.AccountsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storage.AccountsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client AccountsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AccountListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListKeys lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// expand - specifies type of the key to be listed. Possible value is kerb. +func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, expand ListKeyExpand) (result AccountListKeysResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListKeys") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "ListKeys", err.Error()) + } + + req, err := client.ListKeysPreparer(ctx, resourceGroupName, accountName, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", nil, "Failure preparing request") + return + } + + resp, err := client.ListKeysSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure sending request") + return + } + + result, err = client.ListKeysResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListKeys", resp, "Failure responding to request") + return + } + + return +} + +// ListKeysPreparer prepares the ListKeys request. +func (client AccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string, expand ListKeyExpand) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(string(expand)) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListKeysSender sends the ListKeys request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) ListKeysSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListKeysResponder handles the response to the ListKeys request. The method always +// closes the http.Response Body. +func (client AccountsClient) ListKeysResponder(resp *http.Response) (result AccountListKeysResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListServiceSAS list service SAS credentials of a specific resource. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// parameters - the parameters to provide to list service SAS credentials. +func (client AccountsClient) ListServiceSAS(ctx context.Context, resourceGroupName string, accountName string, parameters ServiceSasParameters) (result ListServiceSasResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListServiceSAS") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.CanonicalizedResource", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Identifier", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Identifier", Name: validation.MaxLength, Rule: 64, Chain: nil}}}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "ListServiceSAS", err.Error()) + } + + req, err := client.ListServiceSASPreparer(ctx, resourceGroupName, accountName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", nil, "Failure preparing request") + return + } + + resp, err := client.ListServiceSASSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure sending request") + return + } + + result, err = client.ListServiceSASResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "ListServiceSAS", resp, "Failure responding to request") + return + } + + return +} + +// ListServiceSASPreparer prepares the ListServiceSAS request. +func (client AccountsClient) ListServiceSASPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters ServiceSasParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListServiceSASSender sends the ListServiceSAS request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) ListServiceSASSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListServiceSASResponder handles the response to the ListServiceSAS request. The method always +// closes the http.Response Body. +func (client AccountsClient) ListServiceSASResponder(resp *http.Response) (result ListServiceSasResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// RegenerateKey regenerates one of the access keys or Kerberos keys for the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// regenerateKey - specifies name of the key which should be regenerated -- key1, key2, kerb1, kerb2. +func (client AccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, regenerateKey AccountRegenerateKeyParameters) (result AccountListKeysResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.RegenerateKey") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: regenerateKey, + Constraints: []validation.Constraint{{Target: "regenerateKey.KeyName", Name: validation.Null, Rule: true, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "RegenerateKey", err.Error()) + } + + req, err := client.RegenerateKeyPreparer(ctx, resourceGroupName, accountName, regenerateKey) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", nil, "Failure preparing request") + return + } + + resp, err := client.RegenerateKeySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure sending request") + return + } + + result, err = client.RegenerateKeyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RegenerateKey", resp, "Failure responding to request") + return + } + + return +} + +// RegenerateKeyPreparer prepares the RegenerateKey request. +func (client AccountsClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, accountName string, regenerateKey AccountRegenerateKeyParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey", pathParameters), + autorest.WithJSON(regenerateKey), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RegenerateKeySender sends the RegenerateKey request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) RegenerateKeySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// RegenerateKeyResponder handles the response to the RegenerateKey request. The method always +// closes the http.Response Body. +func (client AccountsClient) RegenerateKeyResponder(resp *http.Response) (result AccountListKeysResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// RestoreBlobRanges restore blobs in the specified blob ranges +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// parameters - the parameters to provide for restore blob ranges. +func (client AccountsClient) RestoreBlobRanges(ctx context.Context, resourceGroupName string, accountName string, parameters BlobRestoreParameters) (result AccountsRestoreBlobRangesFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.RestoreBlobRanges") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.TimeToRestore", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.BlobRanges", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "RestoreBlobRanges", err.Error()) + } + + req, err := client.RestoreBlobRangesPreparer(ctx, resourceGroupName, accountName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RestoreBlobRanges", nil, "Failure preparing request") + return + } + + result, err = client.RestoreBlobRangesSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RestoreBlobRanges", nil, "Failure sending request") + return + } + + return +} + +// RestoreBlobRangesPreparer prepares the RestoreBlobRanges request. +func (client AccountsClient) RestoreBlobRangesPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters BlobRestoreParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RestoreBlobRangesSender sends the RestoreBlobRanges request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) RestoreBlobRangesSender(req *http.Request) (future AccountsRestoreBlobRangesFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// RestoreBlobRangesResponder handles the response to the RestoreBlobRanges request. The method always +// closes the http.Response Body. +func (client AccountsClient) RestoreBlobRangesResponder(resp *http.Response) (result BlobRestoreStatus, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// RevokeUserDelegationKeys revoke user delegation keys. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client AccountsClient) RevokeUserDelegationKeys(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.RevokeUserDelegationKeys") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "RevokeUserDelegationKeys", err.Error()) + } + + req, err := client.RevokeUserDelegationKeysPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RevokeUserDelegationKeys", nil, "Failure preparing request") + return + } + + resp, err := client.RevokeUserDelegationKeysSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RevokeUserDelegationKeys", resp, "Failure sending request") + return + } + + result, err = client.RevokeUserDelegationKeysResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "RevokeUserDelegationKeys", resp, "Failure responding to request") + return + } + + return +} + +// RevokeUserDelegationKeysPreparer prepares the RevokeUserDelegationKeys request. +func (client AccountsClient) RevokeUserDelegationKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RevokeUserDelegationKeysSender sends the RevokeUserDelegationKeys request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) RevokeUserDelegationKeysSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// RevokeUserDelegationKeysResponder handles the response to the RevokeUserDelegationKeys request. The method always +// closes the http.Response Body. +func (client AccountsClient) RevokeUserDelegationKeysResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByClosing()) + result.Response = resp + return +} + +// Update the update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. +// It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; +// the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value +// must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This +// call does not change the storage keys for the account. If you want to change the storage account keys, use the +// regenerate keys operation. The location and name of the storage account cannot be changed after creation. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// parameters - the parameters to provide for the updated account. +func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, parameters AccountUpdateParameters) (result Account, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.AccountsClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, parameters AccountUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client AccountsClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client AccountsClient) UpdateResponder(resp *http.Response) (result Account, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/blobcontainers.go b/services/storage/mgmt/2021-02-01/storage/blobcontainers.go new file mode 100644 index 000000000000..000b65a67996 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/blobcontainers.go @@ -0,0 +1,1437 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// BlobContainersClient is the the Azure Storage Management API. +type BlobContainersClient struct { + BaseClient +} + +// NewBlobContainersClient creates an instance of the BlobContainersClient client. +func NewBlobContainersClient(subscriptionID string) BlobContainersClient { + return NewBlobContainersClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewBlobContainersClientWithBaseURI creates an instance of the BlobContainersClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewBlobContainersClientWithBaseURI(baseURI string, subscriptionID string) BlobContainersClient { + return BlobContainersClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// ClearLegalHold clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. +// ClearLegalHold clears out only the specified tags in the request. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// legalHold - the LegalHold property that will be clear from a blob container. +func (client BlobContainersClient) ClearLegalHold(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold LegalHold) (result LegalHold, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.ClearLegalHold") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: legalHold, + Constraints: []validation.Constraint{{Target: "legalHold.Tags", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "ClearLegalHold", err.Error()) + } + + req, err := client.ClearLegalHoldPreparer(ctx, resourceGroupName, accountName, containerName, legalHold) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ClearLegalHold", nil, "Failure preparing request") + return + } + + resp, err := client.ClearLegalHoldSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ClearLegalHold", resp, "Failure sending request") + return + } + + result, err = client.ClearLegalHoldResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ClearLegalHold", resp, "Failure responding to request") + return + } + + return +} + +// ClearLegalHoldPreparer prepares the ClearLegalHold request. +func (client BlobContainersClient) ClearLegalHoldPreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold LegalHold) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + legalHold.HasLegalHold = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold", pathParameters), + autorest.WithJSON(legalHold), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ClearLegalHoldSender sends the ClearLegalHold request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) ClearLegalHoldSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ClearLegalHoldResponder handles the response to the ClearLegalHold request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) ClearLegalHoldResponder(resp *http.Response) (result LegalHold, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Create creates a new container under the specified account as described by request body. The container resource +// includes metadata and properties for that container. It does not include a list of the blobs contained by the +// container. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// blobContainer - properties of the blob container to create. +func (client BlobContainersClient) Create(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer BlobContainer) (result BlobContainer, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.Create") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, containerName, blobContainer) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Create", nil, "Failure preparing request") + return + } + + resp, err := client.CreateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Create", resp, "Failure sending request") + return + } + + result, err = client.CreateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Create", resp, "Failure responding to request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client BlobContainersClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer BlobContainer) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", pathParameters), + autorest.WithJSON(blobContainer), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) CreateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) CreateResponder(resp *http.Response) (result BlobContainer, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateOrUpdateImmutabilityPolicy creates or updates an unlocked immutability policy. ETag in If-Match is honored if +// given but not required for this operation. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// parameters - the ImmutabilityPolicy Properties that will be created or updated to a blob container. +// ifMatch - the entity state (ETag) version of the immutability policy to update. A value of "*" can be used +// to apply the operation only if the immutability policy already exists. If omitted, this operation will +// always be applied. +func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, parameters *ImmutabilityPolicy, ifMatch string) (result ImmutabilityPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.CreateOrUpdateImmutabilityPolicy") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ImmutabilityPolicyProperty", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", err.Error()) + } + + req, err := client.CreateOrUpdateImmutabilityPolicyPreparer(ctx, resourceGroupName, accountName, containerName, parameters, ifMatch) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateImmutabilityPolicySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateImmutabilityPolicyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "CreateOrUpdateImmutabilityPolicy", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdateImmutabilityPolicyPreparer prepares the CreateOrUpdateImmutabilityPolicy request. +func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicyPreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, parameters *ImmutabilityPolicy, ifMatch string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "immutabilityPolicyName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if parameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(parameters)) + } + if len(ifMatch) > 0 { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithHeader("If-Match", autorest.String(ifMatch))) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateImmutabilityPolicySender sends the CreateOrUpdateImmutabilityPolicy request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateImmutabilityPolicyResponder handles the response to the CreateOrUpdateImmutabilityPolicy request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) CreateOrUpdateImmutabilityPolicyResponder(resp *http.Response) (result ImmutabilityPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes specified container under its account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +func (client BlobContainersClient) Delete(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, containerName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client BlobContainersClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// DeleteImmutabilityPolicy aborts an unlocked immutability policy. The response of delete has +// immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked +// immutability policy is not allowed, the only way is to delete the container after deleting all expired blobs inside +// the policy locked container. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// ifMatch - the entity state (ETag) version of the immutability policy to update. A value of "*" can be used +// to apply the operation only if the immutability policy already exists. If omitted, this operation will +// always be applied. +func (client BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (result ImmutabilityPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.DeleteImmutabilityPolicy") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "DeleteImmutabilityPolicy", err.Error()) + } + + req, err := client.DeleteImmutabilityPolicyPreparer(ctx, resourceGroupName, accountName, containerName, ifMatch) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "DeleteImmutabilityPolicy", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteImmutabilityPolicySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "DeleteImmutabilityPolicy", resp, "Failure sending request") + return + } + + result, err = client.DeleteImmutabilityPolicyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "DeleteImmutabilityPolicy", resp, "Failure responding to request") + return + } + + return +} + +// DeleteImmutabilityPolicyPreparer prepares the DeleteImmutabilityPolicy request. +func (client BlobContainersClient) DeleteImmutabilityPolicyPreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "immutabilityPolicyName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters), + autorest.WithHeader("If-Match", autorest.String(ifMatch))) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteImmutabilityPolicySender sends the DeleteImmutabilityPolicy request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) DeleteImmutabilityPolicySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteImmutabilityPolicyResponder handles the response to the DeleteImmutabilityPolicy request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) DeleteImmutabilityPolicyResponder(resp *http.Response) (result ImmutabilityPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ExtendImmutabilityPolicy extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only +// action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// ifMatch - the entity state (ETag) version of the immutability policy to update. A value of "*" can be used +// to apply the operation only if the immutability policy already exists. If omitted, this operation will +// always be applied. +// parameters - the ImmutabilityPolicy Properties that will be extended for a blob container. +func (client BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string, parameters *ImmutabilityPolicy) (result ImmutabilityPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.ExtendImmutabilityPolicy") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ImmutabilityPolicyProperty", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "ExtendImmutabilityPolicy", err.Error()) + } + + req, err := client.ExtendImmutabilityPolicyPreparer(ctx, resourceGroupName, accountName, containerName, ifMatch, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ExtendImmutabilityPolicy", nil, "Failure preparing request") + return + } + + resp, err := client.ExtendImmutabilityPolicySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ExtendImmutabilityPolicy", resp, "Failure sending request") + return + } + + result, err = client.ExtendImmutabilityPolicyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "ExtendImmutabilityPolicy", resp, "Failure responding to request") + return + } + + return +} + +// ExtendImmutabilityPolicyPreparer prepares the ExtendImmutabilityPolicy request. +func (client BlobContainersClient) ExtendImmutabilityPolicyPreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string, parameters *ImmutabilityPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend", pathParameters), + autorest.WithQueryParameters(queryParameters), + autorest.WithHeader("If-Match", autorest.String(ifMatch))) + if parameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(parameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ExtendImmutabilityPolicySender sends the ExtendImmutabilityPolicy request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) ExtendImmutabilityPolicySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ExtendImmutabilityPolicyResponder handles the response to the ExtendImmutabilityPolicy request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) ExtendImmutabilityPolicyResponder(resp *http.Response) (result ImmutabilityPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Get gets properties of a specified container. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +func (client BlobContainersClient) Get(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result BlobContainer, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName, containerName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client BlobContainersClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) GetResponder(resp *http.Response) (result BlobContainer, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetImmutabilityPolicy gets the existing immutability policy along with the corresponding ETag in response headers +// and body. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// ifMatch - the entity state (ETag) version of the immutability policy to update. A value of "*" can be used +// to apply the operation only if the immutability policy already exists. If omitted, this operation will +// always be applied. +func (client BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (result ImmutabilityPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.GetImmutabilityPolicy") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "GetImmutabilityPolicy", err.Error()) + } + + req, err := client.GetImmutabilityPolicyPreparer(ctx, resourceGroupName, accountName, containerName, ifMatch) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "GetImmutabilityPolicy", nil, "Failure preparing request") + return + } + + resp, err := client.GetImmutabilityPolicySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "GetImmutabilityPolicy", resp, "Failure sending request") + return + } + + result, err = client.GetImmutabilityPolicyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "GetImmutabilityPolicy", resp, "Failure responding to request") + return + } + + return +} + +// GetImmutabilityPolicyPreparer prepares the GetImmutabilityPolicy request. +func (client BlobContainersClient) GetImmutabilityPolicyPreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "immutabilityPolicyName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if len(ifMatch) > 0 { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithHeader("If-Match", autorest.String(ifMatch))) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetImmutabilityPolicySender sends the GetImmutabilityPolicy request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) GetImmutabilityPolicySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetImmutabilityPolicyResponder handles the response to the GetImmutabilityPolicy request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) GetImmutabilityPolicyResponder(resp *http.Response) (result ImmutabilityPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Lease the Lease Container operation establishes and manages a lock on a container for delete operations. The lock +// duration can be 15 to 60 seconds, or can be infinite. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// parameters - lease Container request body. +func (client BlobContainersClient) Lease(ctx context.Context, resourceGroupName string, accountName string, containerName string, parameters *LeaseContainerRequest) (result LeaseContainerResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.Lease") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "Lease", err.Error()) + } + + req, err := client.LeasePreparer(ctx, resourceGroupName, accountName, containerName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", nil, "Failure preparing request") + return + } + + resp, err := client.LeaseSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure sending request") + return + } + + result, err = client.LeaseResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure responding to request") + return + } + + return +} + +// LeasePreparer prepares the Lease request. +func (client BlobContainersClient) LeasePreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, parameters *LeaseContainerRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if parameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(parameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// LeaseSender sends the Lease request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) LeaseSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// LeaseResponder handles the response to the Lease request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) LeaseResponder(resp *http.Response) (result LeaseContainerResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation +// token. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// maxpagesize - optional. Specified maximum number of containers that can be included in the list. +// filter - optional. When specified, only container names starting with the filter will be listed. +// include - optional, used to include the properties for soft deleted blob containers. +func (client BlobContainersClient) List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, include ListContainersInclude) (result ListContainerItemsPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.List") + defer func() { + sc := -1 + if result.lci.Response.Response != nil { + sc = result.lci.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, accountName, maxpagesize, filter, include) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lci.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "List", resp, "Failure sending request") + return + } + + result.lci, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "List", resp, "Failure responding to request") + return + } + if result.lci.hasNextLink() && result.lci.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client BlobContainersClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, include ListContainersInclude) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(maxpagesize) > 0 { + queryParameters["$maxpagesize"] = autorest.Encode("query", maxpagesize) + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(string(include)) > 0 { + queryParameters["$include"] = autorest.Encode("query", include) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) ListResponder(resp *http.Response) (result ListContainerItems, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client BlobContainersClient) listNextResults(ctx context.Context, lastResults ListContainerItems) (result ListContainerItems, err error) { + req, err := lastResults.listContainerItemsPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storage.BlobContainersClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storage.BlobContainersClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client BlobContainersClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, include ListContainersInclude) (result ListContainerItemsIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, accountName, maxpagesize, filter, include) + return +} + +// LockImmutabilityPolicy sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is +// ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// ifMatch - the entity state (ETag) version of the immutability policy to update. A value of "*" can be used +// to apply the operation only if the immutability policy already exists. If omitted, this operation will +// always be applied. +func (client BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (result ImmutabilityPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.LockImmutabilityPolicy") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "LockImmutabilityPolicy", err.Error()) + } + + req, err := client.LockImmutabilityPolicyPreparer(ctx, resourceGroupName, accountName, containerName, ifMatch) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "LockImmutabilityPolicy", nil, "Failure preparing request") + return + } + + resp, err := client.LockImmutabilityPolicySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "LockImmutabilityPolicy", resp, "Failure sending request") + return + } + + result, err = client.LockImmutabilityPolicyResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "LockImmutabilityPolicy", resp, "Failure responding to request") + return + } + + return +} + +// LockImmutabilityPolicyPreparer prepares the LockImmutabilityPolicy request. +func (client BlobContainersClient) LockImmutabilityPolicyPreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock", pathParameters), + autorest.WithQueryParameters(queryParameters), + autorest.WithHeader("If-Match", autorest.String(ifMatch))) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// LockImmutabilityPolicySender sends the LockImmutabilityPolicy request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) LockImmutabilityPolicySender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// LockImmutabilityPolicyResponder handles the response to the LockImmutabilityPolicy request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) LockImmutabilityPolicyResponder(resp *http.Response) (result ImmutabilityPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// SetLegalHold sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an +// append pattern and does not clear out the existing tags that are not specified in the request. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// legalHold - the LegalHold property that will be set to a blob container. +func (client BlobContainersClient) SetLegalHold(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold LegalHold) (result LegalHold, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.SetLegalHold") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: legalHold, + Constraints: []validation.Constraint{{Target: "legalHold.Tags", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "SetLegalHold", err.Error()) + } + + req, err := client.SetLegalHoldPreparer(ctx, resourceGroupName, accountName, containerName, legalHold) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "SetLegalHold", nil, "Failure preparing request") + return + } + + resp, err := client.SetLegalHoldSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "SetLegalHold", resp, "Failure sending request") + return + } + + result, err = client.SetLegalHoldResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "SetLegalHold", resp, "Failure responding to request") + return + } + + return +} + +// SetLegalHoldPreparer prepares the SetLegalHold request. +func (client BlobContainersClient) SetLegalHoldPreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold LegalHold) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + legalHold.HasLegalHold = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold", pathParameters), + autorest.WithJSON(legalHold), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SetLegalHoldSender sends the SetLegalHold request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) SetLegalHoldSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// SetLegalHoldResponder handles the response to the SetLegalHold request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) SetLegalHoldResponder(resp *http.Response) (result LegalHold, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Update updates container properties as specified in request body. Properties not mentioned in the request will be +// unchanged. Update fails if the specified container doesn't already exist. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// blobContainer - properties to update for the blob container. +func (client BlobContainersClient) Update(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer BlobContainer) (result BlobContainer, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, containerName, blobContainer) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client BlobContainersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer BlobContainer) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", pathParameters), + autorest.WithJSON(blobContainer), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) UpdateResponder(resp *http.Response) (result BlobContainer, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/blobinventorypolicies.go b/services/storage/mgmt/2021-02-01/storage/blobinventorypolicies.go new file mode 100644 index 000000000000..1b331244726d --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/blobinventorypolicies.go @@ -0,0 +1,411 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// BlobInventoryPoliciesClient is the the Azure Storage Management API. +type BlobInventoryPoliciesClient struct { + BaseClient +} + +// NewBlobInventoryPoliciesClient creates an instance of the BlobInventoryPoliciesClient client. +func NewBlobInventoryPoliciesClient(subscriptionID string) BlobInventoryPoliciesClient { + return NewBlobInventoryPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewBlobInventoryPoliciesClientWithBaseURI creates an instance of the BlobInventoryPoliciesClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). +func NewBlobInventoryPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BlobInventoryPoliciesClient { + return BlobInventoryPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate sets the blob inventory policy to the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// properties - the blob inventory policy set to a storage account. +func (client BlobInventoryPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, properties BlobInventoryPolicy) (result BlobInventoryPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobInventoryPoliciesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: properties, + Constraints: []validation.Constraint{{Target: "properties.BlobInventoryPolicyProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "properties.BlobInventoryPolicyProperties.Policy", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "properties.BlobInventoryPolicyProperties.Policy.Enabled", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "properties.BlobInventoryPolicyProperties.Policy.Destination", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "properties.BlobInventoryPolicyProperties.Policy.Type", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "properties.BlobInventoryPolicyProperties.Policy.Rules", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("storage.BlobInventoryPoliciesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, accountName, properties) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client BlobInventoryPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, properties BlobInventoryPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "blobInventoryPolicyName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", pathParameters), + autorest.WithJSON(properties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client BlobInventoryPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client BlobInventoryPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result BlobInventoryPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the blob inventory policy associated with the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client BlobInventoryPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobInventoryPoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobInventoryPoliciesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client BlobInventoryPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "blobInventoryPolicyName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client BlobInventoryPoliciesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client BlobInventoryPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the blob inventory policy associated with the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client BlobInventoryPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result BlobInventoryPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobInventoryPoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobInventoryPoliciesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client BlobInventoryPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "blobInventoryPolicyName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client BlobInventoryPoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client BlobInventoryPoliciesClient) GetResponder(resp *http.Response) (result BlobInventoryPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets the blob inventory policy associated with the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client BlobInventoryPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result ListBlobInventoryPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobInventoryPoliciesClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobInventoryPoliciesClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobInventoryPoliciesClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client BlobInventoryPoliciesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client BlobInventoryPoliciesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client BlobInventoryPoliciesClient) ListResponder(resp *http.Response) (result ListBlobInventoryPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/blobservices.go b/services/storage/mgmt/2021-02-01/storage/blobservices.go new file mode 100644 index 000000000000..a7943e7cf062 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/blobservices.go @@ -0,0 +1,344 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// BlobServicesClient is the the Azure Storage Management API. +type BlobServicesClient struct { + BaseClient +} + +// NewBlobServicesClient creates an instance of the BlobServicesClient client. +func NewBlobServicesClient(subscriptionID string) BlobServicesClient { + return NewBlobServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewBlobServicesClientWithBaseURI creates an instance of the BlobServicesClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewBlobServicesClientWithBaseURI(baseURI string, subscriptionID string) BlobServicesClient { + return BlobServicesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// GetServiceProperties gets the properties of a storage account’s Blob service, including properties for Storage +// Analytics and CORS (Cross-Origin Resource Sharing) rules. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client BlobServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result BlobServiceProperties, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobServicesClient.GetServiceProperties") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobServicesClient", "GetServiceProperties", err.Error()) + } + + req, err := client.GetServicePropertiesPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", nil, "Failure preparing request") + return + } + + resp, err := client.GetServicePropertiesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", resp, "Failure sending request") + return + } + + result, err = client.GetServicePropertiesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return + } + + return +} + +// GetServicePropertiesPreparer prepares the GetServiceProperties request. +func (client BlobServicesClient) GetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "BlobServicesName": autorest.Encode("path", "default"), + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetServicePropertiesSender sends the GetServiceProperties request. The method will close the +// http.Response Body if it receives an error. +func (client BlobServicesClient) GetServicePropertiesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetServicePropertiesResponder handles the response to the GetServiceProperties request. The method always +// closes the http.Response Body. +func (client BlobServicesClient) GetServicePropertiesResponder(resp *http.Response) (result BlobServiceProperties, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list blob services of storage account. It returns a collection of one object named default. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client BlobServicesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result BlobServiceItems, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobServicesClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobServicesClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client BlobServicesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client BlobServicesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client BlobServicesClient) ListResponder(resp *http.Response) (result BlobServiceItems, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// SetServiceProperties sets the properties of a storage account’s Blob service, including properties for Storage +// Analytics and CORS (Cross-Origin Resource Sharing) rules. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// parameters - the properties of a storage account’s Blob service, including properties for Storage Analytics +// and CORS (Cross-Origin Resource Sharing) rules. +func (client BlobServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters BlobServiceProperties) (result BlobServiceProperties, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobServicesClient.SetServiceProperties") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.DeleteRetentionPolicy", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.DeleteRetentionPolicy.Days", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.DeleteRetentionPolicy.Days", Name: validation.InclusiveMaximum, Rule: int64(365), Chain: nil}, + {Target: "parameters.BlobServicePropertiesProperties.DeleteRetentionPolicy.Days", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + }}, + {Target: "parameters.BlobServicePropertiesProperties.ChangeFeed", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.ChangeFeed.RetentionInDays", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.ChangeFeed.RetentionInDays", Name: validation.InclusiveMaximum, Rule: int64(146000), Chain: nil}, + {Target: "parameters.BlobServicePropertiesProperties.ChangeFeed.RetentionInDays", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + }}, + {Target: "parameters.BlobServicePropertiesProperties.RestorePolicy", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.RestorePolicy.Enabled", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.BlobServicePropertiesProperties.RestorePolicy.Days", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.RestorePolicy.Days", Name: validation.InclusiveMaximum, Rule: int64(365), Chain: nil}, + {Target: "parameters.BlobServicePropertiesProperties.RestorePolicy.Days", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + }}, + {Target: "parameters.BlobServicePropertiesProperties.ContainerDeleteRetentionPolicy", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.ContainerDeleteRetentionPolicy.Days", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.ContainerDeleteRetentionPolicy.Days", Name: validation.InclusiveMaximum, Rule: int64(365), Chain: nil}, + {Target: "parameters.BlobServicePropertiesProperties.ContainerDeleteRetentionPolicy.Days", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + }}, + {Target: "parameters.BlobServicePropertiesProperties.LastAccessTimeTrackingPolicy", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.LastAccessTimeTrackingPolicy.Enable", Name: validation.Null, Rule: true, Chain: nil}}}, + }}}}}); err != nil { + return result, validation.NewError("storage.BlobServicesClient", "SetServiceProperties", err.Error()) + } + + req, err := client.SetServicePropertiesPreparer(ctx, resourceGroupName, accountName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", nil, "Failure preparing request") + return + } + + resp, err := client.SetServicePropertiesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", resp, "Failure sending request") + return + } + + result, err = client.SetServicePropertiesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return + } + + return +} + +// SetServicePropertiesPreparer prepares the SetServiceProperties request. +func (client BlobServicesClient) SetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters BlobServiceProperties) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "BlobServicesName": autorest.Encode("path", "default"), + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Sku = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SetServicePropertiesSender sends the SetServiceProperties request. The method will close the +// http.Response Body if it receives an error. +func (client BlobServicesClient) SetServicePropertiesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// SetServicePropertiesResponder handles the response to the SetServiceProperties request. The method always +// closes the http.Response Body. +func (client BlobServicesClient) SetServicePropertiesResponder(resp *http.Response) (result BlobServiceProperties, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/client.go b/services/storage/mgmt/2021-02-01/storage/client.go new file mode 100644 index 000000000000..cb5dc8282ae3 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/client.go @@ -0,0 +1,41 @@ +// Package storage implements the Azure ARM Storage service API version 2021-02-01. +// +// The Azure Storage Management API. +package storage + +// 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. + +import ( + "github.com/Azure/go-autorest/autorest" +) + +const ( + // DefaultBaseURI is the default URI used for the service Storage + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Storage. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} diff --git a/services/storage/mgmt/2021-02-01/storage/deletedaccounts.go b/services/storage/mgmt/2021-02-01/storage/deletedaccounts.go new file mode 100644 index 000000000000..109ae05dc96b --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/deletedaccounts.go @@ -0,0 +1,236 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// DeletedAccountsClient is the the Azure Storage Management API. +type DeletedAccountsClient struct { + BaseClient +} + +// NewDeletedAccountsClient creates an instance of the DeletedAccountsClient client. +func NewDeletedAccountsClient(subscriptionID string) DeletedAccountsClient { + return NewDeletedAccountsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewDeletedAccountsClientWithBaseURI creates an instance of the DeletedAccountsClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewDeletedAccountsClientWithBaseURI(baseURI string, subscriptionID string) DeletedAccountsClient { + return DeletedAccountsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get get properties of specified deleted account resource. +// Parameters: +// deletedAccountName - name of the deleted storage account. +// location - the location of the deleted storage account. +func (client DeletedAccountsClient) Get(ctx context.Context, deletedAccountName string, location string) (result DeletedAccount, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeletedAccountsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: deletedAccountName, + Constraints: []validation.Constraint{{Target: "deletedAccountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "deletedAccountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.DeletedAccountsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, deletedAccountName, location) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client DeletedAccountsClient) GetPreparer(ctx context.Context, deletedAccountName string, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deletedAccountName": autorest.Encode("path", deletedAccountName), + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client DeletedAccountsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client DeletedAccountsClient) GetResponder(resp *http.Response) (result DeletedAccount, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists deleted accounts under the subscription. +func (client DeletedAccountsClient) List(ctx context.Context) (result DeletedAccountListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeletedAccountsClient.List") + defer func() { + sc := -1 + if result.dalr.Response.Response != nil { + sc = result.dalr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.DeletedAccountsClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.dalr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "List", resp, "Failure sending request") + return + } + + result.dalr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "List", resp, "Failure responding to request") + return + } + if result.dalr.hasNextLink() && result.dalr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client DeletedAccountsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/deletedAccounts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client DeletedAccountsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client DeletedAccountsClient) ListResponder(resp *http.Response) (result DeletedAccountListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client DeletedAccountsClient) listNextResults(ctx context.Context, lastResults DeletedAccountListResult) (result DeletedAccountListResult, err error) { + req, err := lastResults.deletedAccountListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.DeletedAccountsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client DeletedAccountsClient) ListComplete(ctx context.Context) (result DeletedAccountListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeletedAccountsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx) + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/encryptionscopes.go b/services/storage/mgmt/2021-02-01/storage/encryptionscopes.go new file mode 100644 index 000000000000..3235434fc63e --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/encryptionscopes.go @@ -0,0 +1,469 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// EncryptionScopesClient is the the Azure Storage Management API. +type EncryptionScopesClient struct { + BaseClient +} + +// NewEncryptionScopesClient creates an instance of the EncryptionScopesClient client. +func NewEncryptionScopesClient(subscriptionID string) EncryptionScopesClient { + return NewEncryptionScopesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewEncryptionScopesClientWithBaseURI creates an instance of the EncryptionScopesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewEncryptionScopesClientWithBaseURI(baseURI string, subscriptionID string) EncryptionScopesClient { + return EncryptionScopesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get returns the properties for the specified encryption scope. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// encryptionScopeName - the name of the encryption scope within the specified storage account. Encryption +// scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) +// only. Every dash (-) character must be immediately preceded and followed by a letter or number. +func (client EncryptionScopesClient) Get(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string) (result EncryptionScope, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: encryptionScopeName, + Constraints: []validation.Constraint{{Target: "encryptionScopeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "encryptionScopeName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.EncryptionScopesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName, encryptionScopeName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client EncryptionScopesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "encryptionScopeName": autorest.Encode("path", encryptionScopeName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client EncryptionScopesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client EncryptionScopesClient) GetResponder(resp *http.Response) (result EncryptionScope, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all the encryption scopes available under the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client EncryptionScopesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result EncryptionScopeListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopesClient.List") + defer func() { + sc := -1 + if result.eslr.Response.Response != nil { + sc = result.eslr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.EncryptionScopesClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.eslr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "List", resp, "Failure sending request") + return + } + + result.eslr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "List", resp, "Failure responding to request") + return + } + if result.eslr.hasNextLink() && result.eslr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client EncryptionScopesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client EncryptionScopesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client EncryptionScopesClient) ListResponder(resp *http.Response) (result EncryptionScopeListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client EncryptionScopesClient) listNextResults(ctx context.Context, lastResults EncryptionScopeListResult) (result EncryptionScopeListResult, err error) { + req, err := lastResults.encryptionScopeListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client EncryptionScopesClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result EncryptionScopeListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, accountName) + return +} + +// Patch update encryption scope properties as specified in the request body. Update fails if the specified encryption +// scope does not already exist. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// encryptionScopeName - the name of the encryption scope within the specified storage account. Encryption +// scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) +// only. Every dash (-) character must be immediately preceded and followed by a letter or number. +// encryptionScope - encryption scope properties to be used for the update. +func (client EncryptionScopesClient) Patch(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope) (result EncryptionScope, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopesClient.Patch") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: encryptionScopeName, + Constraints: []validation.Constraint{{Target: "encryptionScopeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "encryptionScopeName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.EncryptionScopesClient", "Patch", err.Error()) + } + + req, err := client.PatchPreparer(ctx, resourceGroupName, accountName, encryptionScopeName, encryptionScope) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Patch", nil, "Failure preparing request") + return + } + + resp, err := client.PatchSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Patch", resp, "Failure sending request") + return + } + + result, err = client.PatchResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Patch", resp, "Failure responding to request") + return + } + + return +} + +// PatchPreparer prepares the Patch request. +func (client EncryptionScopesClient) PatchPreparer(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "encryptionScopeName": autorest.Encode("path", encryptionScopeName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", pathParameters), + autorest.WithJSON(encryptionScope), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PatchSender sends the Patch request. The method will close the +// http.Response Body if it receives an error. +func (client EncryptionScopesClient) PatchSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// PatchResponder handles the response to the Patch request. The method always +// closes the http.Response Body. +func (client EncryptionScopesClient) PatchResponder(resp *http.Response) (result EncryptionScope, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Put synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope +// is already created and a subsequent request is issued with different properties, the encryption scope properties +// will be updated per the specified request. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// encryptionScopeName - the name of the encryption scope within the specified storage account. Encryption +// scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) +// only. Every dash (-) character must be immediately preceded and followed by a letter or number. +// encryptionScope - encryption scope properties to be used for the create or update. +func (client EncryptionScopesClient) Put(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope) (result EncryptionScope, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopesClient.Put") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: encryptionScopeName, + Constraints: []validation.Constraint{{Target: "encryptionScopeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "encryptionScopeName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.EncryptionScopesClient", "Put", err.Error()) + } + + req, err := client.PutPreparer(ctx, resourceGroupName, accountName, encryptionScopeName, encryptionScope) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Put", nil, "Failure preparing request") + return + } + + resp, err := client.PutSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Put", resp, "Failure sending request") + return + } + + result, err = client.PutResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Put", resp, "Failure responding to request") + return + } + + return +} + +// PutPreparer prepares the Put request. +func (client EncryptionScopesClient) PutPreparer(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "encryptionScopeName": autorest.Encode("path", encryptionScopeName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", pathParameters), + autorest.WithJSON(encryptionScope), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PutSender sends the Put request. The method will close the +// http.Response Body if it receives an error. +func (client EncryptionScopesClient) PutSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// PutResponder handles the response to the Put request. The method always +// closes the http.Response Body. +func (client EncryptionScopesClient) PutResponder(resp *http.Response) (result EncryptionScope, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/enums.go b/services/storage/mgmt/2021-02-01/storage/enums.go new file mode 100644 index 000000000000..8dad5f099537 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/enums.go @@ -0,0 +1,863 @@ +package storage + +// 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. + +// AccessTier enumerates the values for access tier. +type AccessTier string + +const ( + // Cool ... + Cool AccessTier = "Cool" + // Hot ... + Hot AccessTier = "Hot" +) + +// PossibleAccessTierValues returns an array of possible values for the AccessTier const type. +func PossibleAccessTierValues() []AccessTier { + return []AccessTier{Cool, Hot} +} + +// AccountExpand enumerates the values for account expand. +type AccountExpand string + +const ( + // AccountExpandBlobRestoreStatus ... + AccountExpandBlobRestoreStatus AccountExpand = "blobRestoreStatus" + // AccountExpandGeoReplicationStats ... + AccountExpandGeoReplicationStats AccountExpand = "geoReplicationStats" +) + +// PossibleAccountExpandValues returns an array of possible values for the AccountExpand const type. +func PossibleAccountExpandValues() []AccountExpand { + return []AccountExpand{AccountExpandBlobRestoreStatus, AccountExpandGeoReplicationStats} +} + +// AccountStatus enumerates the values for account status. +type AccountStatus string + +const ( + // Available ... + Available AccountStatus = "available" + // Unavailable ... + Unavailable AccountStatus = "unavailable" +) + +// PossibleAccountStatusValues returns an array of possible values for the AccountStatus const type. +func PossibleAccountStatusValues() []AccountStatus { + return []AccountStatus{Available, Unavailable} +} + +// Action enumerates the values for action. +type Action string + +const ( + // Allow ... + Allow Action = "Allow" +) + +// PossibleActionValues returns an array of possible values for the Action const type. +func PossibleActionValues() []Action { + return []Action{Allow} +} + +// Action1 enumerates the values for action 1. +type Action1 string + +const ( + // Acquire ... + Acquire Action1 = "Acquire" + // Break ... + Break Action1 = "Break" + // Change ... + Change Action1 = "Change" + // Release ... + Release Action1 = "Release" + // Renew ... + Renew Action1 = "Renew" +) + +// PossibleAction1Values returns an array of possible values for the Action1 const type. +func PossibleAction1Values() []Action1 { + return []Action1{Acquire, Break, Change, Release, Renew} +} + +// BlobRestoreProgressStatus enumerates the values for blob restore progress status. +type BlobRestoreProgressStatus string + +const ( + // Complete ... + Complete BlobRestoreProgressStatus = "Complete" + // Failed ... + Failed BlobRestoreProgressStatus = "Failed" + // InProgress ... + InProgress BlobRestoreProgressStatus = "InProgress" +) + +// PossibleBlobRestoreProgressStatusValues returns an array of possible values for the BlobRestoreProgressStatus const type. +func PossibleBlobRestoreProgressStatusValues() []BlobRestoreProgressStatus { + return []BlobRestoreProgressStatus{Complete, Failed, InProgress} +} + +// Bypass enumerates the values for bypass. +type Bypass string + +const ( + // AzureServices ... + AzureServices Bypass = "AzureServices" + // Logging ... + Logging Bypass = "Logging" + // Metrics ... + Metrics Bypass = "Metrics" + // None ... + None Bypass = "None" +) + +// PossibleBypassValues returns an array of possible values for the Bypass const type. +func PossibleBypassValues() []Bypass { + return []Bypass{AzureServices, Logging, Metrics, None} +} + +// CreatedByType enumerates the values for created by type. +type CreatedByType string + +const ( + // Application ... + Application CreatedByType = "Application" + // Key ... + Key CreatedByType = "Key" + // ManagedIdentity ... + ManagedIdentity CreatedByType = "ManagedIdentity" + // User ... + User CreatedByType = "User" +) + +// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{Application, Key, ManagedIdentity, User} +} + +// DefaultAction enumerates the values for default action. +type DefaultAction string + +const ( + // DefaultActionAllow ... + DefaultActionAllow DefaultAction = "Allow" + // DefaultActionDeny ... + DefaultActionDeny DefaultAction = "Deny" +) + +// PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type. +func PossibleDefaultActionValues() []DefaultAction { + return []DefaultAction{DefaultActionAllow, DefaultActionDeny} +} + +// DirectoryServiceOptions enumerates the values for directory service options. +type DirectoryServiceOptions string + +const ( + // DirectoryServiceOptionsAADDS ... + DirectoryServiceOptionsAADDS DirectoryServiceOptions = "AADDS" + // DirectoryServiceOptionsAD ... + DirectoryServiceOptionsAD DirectoryServiceOptions = "AD" + // DirectoryServiceOptionsNone ... + DirectoryServiceOptionsNone DirectoryServiceOptions = "None" +) + +// PossibleDirectoryServiceOptionsValues returns an array of possible values for the DirectoryServiceOptions const type. +func PossibleDirectoryServiceOptionsValues() []DirectoryServiceOptions { + return []DirectoryServiceOptions{DirectoryServiceOptionsAADDS, DirectoryServiceOptionsAD, DirectoryServiceOptionsNone} +} + +// EnabledProtocols enumerates the values for enabled protocols. +type EnabledProtocols string + +const ( + // NFS ... + NFS EnabledProtocols = "NFS" + // SMB ... + SMB EnabledProtocols = "SMB" +) + +// PossibleEnabledProtocolsValues returns an array of possible values for the EnabledProtocols const type. +func PossibleEnabledProtocolsValues() []EnabledProtocols { + return []EnabledProtocols{NFS, SMB} +} + +// EncryptionScopeSource enumerates the values for encryption scope source. +type EncryptionScopeSource string + +const ( + // MicrosoftKeyVault ... + MicrosoftKeyVault EncryptionScopeSource = "Microsoft.KeyVault" + // MicrosoftStorage ... + MicrosoftStorage EncryptionScopeSource = "Microsoft.Storage" +) + +// PossibleEncryptionScopeSourceValues returns an array of possible values for the EncryptionScopeSource const type. +func PossibleEncryptionScopeSourceValues() []EncryptionScopeSource { + return []EncryptionScopeSource{MicrosoftKeyVault, MicrosoftStorage} +} + +// EncryptionScopeState enumerates the values for encryption scope state. +type EncryptionScopeState string + +const ( + // Disabled ... + Disabled EncryptionScopeState = "Disabled" + // Enabled ... + Enabled EncryptionScopeState = "Enabled" +) + +// PossibleEncryptionScopeStateValues returns an array of possible values for the EncryptionScopeState const type. +func PossibleEncryptionScopeStateValues() []EncryptionScopeState { + return []EncryptionScopeState{Disabled, Enabled} +} + +// ExtendedLocationTypes enumerates the values for extended location types. +type ExtendedLocationTypes string + +const ( + // EdgeZone ... + EdgeZone ExtendedLocationTypes = "EdgeZone" +) + +// PossibleExtendedLocationTypesValues returns an array of possible values for the ExtendedLocationTypes const type. +func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes { + return []ExtendedLocationTypes{EdgeZone} +} + +// GeoReplicationStatus enumerates the values for geo replication status. +type GeoReplicationStatus string + +const ( + // GeoReplicationStatusBootstrap ... + GeoReplicationStatusBootstrap GeoReplicationStatus = "Bootstrap" + // GeoReplicationStatusLive ... + GeoReplicationStatusLive GeoReplicationStatus = "Live" + // GeoReplicationStatusUnavailable ... + GeoReplicationStatusUnavailable GeoReplicationStatus = "Unavailable" +) + +// PossibleGeoReplicationStatusValues returns an array of possible values for the GeoReplicationStatus const type. +func PossibleGeoReplicationStatusValues() []GeoReplicationStatus { + return []GeoReplicationStatus{GeoReplicationStatusBootstrap, GeoReplicationStatusLive, GeoReplicationStatusUnavailable} +} + +// GetShareExpand enumerates the values for get share expand. +type GetShareExpand string + +const ( + // Stats ... + Stats GetShareExpand = "stats" +) + +// PossibleGetShareExpandValues returns an array of possible values for the GetShareExpand const type. +func PossibleGetShareExpandValues() []GetShareExpand { + return []GetShareExpand{Stats} +} + +// HTTPProtocol enumerates the values for http protocol. +type HTTPProtocol string + +const ( + // HTTPS ... + HTTPS HTTPProtocol = "https" + // Httpshttp ... + Httpshttp HTTPProtocol = "https,http" +) + +// PossibleHTTPProtocolValues returns an array of possible values for the HTTPProtocol const type. +func PossibleHTTPProtocolValues() []HTTPProtocol { + return []HTTPProtocol{HTTPS, Httpshttp} +} + +// IdentityType enumerates the values for identity type. +type IdentityType string + +const ( + // IdentityTypeNone ... + IdentityTypeNone IdentityType = "None" + // IdentityTypeSystemAssigned ... + IdentityTypeSystemAssigned IdentityType = "SystemAssigned" + // IdentityTypeSystemAssignedUserAssigned ... + IdentityTypeSystemAssignedUserAssigned IdentityType = "SystemAssigned,UserAssigned" + // IdentityTypeUserAssigned ... + IdentityTypeUserAssigned IdentityType = "UserAssigned" +) + +// PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type. +func PossibleIdentityTypeValues() []IdentityType { + return []IdentityType{IdentityTypeNone, IdentityTypeSystemAssigned, IdentityTypeSystemAssignedUserAssigned, IdentityTypeUserAssigned} +} + +// ImmutabilityPolicyState enumerates the values for immutability policy state. +type ImmutabilityPolicyState string + +const ( + // Locked ... + Locked ImmutabilityPolicyState = "Locked" + // Unlocked ... + Unlocked ImmutabilityPolicyState = "Unlocked" +) + +// PossibleImmutabilityPolicyStateValues returns an array of possible values for the ImmutabilityPolicyState const type. +func PossibleImmutabilityPolicyStateValues() []ImmutabilityPolicyState { + return []ImmutabilityPolicyState{Locked, Unlocked} +} + +// ImmutabilityPolicyUpdateType enumerates the values for immutability policy update type. +type ImmutabilityPolicyUpdateType string + +const ( + // Extend ... + Extend ImmutabilityPolicyUpdateType = "extend" + // Lock ... + Lock ImmutabilityPolicyUpdateType = "lock" + // Put ... + Put ImmutabilityPolicyUpdateType = "put" +) + +// PossibleImmutabilityPolicyUpdateTypeValues returns an array of possible values for the ImmutabilityPolicyUpdateType const type. +func PossibleImmutabilityPolicyUpdateTypeValues() []ImmutabilityPolicyUpdateType { + return []ImmutabilityPolicyUpdateType{Extend, Lock, Put} +} + +// KeyPermission enumerates the values for key permission. +type KeyPermission string + +const ( + // Full ... + Full KeyPermission = "Full" + // Read ... + Read KeyPermission = "Read" +) + +// PossibleKeyPermissionValues returns an array of possible values for the KeyPermission const type. +func PossibleKeyPermissionValues() []KeyPermission { + return []KeyPermission{Full, Read} +} + +// KeySource enumerates the values for key source. +type KeySource string + +const ( + // KeySourceMicrosoftKeyvault ... + KeySourceMicrosoftKeyvault KeySource = "Microsoft.Keyvault" + // KeySourceMicrosoftStorage ... + KeySourceMicrosoftStorage KeySource = "Microsoft.Storage" +) + +// PossibleKeySourceValues returns an array of possible values for the KeySource const type. +func PossibleKeySourceValues() []KeySource { + return []KeySource{KeySourceMicrosoftKeyvault, KeySourceMicrosoftStorage} +} + +// KeyType enumerates the values for key type. +type KeyType string + +const ( + // KeyTypeAccount ... + KeyTypeAccount KeyType = "Account" + // KeyTypeService ... + KeyTypeService KeyType = "Service" +) + +// PossibleKeyTypeValues returns an array of possible values for the KeyType const type. +func PossibleKeyTypeValues() []KeyType { + return []KeyType{KeyTypeAccount, KeyTypeService} +} + +// Kind enumerates the values for kind. +type Kind string + +const ( + // BlobStorage ... + BlobStorage Kind = "BlobStorage" + // BlockBlobStorage ... + BlockBlobStorage Kind = "BlockBlobStorage" + // FileStorage ... + FileStorage Kind = "FileStorage" + // Storage ... + Storage Kind = "Storage" + // StorageV2 ... + StorageV2 Kind = "StorageV2" +) + +// PossibleKindValues returns an array of possible values for the Kind const type. +func PossibleKindValues() []Kind { + return []Kind{BlobStorage, BlockBlobStorage, FileStorage, Storage, StorageV2} +} + +// LargeFileSharesState enumerates the values for large file shares state. +type LargeFileSharesState string + +const ( + // LargeFileSharesStateDisabled ... + LargeFileSharesStateDisabled LargeFileSharesState = "Disabled" + // LargeFileSharesStateEnabled ... + LargeFileSharesStateEnabled LargeFileSharesState = "Enabled" +) + +// PossibleLargeFileSharesStateValues returns an array of possible values for the LargeFileSharesState const type. +func PossibleLargeFileSharesStateValues() []LargeFileSharesState { + return []LargeFileSharesState{LargeFileSharesStateDisabled, LargeFileSharesStateEnabled} +} + +// LeaseDuration enumerates the values for lease duration. +type LeaseDuration string + +const ( + // Fixed ... + Fixed LeaseDuration = "Fixed" + // Infinite ... + Infinite LeaseDuration = "Infinite" +) + +// PossibleLeaseDurationValues returns an array of possible values for the LeaseDuration const type. +func PossibleLeaseDurationValues() []LeaseDuration { + return []LeaseDuration{Fixed, Infinite} +} + +// LeaseState enumerates the values for lease state. +type LeaseState string + +const ( + // LeaseStateAvailable ... + LeaseStateAvailable LeaseState = "Available" + // LeaseStateBreaking ... + LeaseStateBreaking LeaseState = "Breaking" + // LeaseStateBroken ... + LeaseStateBroken LeaseState = "Broken" + // LeaseStateExpired ... + LeaseStateExpired LeaseState = "Expired" + // LeaseStateLeased ... + LeaseStateLeased LeaseState = "Leased" +) + +// PossibleLeaseStateValues returns an array of possible values for the LeaseState const type. +func PossibleLeaseStateValues() []LeaseState { + return []LeaseState{LeaseStateAvailable, LeaseStateBreaking, LeaseStateBroken, LeaseStateExpired, LeaseStateLeased} +} + +// LeaseStatus enumerates the values for lease status. +type LeaseStatus string + +const ( + // LeaseStatusLocked ... + LeaseStatusLocked LeaseStatus = "Locked" + // LeaseStatusUnlocked ... + LeaseStatusUnlocked LeaseStatus = "Unlocked" +) + +// PossibleLeaseStatusValues returns an array of possible values for the LeaseStatus const type. +func PossibleLeaseStatusValues() []LeaseStatus { + return []LeaseStatus{LeaseStatusLocked, LeaseStatusUnlocked} +} + +// ListContainersInclude enumerates the values for list containers include. +type ListContainersInclude string + +const ( + // Deleted ... + Deleted ListContainersInclude = "deleted" +) + +// PossibleListContainersIncludeValues returns an array of possible values for the ListContainersInclude const type. +func PossibleListContainersIncludeValues() []ListContainersInclude { + return []ListContainersInclude{Deleted} +} + +// ListKeyExpand enumerates the values for list key expand. +type ListKeyExpand string + +const ( + // Kerb ... + Kerb ListKeyExpand = "kerb" +) + +// PossibleListKeyExpandValues returns an array of possible values for the ListKeyExpand const type. +func PossibleListKeyExpandValues() []ListKeyExpand { + return []ListKeyExpand{Kerb} +} + +// ListSharesExpand enumerates the values for list shares expand. +type ListSharesExpand string + +const ( + // ListSharesExpandDeleted ... + ListSharesExpandDeleted ListSharesExpand = "deleted" + // ListSharesExpandSnapshots ... + ListSharesExpandSnapshots ListSharesExpand = "snapshots" +) + +// PossibleListSharesExpandValues returns an array of possible values for the ListSharesExpand const type. +func PossibleListSharesExpandValues() []ListSharesExpand { + return []ListSharesExpand{ListSharesExpandDeleted, ListSharesExpandSnapshots} +} + +// MinimumTLSVersion enumerates the values for minimum tls version. +type MinimumTLSVersion string + +const ( + // TLS10 ... + TLS10 MinimumTLSVersion = "TLS1_0" + // TLS11 ... + TLS11 MinimumTLSVersion = "TLS1_1" + // TLS12 ... + TLS12 MinimumTLSVersion = "TLS1_2" +) + +// PossibleMinimumTLSVersionValues returns an array of possible values for the MinimumTLSVersion const type. +func PossibleMinimumTLSVersionValues() []MinimumTLSVersion { + return []MinimumTLSVersion{TLS10, TLS11, TLS12} +} + +// Name enumerates the values for name. +type Name string + +const ( + // AccessTimeTracking ... + AccessTimeTracking Name = "AccessTimeTracking" +) + +// PossibleNameValues returns an array of possible values for the Name const type. +func PossibleNameValues() []Name { + return []Name{AccessTimeTracking} +} + +// Permissions enumerates the values for permissions. +type Permissions string + +const ( + // A ... + A Permissions = "a" + // C ... + C Permissions = "c" + // D ... + D Permissions = "d" + // L ... + L Permissions = "l" + // P ... + P Permissions = "p" + // R ... + R Permissions = "r" + // U ... + U Permissions = "u" + // W ... + W Permissions = "w" +) + +// PossiblePermissionsValues returns an array of possible values for the Permissions const type. +func PossiblePermissionsValues() []Permissions { + return []Permissions{A, C, D, L, P, R, U, W} +} + +// PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection +// provisioning state. +type PrivateEndpointConnectionProvisioningState string + +const ( + // PrivateEndpointConnectionProvisioningStateCreating ... + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" + // PrivateEndpointConnectionProvisioningStateDeleting ... + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" + // PrivateEndpointConnectionProvisioningStateFailed ... + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" + // PrivateEndpointConnectionProvisioningStateSucceeded ... + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" +) + +// PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type. +func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { + return []PrivateEndpointConnectionProvisioningState{PrivateEndpointConnectionProvisioningStateCreating, PrivateEndpointConnectionProvisioningStateDeleting, PrivateEndpointConnectionProvisioningStateFailed, PrivateEndpointConnectionProvisioningStateSucceeded} +} + +// PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status. +type PrivateEndpointServiceConnectionStatus string + +const ( + // Approved ... + Approved PrivateEndpointServiceConnectionStatus = "Approved" + // Pending ... + Pending PrivateEndpointServiceConnectionStatus = "Pending" + // Rejected ... + Rejected PrivateEndpointServiceConnectionStatus = "Rejected" +) + +// PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type. +func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { + return []PrivateEndpointServiceConnectionStatus{Approved, Pending, Rejected} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // Creating ... + Creating ProvisioningState = "Creating" + // ResolvingDNS ... + ResolvingDNS ProvisioningState = "ResolvingDNS" + // Succeeded ... + Succeeded ProvisioningState = "Succeeded" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{Creating, ResolvingDNS, Succeeded} +} + +// PublicAccess enumerates the values for public access. +type PublicAccess string + +const ( + // PublicAccessBlob ... + PublicAccessBlob PublicAccess = "Blob" + // PublicAccessContainer ... + PublicAccessContainer PublicAccess = "Container" + // PublicAccessNone ... + PublicAccessNone PublicAccess = "None" +) + +// PossiblePublicAccessValues returns an array of possible values for the PublicAccess const type. +func PossiblePublicAccessValues() []PublicAccess { + return []PublicAccess{PublicAccessBlob, PublicAccessContainer, PublicAccessNone} +} + +// PutSharesExpand enumerates the values for put shares expand. +type PutSharesExpand string + +const ( + // Snapshots ... + Snapshots PutSharesExpand = "snapshots" +) + +// PossiblePutSharesExpandValues returns an array of possible values for the PutSharesExpand const type. +func PossiblePutSharesExpandValues() []PutSharesExpand { + return []PutSharesExpand{Snapshots} +} + +// Reason enumerates the values for reason. +type Reason string + +const ( + // AccountNameInvalid ... + AccountNameInvalid Reason = "AccountNameInvalid" + // AlreadyExists ... + AlreadyExists Reason = "AlreadyExists" +) + +// PossibleReasonValues returns an array of possible values for the Reason const type. +func PossibleReasonValues() []Reason { + return []Reason{AccountNameInvalid, AlreadyExists} +} + +// ReasonCode enumerates the values for reason code. +type ReasonCode string + +const ( + // NotAvailableForSubscription ... + NotAvailableForSubscription ReasonCode = "NotAvailableForSubscription" + // QuotaID ... + QuotaID ReasonCode = "QuotaId" +) + +// PossibleReasonCodeValues returns an array of possible values for the ReasonCode const type. +func PossibleReasonCodeValues() []ReasonCode { + return []ReasonCode{NotAvailableForSubscription, QuotaID} +} + +// RootSquashType enumerates the values for root squash type. +type RootSquashType string + +const ( + // AllSquash ... + AllSquash RootSquashType = "AllSquash" + // NoRootSquash ... + NoRootSquash RootSquashType = "NoRootSquash" + // RootSquash ... + RootSquash RootSquashType = "RootSquash" +) + +// PossibleRootSquashTypeValues returns an array of possible values for the RootSquashType const type. +func PossibleRootSquashTypeValues() []RootSquashType { + return []RootSquashType{AllSquash, NoRootSquash, RootSquash} +} + +// RoutingChoice enumerates the values for routing choice. +type RoutingChoice string + +const ( + // InternetRouting ... + InternetRouting RoutingChoice = "InternetRouting" + // MicrosoftRouting ... + MicrosoftRouting RoutingChoice = "MicrosoftRouting" +) + +// PossibleRoutingChoiceValues returns an array of possible values for the RoutingChoice const type. +func PossibleRoutingChoiceValues() []RoutingChoice { + return []RoutingChoice{InternetRouting, MicrosoftRouting} +} + +// Services enumerates the values for services. +type Services string + +const ( + // B ... + B Services = "b" + // F ... + F Services = "f" + // Q ... + Q Services = "q" + // T ... + T Services = "t" +) + +// PossibleServicesValues returns an array of possible values for the Services const type. +func PossibleServicesValues() []Services { + return []Services{B, F, Q, T} +} + +// ShareAccessTier enumerates the values for share access tier. +type ShareAccessTier string + +const ( + // ShareAccessTierCool ... + ShareAccessTierCool ShareAccessTier = "Cool" + // ShareAccessTierHot ... + ShareAccessTierHot ShareAccessTier = "Hot" + // ShareAccessTierPremium ... + ShareAccessTierPremium ShareAccessTier = "Premium" + // ShareAccessTierTransactionOptimized ... + ShareAccessTierTransactionOptimized ShareAccessTier = "TransactionOptimized" +) + +// PossibleShareAccessTierValues returns an array of possible values for the ShareAccessTier const type. +func PossibleShareAccessTierValues() []ShareAccessTier { + return []ShareAccessTier{ShareAccessTierCool, ShareAccessTierHot, ShareAccessTierPremium, ShareAccessTierTransactionOptimized} +} + +// SignedResource enumerates the values for signed resource. +type SignedResource string + +const ( + // SignedResourceB ... + SignedResourceB SignedResource = "b" + // SignedResourceC ... + SignedResourceC SignedResource = "c" + // SignedResourceF ... + SignedResourceF SignedResource = "f" + // SignedResourceS ... + SignedResourceS SignedResource = "s" +) + +// PossibleSignedResourceValues returns an array of possible values for the SignedResource const type. +func PossibleSignedResourceValues() []SignedResource { + return []SignedResource{SignedResourceB, SignedResourceC, SignedResourceF, SignedResourceS} +} + +// SignedResourceTypes enumerates the values for signed resource types. +type SignedResourceTypes string + +const ( + // SignedResourceTypesC ... + SignedResourceTypesC SignedResourceTypes = "c" + // SignedResourceTypesO ... + SignedResourceTypesO SignedResourceTypes = "o" + // SignedResourceTypesS ... + SignedResourceTypesS SignedResourceTypes = "s" +) + +// PossibleSignedResourceTypesValues returns an array of possible values for the SignedResourceTypes const type. +func PossibleSignedResourceTypesValues() []SignedResourceTypes { + return []SignedResourceTypes{SignedResourceTypesC, SignedResourceTypesO, SignedResourceTypesS} +} + +// SkuName enumerates the values for sku name. +type SkuName string + +const ( + // PremiumLRS ... + PremiumLRS SkuName = "Premium_LRS" + // PremiumZRS ... + PremiumZRS SkuName = "Premium_ZRS" + // StandardGRS ... + StandardGRS SkuName = "Standard_GRS" + // StandardGZRS ... + StandardGZRS SkuName = "Standard_GZRS" + // StandardLRS ... + StandardLRS SkuName = "Standard_LRS" + // StandardRAGRS ... + StandardRAGRS SkuName = "Standard_RAGRS" + // StandardRAGZRS ... + StandardRAGZRS SkuName = "Standard_RAGZRS" + // StandardZRS ... + StandardZRS SkuName = "Standard_ZRS" +) + +// PossibleSkuNameValues returns an array of possible values for the SkuName const type. +func PossibleSkuNameValues() []SkuName { + return []SkuName{PremiumLRS, PremiumZRS, StandardGRS, StandardGZRS, StandardLRS, StandardRAGRS, StandardRAGZRS, StandardZRS} +} + +// SkuTier enumerates the values for sku tier. +type SkuTier string + +const ( + // Premium ... + Premium SkuTier = "Premium" + // Standard ... + Standard SkuTier = "Standard" +) + +// PossibleSkuTierValues returns an array of possible values for the SkuTier const type. +func PossibleSkuTierValues() []SkuTier { + return []SkuTier{Premium, Standard} +} + +// State enumerates the values for state. +type State string + +const ( + // StateDeprovisioning ... + StateDeprovisioning State = "deprovisioning" + // StateFailed ... + StateFailed State = "failed" + // StateNetworkSourceDeleted ... + StateNetworkSourceDeleted State = "networkSourceDeleted" + // StateProvisioning ... + StateProvisioning State = "provisioning" + // StateSucceeded ... + StateSucceeded State = "succeeded" +) + +// PossibleStateValues returns an array of possible values for the State const type. +func PossibleStateValues() []State { + return []State{StateDeprovisioning, StateFailed, StateNetworkSourceDeleted, StateProvisioning, StateSucceeded} +} + +// UsageUnit enumerates the values for usage unit. +type UsageUnit string + +const ( + // Bytes ... + Bytes UsageUnit = "Bytes" + // BytesPerSecond ... + BytesPerSecond UsageUnit = "BytesPerSecond" + // Count ... + Count UsageUnit = "Count" + // CountsPerSecond ... + CountsPerSecond UsageUnit = "CountsPerSecond" + // Percent ... + Percent UsageUnit = "Percent" + // Seconds ... + Seconds UsageUnit = "Seconds" +) + +// PossibleUsageUnitValues returns an array of possible values for the UsageUnit const type. +func PossibleUsageUnitValues() []UsageUnit { + return []UsageUnit{Bytes, BytesPerSecond, Count, CountsPerSecond, Percent, Seconds} +} diff --git a/services/storage/mgmt/2021-02-01/storage/fileservices.go b/services/storage/mgmt/2021-02-01/storage/fileservices.go new file mode 100644 index 000000000000..bb6c6f7f64c8 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/fileservices.go @@ -0,0 +1,323 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// FileServicesClient is the the Azure Storage Management API. +type FileServicesClient struct { + BaseClient +} + +// NewFileServicesClient creates an instance of the FileServicesClient client. +func NewFileServicesClient(subscriptionID string) FileServicesClient { + return NewFileServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFileServicesClientWithBaseURI creates an instance of the FileServicesClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewFileServicesClientWithBaseURI(baseURI string, subscriptionID string) FileServicesClient { + return FileServicesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// GetServiceProperties gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource +// Sharing) rules. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client FileServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result FileServiceProperties, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileServicesClient.GetServiceProperties") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.FileServicesClient", "GetServiceProperties", err.Error()) + } + + req, err := client.GetServicePropertiesPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "GetServiceProperties", nil, "Failure preparing request") + return + } + + resp, err := client.GetServicePropertiesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "GetServiceProperties", resp, "Failure sending request") + return + } + + result, err = client.GetServicePropertiesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return + } + + return +} + +// GetServicePropertiesPreparer prepares the GetServiceProperties request. +func (client FileServicesClient) GetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "FileServicesName": autorest.Encode("path", "default"), + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetServicePropertiesSender sends the GetServiceProperties request. The method will close the +// http.Response Body if it receives an error. +func (client FileServicesClient) GetServicePropertiesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetServicePropertiesResponder handles the response to the GetServiceProperties request. The method always +// closes the http.Response Body. +func (client FileServicesClient) GetServicePropertiesResponder(resp *http.Response) (result FileServiceProperties, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list all file services in storage accounts +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client FileServicesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result FileServiceItems, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileServicesClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.FileServicesClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client FileServicesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client FileServicesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client FileServicesClient) ListResponder(resp *http.Response) (result FileServiceItems, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// SetServiceProperties sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource +// Sharing) rules. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// parameters - the properties of file services in storage accounts, including CORS (Cross-Origin Resource +// Sharing) rules. +func (client FileServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters FileServiceProperties) (result FileServiceProperties, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileServicesClient.SetServiceProperties") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.FileServicePropertiesProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.FileServicePropertiesProperties.ShareDeleteRetentionPolicy", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.FileServicePropertiesProperties.ShareDeleteRetentionPolicy.Days", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.FileServicePropertiesProperties.ShareDeleteRetentionPolicy.Days", Name: validation.InclusiveMaximum, Rule: int64(365), Chain: nil}, + {Target: "parameters.FileServicePropertiesProperties.ShareDeleteRetentionPolicy.Days", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("storage.FileServicesClient", "SetServiceProperties", err.Error()) + } + + req, err := client.SetServicePropertiesPreparer(ctx, resourceGroupName, accountName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "SetServiceProperties", nil, "Failure preparing request") + return + } + + resp, err := client.SetServicePropertiesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "SetServiceProperties", resp, "Failure sending request") + return + } + + result, err = client.SetServicePropertiesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return + } + + return +} + +// SetServicePropertiesPreparer prepares the SetServiceProperties request. +func (client FileServicesClient) SetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters FileServiceProperties) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "FileServicesName": autorest.Encode("path", "default"), + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + parameters.Sku = nil + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SetServicePropertiesSender sends the SetServiceProperties request. The method will close the +// http.Response Body if it receives an error. +func (client FileServicesClient) SetServicePropertiesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// SetServicePropertiesResponder handles the response to the SetServiceProperties request. The method always +// closes the http.Response Body. +func (client FileServicesClient) SetServicePropertiesResponder(resp *http.Response) (result FileServiceProperties, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/fileshares.go b/services/storage/mgmt/2021-02-01/storage/fileshares.go new file mode 100644 index 000000000000..6ccc4bfb14f1 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/fileshares.go @@ -0,0 +1,703 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// FileSharesClient is the the Azure Storage Management API. +type FileSharesClient struct { + BaseClient +} + +// NewFileSharesClient creates an instance of the FileSharesClient client. +func NewFileSharesClient(subscriptionID string) FileSharesClient { + return NewFileSharesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewFileSharesClientWithBaseURI creates an instance of the FileSharesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewFileSharesClientWithBaseURI(baseURI string, subscriptionID string) FileSharesClient { + return FileSharesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create creates a new share under the specified account as described by request body. The share resource includes +// metadata and properties for that share. It does not include a list of the files contained by the share. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// shareName - the name of the file share within the specified storage account. File share names must be +// between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) +// character must be immediately preceded and followed by a letter or number. +// fileShare - properties of the file share to create. +// expand - optional, used to create a snapshot. +func (client FileSharesClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare, expand PutSharesExpand) (result FileShare, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Create") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: shareName, + Constraints: []validation.Constraint{{Target: "shareName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "shareName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: fileShare, + Constraints: []validation.Constraint{{Target: "fileShare.FileShareProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "fileShare.FileShareProperties.ShareQuota", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "fileShare.FileShareProperties.ShareQuota", Name: validation.InclusiveMaximum, Rule: int64(102400), Chain: nil}, + {Target: "fileShare.FileShareProperties.ShareQuota", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, + }}, + }}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.FileSharesClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareName, fileShare, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Create", nil, "Failure preparing request") + return + } + + resp, err := client.CreateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Create", resp, "Failure sending request") + return + } + + result, err = client.CreateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Create", resp, "Failure responding to request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client FileSharesClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare, expand PutSharesExpand) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "shareName": autorest.Encode("path", shareName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(string(expand)) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", pathParameters), + autorest.WithJSON(fileShare), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client FileSharesClient) CreateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client FileSharesClient) CreateResponder(resp *http.Response) (result FileShare, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes specified share under its account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// shareName - the name of the file share within the specified storage account. File share names must be +// between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) +// character must be immediately preceded and followed by a letter or number. +// xMsSnapshot - optional, used to delete a snapshot. +func (client FileSharesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, xMsSnapshot string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: shareName, + Constraints: []validation.Constraint{{Target: "shareName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "shareName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.FileSharesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareName, xMsSnapshot) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client FileSharesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, xMsSnapshot string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "shareName": autorest.Encode("path", shareName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if len(xMsSnapshot) > 0 { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithHeader("x-ms-snapshot", autorest.String(xMsSnapshot))) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client FileSharesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client FileSharesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets properties of a specified share. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// shareName - the name of the file share within the specified storage account. File share names must be +// between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) +// character must be immediately preceded and followed by a letter or number. +// expand - optional, used to expand the properties within share's properties. +// xMsSnapshot - optional, used to retrieve properties of a snapshot. +func (client FileSharesClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand GetShareExpand, xMsSnapshot string) (result FileShare, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: shareName, + Constraints: []validation.Constraint{{Target: "shareName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "shareName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.FileSharesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareName, expand, xMsSnapshot) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client FileSharesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand GetShareExpand, xMsSnapshot string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "shareName": autorest.Encode("path", shareName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(string(expand)) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if len(xMsSnapshot) > 0 { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithHeader("x-ms-snapshot", autorest.String(xMsSnapshot))) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client FileSharesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client FileSharesClient) GetResponder(resp *http.Response) (result FileShare, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all shares. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// maxpagesize - optional. Specified maximum number of shares that can be included in the list. +// filter - optional. When specified, only share names starting with the filter will be listed. +// expand - optional, used to expand the properties within share's properties. +func (client FileSharesClient) List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, expand ListSharesExpand) (result FileShareItemsPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.List") + defer func() { + sc := -1 + if result.fsi.Response.Response != nil { + sc = result.fsi.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.FileSharesClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, accountName, maxpagesize, filter, expand) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.fsi.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "List", resp, "Failure sending request") + return + } + + result.fsi, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "List", resp, "Failure responding to request") + return + } + if result.fsi.hasNextLink() && result.fsi.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client FileSharesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, expand ListSharesExpand) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(maxpagesize) > 0 { + queryParameters["$maxpagesize"] = autorest.Encode("query", maxpagesize) + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + if len(string(expand)) > 0 { + queryParameters["$expand"] = autorest.Encode("query", expand) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client FileSharesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client FileSharesClient) ListResponder(resp *http.Response) (result FileShareItems, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client FileSharesClient) listNextResults(ctx context.Context, lastResults FileShareItems) (result FileShareItems, err error) { + req, err := lastResults.fileShareItemsPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storage.FileSharesClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storage.FileSharesClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client FileSharesClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, expand ListSharesExpand) (result FileShareItemsIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, accountName, maxpagesize, filter, expand) + return +} + +// Restore restore a file share within a valid retention days if share soft delete is enabled +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// shareName - the name of the file share within the specified storage account. File share names must be +// between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) +// character must be immediately preceded and followed by a letter or number. +func (client FileSharesClient) Restore(ctx context.Context, resourceGroupName string, accountName string, shareName string, deletedShare DeletedShare) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Restore") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: shareName, + Constraints: []validation.Constraint{{Target: "shareName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "shareName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: deletedShare, + Constraints: []validation.Constraint{{Target: "deletedShare.DeletedShareName", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "deletedShare.DeletedShareVersion", Name: validation.Null, Rule: true, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.FileSharesClient", "Restore", err.Error()) + } + + req, err := client.RestorePreparer(ctx, resourceGroupName, accountName, shareName, deletedShare) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Restore", nil, "Failure preparing request") + return + } + + resp, err := client.RestoreSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Restore", resp, "Failure sending request") + return + } + + result, err = client.RestoreResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Restore", resp, "Failure responding to request") + return + } + + return +} + +// RestorePreparer prepares the Restore request. +func (client FileSharesClient) RestorePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, deletedShare DeletedShare) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "shareName": autorest.Encode("path", shareName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore", pathParameters), + autorest.WithJSON(deletedShare), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RestoreSender sends the Restore request. The method will close the +// http.Response Body if it receives an error. +func (client FileSharesClient) RestoreSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// RestoreResponder handles the response to the Restore request. The method always +// closes the http.Response Body. +func (client FileSharesClient) RestoreResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByClosing()) + result.Response = resp + return +} + +// Update updates share properties as specified in request body. Properties not mentioned in the request will not be +// changed. Update fails if the specified share does not already exist. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// shareName - the name of the file share within the specified storage account. File share names must be +// between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) +// character must be immediately preceded and followed by a letter or number. +// fileShare - properties to update for the file share. +func (client FileSharesClient) Update(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare) (result FileShare, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: shareName, + Constraints: []validation.Constraint{{Target: "shareName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "shareName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.FileSharesClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, shareName, fileShare) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client FileSharesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "shareName": autorest.Encode("path", shareName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", pathParameters), + autorest.WithJSON(fileShare), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client FileSharesClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client FileSharesClient) UpdateResponder(resp *http.Response) (result FileShare, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/managementpolicies.go b/services/storage/mgmt/2021-02-01/storage/managementpolicies.go new file mode 100644 index 000000000000..77e126a8a379 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/managementpolicies.go @@ -0,0 +1,316 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ManagementPoliciesClient is the the Azure Storage Management API. +type ManagementPoliciesClient struct { + BaseClient +} + +// NewManagementPoliciesClient creates an instance of the ManagementPoliciesClient client. +func NewManagementPoliciesClient(subscriptionID string) ManagementPoliciesClient { + return NewManagementPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewManagementPoliciesClientWithBaseURI creates an instance of the ManagementPoliciesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewManagementPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagementPoliciesClient { + return ManagementPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate sets the managementpolicy to the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// properties - the ManagementPolicy set to a storage account. +func (client ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, properties ManagementPolicy) (result ManagementPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagementPoliciesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: properties, + Constraints: []validation.Constraint{{Target: "properties.ManagementPolicyProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "properties.ManagementPolicyProperties.Policy", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "properties.ManagementPolicyProperties.Policy.Rules", Name: validation.Null, Rule: true, Chain: nil}}}, + }}}}}); err != nil { + return result, validation.NewError("storage.ManagementPoliciesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, accountName, properties) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ManagementPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, properties ManagementPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "managementPolicyName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", pathParameters), + autorest.WithJSON(properties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ManagementPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ManagementPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagementPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the managementpolicy associated with the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client ManagementPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagementPoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.ManagementPoliciesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ManagementPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "managementPolicyName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ManagementPoliciesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ManagementPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the managementpolicy associated with the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client ManagementPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result ManagementPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagementPoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.ManagementPoliciesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ManagementPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "managementPolicyName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ManagementPoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ManagementPoliciesClient) GetResponder(resp *http.Response) (result ManagementPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/models.go b/services/storage/mgmt/2021-02-01/storage/models.go new file mode 100644 index 000000000000..a170ee222694 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/models.go @@ -0,0 +1,4933 @@ +package storage + +// 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. + +import ( + "context" + "encoding/json" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// The package's fully qualified name. +const fqdn = "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage" + +// Account the storage account. +type Account struct { + autorest.Response `json:"-"` + // Sku - READ-ONLY; Gets the SKU. + Sku *Sku `json:"sku,omitempty"` + // Kind - READ-ONLY; Gets the Kind. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage' + Kind Kind `json:"kind,omitempty"` + // Identity - The identity of the resource. + Identity *Identity `json:"identity,omitempty"` + // ExtendedLocation - The extendedLocation of the resource. + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + // AccountProperties - Properties of the storage account. + *AccountProperties `json:"properties,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Account. +func (a Account) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if a.Identity != nil { + objectMap["identity"] = a.Identity + } + if a.ExtendedLocation != nil { + objectMap["extendedLocation"] = a.ExtendedLocation + } + if a.AccountProperties != nil { + objectMap["properties"] = a.AccountProperties + } + if a.Tags != nil { + objectMap["tags"] = a.Tags + } + if a.Location != nil { + objectMap["location"] = a.Location + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Account struct. +func (a *Account) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + a.Sku = &sku + } + case "kind": + if v != nil { + var kind Kind + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + a.Kind = kind + } + case "identity": + if v != nil { + var identity Identity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + a.Identity = &identity + } + case "extendedLocation": + if v != nil { + var extendedLocation ExtendedLocation + err = json.Unmarshal(*v, &extendedLocation) + if err != nil { + return err + } + a.ExtendedLocation = &extendedLocation + } + case "properties": + if v != nil { + var accountProperties AccountProperties + err = json.Unmarshal(*v, &accountProperties) + if err != nil { + return err + } + a.AccountProperties = &accountProperties + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + a.Tags = tags + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + a.Location = &location + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + a.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + a.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + a.Type = &typeVar + } + } + } + + return nil +} + +// AccountCheckNameAvailabilityParameters the parameters used to check the availability of the storage +// account name. +type AccountCheckNameAvailabilityParameters struct { + // Name - The storage account name. + Name *string `json:"name,omitempty"` + // Type - The type of resource, Microsoft.Storage/storageAccounts + Type *string `json:"type,omitempty"` +} + +// AccountCreateParameters the parameters used when creating a storage account. +type AccountCreateParameters struct { + // Sku - Required. Gets or sets the SKU name. + Sku *Sku `json:"sku,omitempty"` + // Kind - Required. Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage' + Kind Kind `json:"kind,omitempty"` + // Location - Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. + Location *string `json:"location,omitempty"` + // ExtendedLocation - Optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. + Tags map[string]*string `json:"tags"` + // Identity - The identity of the resource. + Identity *Identity `json:"identity,omitempty"` + // AccountPropertiesCreateParameters - The parameters used to create the storage account. + *AccountPropertiesCreateParameters `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for AccountCreateParameters. +func (acp AccountCreateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if acp.Sku != nil { + objectMap["sku"] = acp.Sku + } + if acp.Kind != "" { + objectMap["kind"] = acp.Kind + } + if acp.Location != nil { + objectMap["location"] = acp.Location + } + if acp.ExtendedLocation != nil { + objectMap["extendedLocation"] = acp.ExtendedLocation + } + if acp.Tags != nil { + objectMap["tags"] = acp.Tags + } + if acp.Identity != nil { + objectMap["identity"] = acp.Identity + } + if acp.AccountPropertiesCreateParameters != nil { + objectMap["properties"] = acp.AccountPropertiesCreateParameters + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AccountCreateParameters struct. +func (acp *AccountCreateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + acp.Sku = &sku + } + case "kind": + if v != nil { + var kind Kind + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + acp.Kind = kind + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + acp.Location = &location + } + case "extendedLocation": + if v != nil { + var extendedLocation ExtendedLocation + err = json.Unmarshal(*v, &extendedLocation) + if err != nil { + return err + } + acp.ExtendedLocation = &extendedLocation + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + acp.Tags = tags + } + case "identity": + if v != nil { + var identity Identity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + acp.Identity = &identity + } + case "properties": + if v != nil { + var accountPropertiesCreateParameters AccountPropertiesCreateParameters + err = json.Unmarshal(*v, &accountPropertiesCreateParameters) + if err != nil { + return err + } + acp.AccountPropertiesCreateParameters = &accountPropertiesCreateParameters + } + } + } + + return nil +} + +// AccountInternetEndpoints the URIs that are used to perform a retrieval of a public blob, file, web or +// dfs object via a internet routing endpoint. +type AccountInternetEndpoints struct { + // Blob - READ-ONLY; Gets the blob endpoint. + Blob *string `json:"blob,omitempty"` + // File - READ-ONLY; Gets the file endpoint. + File *string `json:"file,omitempty"` + // Web - READ-ONLY; Gets the web endpoint. + Web *string `json:"web,omitempty"` + // Dfs - READ-ONLY; Gets the dfs endpoint. + Dfs *string `json:"dfs,omitempty"` +} + +// AccountKey an access key for the storage account. +type AccountKey struct { + // KeyName - READ-ONLY; Name of the key. + KeyName *string `json:"keyName,omitempty"` + // Value - READ-ONLY; Base 64-encoded value of the key. + Value *string `json:"value,omitempty"` + // Permissions - READ-ONLY; Permissions for the key -- read-only or full permissions. Possible values include: 'Read', 'Full' + Permissions KeyPermission `json:"permissions,omitempty"` + // CreationTime - READ-ONLY; Creation time of the key, in round trip date format. + CreationTime *date.Time `json:"creationTime,omitempty"` +} + +// AccountListKeysResult the response from the ListKeys operation. +type AccountListKeysResult struct { + autorest.Response `json:"-"` + // Keys - READ-ONLY; Gets the list of storage account keys and their properties for the specified storage account. + Keys *[]AccountKey `json:"keys,omitempty"` +} + +// AccountListResult the response from the List Storage Accounts operation. +type AccountListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; Gets the list of storage accounts and their properties. + Value *[]Account `json:"value,omitempty"` + // NextLink - READ-ONLY; Request URL that can be used to query next page of storage accounts. Returned when total number of requested storage accounts exceed maximum page size. + NextLink *string `json:"nextLink,omitempty"` +} + +// AccountListResultIterator provides access to a complete listing of Account values. +type AccountListResultIterator struct { + i int + page AccountListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AccountListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AccountListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AccountListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AccountListResultIterator) Response() AccountListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AccountListResultIterator) Value() Account { + if !iter.page.NotDone() { + return Account{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AccountListResultIterator type. +func NewAccountListResultIterator(page AccountListResultPage) AccountListResultIterator { + return AccountListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (alr AccountListResult) IsEmpty() bool { + return alr.Value == nil || len(*alr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (alr AccountListResult) hasNextLink() bool { + return alr.NextLink != nil && len(*alr.NextLink) != 0 +} + +// accountListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (alr AccountListResult) accountListResultPreparer(ctx context.Context) (*http.Request, error) { + if !alr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(alr.NextLink))) +} + +// AccountListResultPage contains a page of Account values. +type AccountListResultPage struct { + fn func(context.Context, AccountListResult) (AccountListResult, error) + alr AccountListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AccountListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AccountListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.alr) + if err != nil { + return err + } + page.alr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AccountListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AccountListResultPage) NotDone() bool { + return !page.alr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AccountListResultPage) Response() AccountListResult { + return page.alr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AccountListResultPage) Values() []Account { + if page.alr.IsEmpty() { + return nil + } + return *page.alr.Value +} + +// Creates a new instance of the AccountListResultPage type. +func NewAccountListResultPage(cur AccountListResult, getNextPage func(context.Context, AccountListResult) (AccountListResult, error)) AccountListResultPage { + return AccountListResultPage{ + fn: getNextPage, + alr: cur, + } +} + +// AccountMicrosoftEndpoints the URIs that are used to perform a retrieval of a public blob, queue, table, +// web or dfs object via a microsoft routing endpoint. +type AccountMicrosoftEndpoints struct { + // Blob - READ-ONLY; Gets the blob endpoint. + Blob *string `json:"blob,omitempty"` + // Queue - READ-ONLY; Gets the queue endpoint. + Queue *string `json:"queue,omitempty"` + // Table - READ-ONLY; Gets the table endpoint. + Table *string `json:"table,omitempty"` + // File - READ-ONLY; Gets the file endpoint. + File *string `json:"file,omitempty"` + // Web - READ-ONLY; Gets the web endpoint. + Web *string `json:"web,omitempty"` + // Dfs - READ-ONLY; Gets the dfs endpoint. + Dfs *string `json:"dfs,omitempty"` +} + +// AccountProperties properties of the storage account. +type AccountProperties struct { + // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' + ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // PrimaryEndpoints - READ-ONLY; Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. + PrimaryEndpoints *Endpoints `json:"primaryEndpoints,omitempty"` + // PrimaryLocation - READ-ONLY; Gets the location of the primary data center for the storage account. + PrimaryLocation *string `json:"primaryLocation,omitempty"` + // StatusOfPrimary - READ-ONLY; Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: 'Available', 'Unavailable' + StatusOfPrimary AccountStatus `json:"statusOfPrimary,omitempty"` + // LastGeoFailoverTime - READ-ONLY; Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS. + LastGeoFailoverTime *date.Time `json:"lastGeoFailoverTime,omitempty"` + // SecondaryLocation - READ-ONLY; Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS. + SecondaryLocation *string `json:"secondaryLocation,omitempty"` + // StatusOfSecondary - READ-ONLY; Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: 'Available', 'Unavailable' + StatusOfSecondary AccountStatus `json:"statusOfSecondary,omitempty"` + // CreationTime - READ-ONLY; Gets the creation date and time of the storage account in UTC. + CreationTime *date.Time `json:"creationTime,omitempty"` + // CustomDomain - READ-ONLY; Gets the custom domain the user assigned to this storage account. + CustomDomain *CustomDomain `json:"customDomain,omitempty"` + // SasPolicy - READ-ONLY; SasPolicy assigned to the storage account. + SasPolicy *SasPolicy `json:"sasPolicy,omitempty"` + // KeyPolicy - READ-ONLY; KeyPolicy assigned to the storage account. + KeyPolicy *KeyPolicy `json:"keyPolicy,omitempty"` + // KeyCreationTime - READ-ONLY; Storage account keys creation time. + KeyCreationTime *KeyCreationTime `json:"keyCreationTime,omitempty"` + // SecondaryEndpoints - READ-ONLY; Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. + SecondaryEndpoints *Endpoints `json:"secondaryEndpoints,omitempty"` + // Encryption - READ-ONLY; Gets the encryption settings on the account. If unspecified, the account is unencrypted. + Encryption *Encryption `json:"encryption,omitempty"` + // AccessTier - READ-ONLY; Required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool' + AccessTier AccessTier `json:"accessTier,omitempty"` + // AzureFilesIdentityBasedAuthentication - Provides the identity based authentication settings for Azure Files. + AzureFilesIdentityBasedAuthentication *AzureFilesIdentityBasedAuthentication `json:"azureFilesIdentityBasedAuthentication,omitempty"` + // EnableHTTPSTrafficOnly - Allows https traffic only to storage service if sets to true. + EnableHTTPSTrafficOnly *bool `json:"supportsHttpsTrafficOnly,omitempty"` + // NetworkRuleSet - READ-ONLY; Network rule set + NetworkRuleSet *NetworkRuleSet `json:"networkAcls,omitempty"` + // IsHnsEnabled - Account HierarchicalNamespace enabled if sets to true. + IsHnsEnabled *bool `json:"isHnsEnabled,omitempty"` + // GeoReplicationStats - READ-ONLY; Geo Replication Stats + GeoReplicationStats *GeoReplicationStats `json:"geoReplicationStats,omitempty"` + // FailoverInProgress - READ-ONLY; If the failover is in progress, the value will be true, otherwise, it will be null. + FailoverInProgress *bool `json:"failoverInProgress,omitempty"` + // LargeFileSharesState - Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible values include: 'LargeFileSharesStateDisabled', 'LargeFileSharesStateEnabled' + LargeFileSharesState LargeFileSharesState `json:"largeFileSharesState,omitempty"` + // PrivateEndpointConnections - READ-ONLY; List of private endpoint connection associated with the specified storage account + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + // RoutingPreference - Maintains information about the network routing choice opted by the user for data transfer + RoutingPreference *RoutingPreference `json:"routingPreference,omitempty"` + // BlobRestoreStatus - READ-ONLY; Blob restore status + BlobRestoreStatus *BlobRestoreStatus `json:"blobRestoreStatus,omitempty"` + // AllowBlobPublicAccess - Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. + AllowBlobPublicAccess *bool `json:"allowBlobPublicAccess,omitempty"` + // MinimumTLSVersion - Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Possible values include: 'TLS10', 'TLS11', 'TLS12' + MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + // AllowSharedKeyAccess - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. + AllowSharedKeyAccess *bool `json:"allowSharedKeyAccess,omitempty"` + // EnableNfsV3 - NFS 3.0 protocol support enabled if set to true. + EnableNfsV3 *bool `json:"isNfsV3Enabled,omitempty"` +} + +// MarshalJSON is the custom marshaler for AccountProperties. +func (ap AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ap.AzureFilesIdentityBasedAuthentication != nil { + objectMap["azureFilesIdentityBasedAuthentication"] = ap.AzureFilesIdentityBasedAuthentication + } + if ap.EnableHTTPSTrafficOnly != nil { + objectMap["supportsHttpsTrafficOnly"] = ap.EnableHTTPSTrafficOnly + } + if ap.IsHnsEnabled != nil { + objectMap["isHnsEnabled"] = ap.IsHnsEnabled + } + if ap.LargeFileSharesState != "" { + objectMap["largeFileSharesState"] = ap.LargeFileSharesState + } + if ap.RoutingPreference != nil { + objectMap["routingPreference"] = ap.RoutingPreference + } + if ap.AllowBlobPublicAccess != nil { + objectMap["allowBlobPublicAccess"] = ap.AllowBlobPublicAccess + } + if ap.MinimumTLSVersion != "" { + objectMap["minimumTlsVersion"] = ap.MinimumTLSVersion + } + if ap.AllowSharedKeyAccess != nil { + objectMap["allowSharedKeyAccess"] = ap.AllowSharedKeyAccess + } + if ap.EnableNfsV3 != nil { + objectMap["isNfsV3Enabled"] = ap.EnableNfsV3 + } + return json.Marshal(objectMap) +} + +// AccountPropertiesCreateParameters the parameters used to create the storage account. +type AccountPropertiesCreateParameters struct { + // SasPolicy - SasPolicy assigned to the storage account. + SasPolicy *SasPolicy `json:"sasPolicy,omitempty"` + // KeyPolicy - KeyPolicy assigned to the storage account. + KeyPolicy *KeyPolicy `json:"keyPolicy,omitempty"` + // CustomDomain - User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. + CustomDomain *CustomDomain `json:"customDomain,omitempty"` + // Encryption - Not applicable. Azure Storage encryption is enabled for all storage accounts and cannot be disabled. + Encryption *Encryption `json:"encryption,omitempty"` + // NetworkRuleSet - Network rule set + NetworkRuleSet *NetworkRuleSet `json:"networkAcls,omitempty"` + // AccessTier - Required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool' + AccessTier AccessTier `json:"accessTier,omitempty"` + // AzureFilesIdentityBasedAuthentication - Provides the identity based authentication settings for Azure Files. + AzureFilesIdentityBasedAuthentication *AzureFilesIdentityBasedAuthentication `json:"azureFilesIdentityBasedAuthentication,omitempty"` + // EnableHTTPSTrafficOnly - Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01. + EnableHTTPSTrafficOnly *bool `json:"supportsHttpsTrafficOnly,omitempty"` + // IsHnsEnabled - Account HierarchicalNamespace enabled if sets to true. + IsHnsEnabled *bool `json:"isHnsEnabled,omitempty"` + // LargeFileSharesState - Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible values include: 'LargeFileSharesStateDisabled', 'LargeFileSharesStateEnabled' + LargeFileSharesState LargeFileSharesState `json:"largeFileSharesState,omitempty"` + // RoutingPreference - Maintains information about the network routing choice opted by the user for data transfer + RoutingPreference *RoutingPreference `json:"routingPreference,omitempty"` + // AllowBlobPublicAccess - Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. + AllowBlobPublicAccess *bool `json:"allowBlobPublicAccess,omitempty"` + // MinimumTLSVersion - Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Possible values include: 'TLS10', 'TLS11', 'TLS12' + MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + // AllowSharedKeyAccess - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. + AllowSharedKeyAccess *bool `json:"allowSharedKeyAccess,omitempty"` + // EnableNfsV3 - NFS 3.0 protocol support enabled if set to true. + EnableNfsV3 *bool `json:"isNfsV3Enabled,omitempty"` +} + +// AccountPropertiesUpdateParameters the parameters used when updating a storage account. +type AccountPropertiesUpdateParameters struct { + // CustomDomain - Custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. + CustomDomain *CustomDomain `json:"customDomain,omitempty"` + // Encryption - Provides the encryption settings on the account. The default setting is unencrypted. + Encryption *Encryption `json:"encryption,omitempty"` + // SasPolicy - SasPolicy assigned to the storage account. + SasPolicy *SasPolicy `json:"sasPolicy,omitempty"` + // KeyPolicy - KeyPolicy assigned to the storage account. + KeyPolicy *KeyPolicy `json:"keyPolicy,omitempty"` + // AccessTier - Required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool' + AccessTier AccessTier `json:"accessTier,omitempty"` + // AzureFilesIdentityBasedAuthentication - Provides the identity based authentication settings for Azure Files. + AzureFilesIdentityBasedAuthentication *AzureFilesIdentityBasedAuthentication `json:"azureFilesIdentityBasedAuthentication,omitempty"` + // EnableHTTPSTrafficOnly - Allows https traffic only to storage service if sets to true. + EnableHTTPSTrafficOnly *bool `json:"supportsHttpsTrafficOnly,omitempty"` + // NetworkRuleSet - Network rule set + NetworkRuleSet *NetworkRuleSet `json:"networkAcls,omitempty"` + // LargeFileSharesState - Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible values include: 'LargeFileSharesStateDisabled', 'LargeFileSharesStateEnabled' + LargeFileSharesState LargeFileSharesState `json:"largeFileSharesState,omitempty"` + // RoutingPreference - Maintains information about the network routing choice opted by the user for data transfer + RoutingPreference *RoutingPreference `json:"routingPreference,omitempty"` + // AllowBlobPublicAccess - Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. + AllowBlobPublicAccess *bool `json:"allowBlobPublicAccess,omitempty"` + // MinimumTLSVersion - Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Possible values include: 'TLS10', 'TLS11', 'TLS12' + MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"` + // AllowSharedKeyAccess - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. + AllowSharedKeyAccess *bool `json:"allowSharedKeyAccess,omitempty"` +} + +// AccountRegenerateKeyParameters the parameters used to regenerate the storage account key. +type AccountRegenerateKeyParameters struct { + // KeyName - The name of storage keys that want to be regenerated, possible values are key1, key2, kerb1, kerb2. + KeyName *string `json:"keyName,omitempty"` +} + +// AccountSasParameters the parameters to list SAS credentials of a storage account. +type AccountSasParameters struct { + // Services - The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'B', 'Q', 'T', 'F' + Services Services `json:"signedServices,omitempty"` + // ResourceTypes - The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 'SignedResourceTypesS', 'SignedResourceTypesC', 'SignedResourceTypesO' + ResourceTypes SignedResourceTypes `json:"signedResourceTypes,omitempty"` + // Permissions - The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'R', 'D', 'W', 'L', 'A', 'C', 'U', 'P' + Permissions Permissions `json:"signedPermission,omitempty"` + // IPAddressOrRange - An IP address or a range of IP addresses from which to accept requests. + IPAddressOrRange *string `json:"signedIp,omitempty"` + // Protocols - The protocol permitted for a request made with the account SAS. Possible values include: 'Httpshttp', 'HTTPS' + Protocols HTTPProtocol `json:"signedProtocol,omitempty"` + // SharedAccessStartTime - The time at which the SAS becomes valid. + SharedAccessStartTime *date.Time `json:"signedStart,omitempty"` + // SharedAccessExpiryTime - The time at which the shared access signature becomes invalid. + SharedAccessExpiryTime *date.Time `json:"signedExpiry,omitempty"` + // KeyToSign - The key to sign the account SAS token with. + KeyToSign *string `json:"keyToSign,omitempty"` +} + +// AccountUpdateParameters the parameters that can be provided when updating the storage account +// properties. +type AccountUpdateParameters struct { + // Sku - Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those SKU names be updated to any other value. + Sku *Sku `json:"sku,omitempty"` + // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. + Tags map[string]*string `json:"tags"` + // Identity - The identity of the resource. + Identity *Identity `json:"identity,omitempty"` + // AccountPropertiesUpdateParameters - The parameters used when updating a storage account. + *AccountPropertiesUpdateParameters `json:"properties,omitempty"` + // Kind - Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage' + Kind Kind `json:"kind,omitempty"` +} + +// MarshalJSON is the custom marshaler for AccountUpdateParameters. +func (aup AccountUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aup.Sku != nil { + objectMap["sku"] = aup.Sku + } + if aup.Tags != nil { + objectMap["tags"] = aup.Tags + } + if aup.Identity != nil { + objectMap["identity"] = aup.Identity + } + if aup.AccountPropertiesUpdateParameters != nil { + objectMap["properties"] = aup.AccountPropertiesUpdateParameters + } + if aup.Kind != "" { + objectMap["kind"] = aup.Kind + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AccountUpdateParameters struct. +func (aup *AccountUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + aup.Sku = &sku + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + aup.Tags = tags + } + case "identity": + if v != nil { + var identity Identity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + aup.Identity = &identity + } + case "properties": + if v != nil { + var accountPropertiesUpdateParameters AccountPropertiesUpdateParameters + err = json.Unmarshal(*v, &accountPropertiesUpdateParameters) + if err != nil { + return err + } + aup.AccountPropertiesUpdateParameters = &accountPropertiesUpdateParameters + } + case "kind": + if v != nil { + var kind Kind + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + aup.Kind = kind + } + } + } + + return nil +} + +// AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AccountsCreateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(AccountsClient) (Account, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *AccountsCreateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for AccountsCreateFuture.Result. +func (future *AccountsCreateFuture) result(client AccountsClient) (a Account, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("storage.AccountsCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if a.Response.Response, err = future.GetResult(sender); err == nil && a.Response.Response.StatusCode != http.StatusNoContent { + a, err = client.CreateResponder(a.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsCreateFuture", "Result", a.Response.Response, "Failure responding to request") + } + } + return +} + +// AccountsFailoverFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AccountsFailoverFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(AccountsClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *AccountsFailoverFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for AccountsFailoverFuture.Result. +func (future *AccountsFailoverFuture) result(client AccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsFailoverFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("storage.AccountsFailoverFuture") + return + } + ar.Response = future.Response() + return +} + +// AccountsRestoreBlobRangesFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type AccountsRestoreBlobRangesFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(AccountsClient) (BlobRestoreStatus, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *AccountsRestoreBlobRangesFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for AccountsRestoreBlobRangesFuture.Result. +func (future *AccountsRestoreBlobRangesFuture) result(client AccountsClient) (brs BlobRestoreStatus, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsRestoreBlobRangesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("storage.AccountsRestoreBlobRangesFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if brs.Response.Response, err = future.GetResult(sender); err == nil && brs.Response.Response.StatusCode != http.StatusNoContent { + brs, err = client.RestoreBlobRangesResponder(brs.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.AccountsRestoreBlobRangesFuture", "Result", brs.Response.Response, "Failure responding to request") + } + } + return +} + +// ActiveDirectoryProperties settings properties for Active Directory (AD). +type ActiveDirectoryProperties struct { + // DomainName - Specifies the primary domain that the AD DNS server is authoritative for. + DomainName *string `json:"domainName,omitempty"` + // NetBiosDomainName - Specifies the NetBIOS domain name. + NetBiosDomainName *string `json:"netBiosDomainName,omitempty"` + // ForestName - Specifies the Active Directory forest to get. + ForestName *string `json:"forestName,omitempty"` + // DomainGUID - Specifies the domain GUID. + DomainGUID *string `json:"domainGuid,omitempty"` + // DomainSid - Specifies the security identifier (SID). + DomainSid *string `json:"domainSid,omitempty"` + // AzureStorageSid - Specifies the security identifier (SID) for Azure Storage. + AzureStorageSid *string `json:"azureStorageSid,omitempty"` +} + +// AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag. +type AzureEntityResource struct { + // Etag - READ-ONLY; Resource Etag. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// AzureFilesIdentityBasedAuthentication settings for Azure Files identity based authentication. +type AzureFilesIdentityBasedAuthentication struct { + // DirectoryServiceOptions - Indicates the directory service used. Possible values include: 'DirectoryServiceOptionsNone', 'DirectoryServiceOptionsAADDS', 'DirectoryServiceOptionsAD' + DirectoryServiceOptions DirectoryServiceOptions `json:"directoryServiceOptions,omitempty"` + // ActiveDirectoryProperties - Required if choose AD. + ActiveDirectoryProperties *ActiveDirectoryProperties `json:"activeDirectoryProperties,omitempty"` +} + +// BlobContainer properties of the blob container, including Id, resource name, resource type, Etag. +type BlobContainer struct { + autorest.Response `json:"-"` + // ContainerProperties - Properties of the blob container. + *ContainerProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; Resource Etag. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BlobContainer. +func (bc BlobContainer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bc.ContainerProperties != nil { + objectMap["properties"] = bc.ContainerProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BlobContainer struct. +func (bc *BlobContainer) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var containerProperties ContainerProperties + err = json.Unmarshal(*v, &containerProperties) + if err != nil { + return err + } + bc.ContainerProperties = &containerProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + bc.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bc.Type = &typeVar + } + } + } + + return nil +} + +// BlobInventoryPolicy the storage account blob inventory policy. +type BlobInventoryPolicy struct { + autorest.Response `json:"-"` + // BlobInventoryPolicyProperties - Returns the storage account blob inventory policy rules. + *BlobInventoryPolicyProperties `json:"properties,omitempty"` + SystemData *SystemData `json:"systemData,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BlobInventoryPolicy. +func (bip BlobInventoryPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bip.BlobInventoryPolicyProperties != nil { + objectMap["properties"] = bip.BlobInventoryPolicyProperties + } + if bip.SystemData != nil { + objectMap["systemData"] = bip.SystemData + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BlobInventoryPolicy struct. +func (bip *BlobInventoryPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var blobInventoryPolicyProperties BlobInventoryPolicyProperties + err = json.Unmarshal(*v, &blobInventoryPolicyProperties) + if err != nil { + return err + } + bip.BlobInventoryPolicyProperties = &blobInventoryPolicyProperties + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + bip.SystemData = &systemData + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bip.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bip.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bip.Type = &typeVar + } + } + } + + return nil +} + +// BlobInventoryPolicyDefinition an object that defines the blob inventory rule. Each definition consists +// of a set of filters. +type BlobInventoryPolicyDefinition struct { + // Filters - An object that defines the filter set. + Filters *BlobInventoryPolicyFilter `json:"filters,omitempty"` +} + +// BlobInventoryPolicyFilter an object that defines the blob inventory rule filter conditions. +type BlobInventoryPolicyFilter struct { + // PrefixMatch - An array of strings for blob prefixes to be matched. + PrefixMatch *[]string `json:"prefixMatch,omitempty"` + // BlobTypes - An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. + BlobTypes *[]string `json:"blobTypes,omitempty"` + // IncludeBlobVersions - Includes blob versions in blob inventory when value set to true. + IncludeBlobVersions *bool `json:"includeBlobVersions,omitempty"` + // IncludeSnapshots - Includes blob snapshots in blob inventory when value set to true. + IncludeSnapshots *bool `json:"includeSnapshots,omitempty"` +} + +// BlobInventoryPolicyProperties the storage account blob inventory policy properties. +type BlobInventoryPolicyProperties struct { + // LastModifiedTime - READ-ONLY; Returns the last modified date and time of the blob inventory policy. + LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` + // Policy - The storage account blob inventory policy object. It is composed of policy rules. + Policy *BlobInventoryPolicySchema `json:"policy,omitempty"` +} + +// MarshalJSON is the custom marshaler for BlobInventoryPolicyProperties. +func (bipp BlobInventoryPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bipp.Policy != nil { + objectMap["policy"] = bipp.Policy + } + return json.Marshal(objectMap) +} + +// BlobInventoryPolicyRule an object that wraps the blob inventory rule. Each rule is uniquely defined by +// name. +type BlobInventoryPolicyRule struct { + // Enabled - Rule is enabled when set to true. + Enabled *bool `json:"enabled,omitempty"` + // Name - A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. + Name *string `json:"name,omitempty"` + // Definition - An object that defines the blob inventory policy rule. + Definition *BlobInventoryPolicyDefinition `json:"definition,omitempty"` +} + +// BlobInventoryPolicySchema the storage account blob inventory policy rules. +type BlobInventoryPolicySchema struct { + // Enabled - Policy is enabled if set to true. + Enabled *bool `json:"enabled,omitempty"` + // Destination - Container name where blob inventory files are stored. Must be pre-created. + Destination *string `json:"destination,omitempty"` + // Type - The valid value is Inventory + Type *string `json:"type,omitempty"` + // Rules - The storage account blob inventory policy rules. The rule is applied when it is enabled. + Rules *[]BlobInventoryPolicyRule `json:"rules,omitempty"` +} + +// BlobRestoreParameters blob restore parameters +type BlobRestoreParameters struct { + // TimeToRestore - Restore blob to the specified time. + TimeToRestore *date.Time `json:"timeToRestore,omitempty"` + // BlobRanges - Blob ranges to restore. + BlobRanges *[]BlobRestoreRange `json:"blobRanges,omitempty"` +} + +// BlobRestoreRange blob range +type BlobRestoreRange struct { + // StartRange - Blob start range. This is inclusive. Empty means account start. + StartRange *string `json:"startRange,omitempty"` + // EndRange - Blob end range. This is exclusive. Empty means account end. + EndRange *string `json:"endRange,omitempty"` +} + +// BlobRestoreStatus blob restore status. +type BlobRestoreStatus struct { + autorest.Response `json:"-"` + // Status - READ-ONLY; The status of blob restore progress. Possible values are: - InProgress: Indicates that blob restore is ongoing. - Complete: Indicates that blob restore has been completed successfully. - Failed: Indicates that blob restore is failed. Possible values include: 'InProgress', 'Complete', 'Failed' + Status BlobRestoreProgressStatus `json:"status,omitempty"` + // FailureReason - READ-ONLY; Failure reason when blob restore is failed. + FailureReason *string `json:"failureReason,omitempty"` + // RestoreID - READ-ONLY; Id for tracking blob restore request. + RestoreID *string `json:"restoreId,omitempty"` + // Parameters - READ-ONLY; Blob restore request parameters. + Parameters *BlobRestoreParameters `json:"parameters,omitempty"` +} + +// BlobServiceItems ... +type BlobServiceItems struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of blob services returned. + Value *[]BlobServiceProperties `json:"value,omitempty"` +} + +// BlobServiceProperties the properties of a storage account’s Blob service. +type BlobServiceProperties struct { + autorest.Response `json:"-"` + // BlobServicePropertiesProperties - The properties of a storage account’s Blob service. + *BlobServicePropertiesProperties `json:"properties,omitempty"` + // Sku - READ-ONLY; Sku name and tier. + Sku *Sku `json:"sku,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BlobServiceProperties. +func (bsp BlobServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bsp.BlobServicePropertiesProperties != nil { + objectMap["properties"] = bsp.BlobServicePropertiesProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for BlobServiceProperties struct. +func (bsp *BlobServiceProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var blobServiceProperties BlobServicePropertiesProperties + err = json.Unmarshal(*v, &blobServiceProperties) + if err != nil { + return err + } + bsp.BlobServicePropertiesProperties = &blobServiceProperties + } + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + bsp.Sku = &sku + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + bsp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + bsp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bsp.Type = &typeVar + } + } + } + + return nil +} + +// BlobServicePropertiesProperties the properties of a storage account’s Blob service. +type BlobServicePropertiesProperties struct { + // Cors - Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service. + Cors *CorsRules `json:"cors,omitempty"` + // DefaultServiceVersion - DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions. + DefaultServiceVersion *string `json:"defaultServiceVersion,omitempty"` + // DeleteRetentionPolicy - The blob service properties for blob soft delete. + DeleteRetentionPolicy *DeleteRetentionPolicy `json:"deleteRetentionPolicy,omitempty"` + // IsVersioningEnabled - Versioning is enabled if set to true. + IsVersioningEnabled *bool `json:"isVersioningEnabled,omitempty"` + // AutomaticSnapshotPolicyEnabled - Deprecated in favor of isVersioningEnabled property. + AutomaticSnapshotPolicyEnabled *bool `json:"automaticSnapshotPolicyEnabled,omitempty"` + // ChangeFeed - The blob service properties for change feed events. + ChangeFeed *ChangeFeed `json:"changeFeed,omitempty"` + // RestorePolicy - The blob service properties for blob restore policy. + RestorePolicy *RestorePolicyProperties `json:"restorePolicy,omitempty"` + // ContainerDeleteRetentionPolicy - The blob service properties for container soft delete. + ContainerDeleteRetentionPolicy *DeleteRetentionPolicy `json:"containerDeleteRetentionPolicy,omitempty"` + // LastAccessTimeTrackingPolicy - The blob service property to configure last access time based tracking policy. + LastAccessTimeTrackingPolicy *LastAccessTimeTrackingPolicy `json:"lastAccessTimeTrackingPolicy,omitempty"` +} + +// ChangeFeed the blob service properties for change feed events. +type ChangeFeed struct { + // Enabled - Indicates whether change feed event logging is enabled for the Blob service. + Enabled *bool `json:"enabled,omitempty"` + // RetentionInDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed. + RetentionInDays *int32 `json:"retentionInDays,omitempty"` +} + +// CheckNameAvailabilityResult the CheckNameAvailability operation response. +type CheckNameAvailabilityResult struct { + autorest.Response `json:"-"` + // NameAvailable - READ-ONLY; Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. + NameAvailable *bool `json:"nameAvailable,omitempty"` + // Reason - READ-ONLY; Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists' + Reason Reason `json:"reason,omitempty"` + // Message - READ-ONLY; Gets an error message explaining the Reason value in more detail. + Message *string `json:"message,omitempty"` +} + +// CloudError an error response from the Storage service. +type CloudError struct { + Error *CloudErrorBody `json:"error,omitempty"` +} + +// CloudErrorBody an error response from the Storage service. +type CloudErrorBody struct { + // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Code *string `json:"code,omitempty"` + // Message - A message describing the error, intended to be suitable for display in a user interface. + Message *string `json:"message,omitempty"` + // Target - The target of the particular error. For example, the name of the property in error. + Target *string `json:"target,omitempty"` + // Details - A list of additional details about the error. + Details *[]CloudErrorBody `json:"details,omitempty"` +} + +// ContainerProperties the properties of a container. +type ContainerProperties struct { + // Version - READ-ONLY; The version of the deleted blob container. + Version *string `json:"version,omitempty"` + // Deleted - READ-ONLY; Indicates whether the blob container was deleted. + Deleted *bool `json:"deleted,omitempty"` + // DeletedTime - READ-ONLY; Blob container deletion time. + DeletedTime *date.Time `json:"deletedTime,omitempty"` + // RemainingRetentionDays - READ-ONLY; Remaining retention days for soft deleted blob container. + RemainingRetentionDays *int32 `json:"remainingRetentionDays,omitempty"` + // DefaultEncryptionScope - Default the container to use specified encryption scope for all writes. + DefaultEncryptionScope *string `json:"defaultEncryptionScope,omitempty"` + // DenyEncryptionScopeOverride - Block override of encryption scope from the container default. + DenyEncryptionScopeOverride *bool `json:"denyEncryptionScopeOverride,omitempty"` + // PublicAccess - Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'PublicAccessContainer', 'PublicAccessBlob', 'PublicAccessNone' + PublicAccess PublicAccess `json:"publicAccess,omitempty"` + // LastModifiedTime - READ-ONLY; Returns the date and time the container was last modified. + LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` + // LeaseStatus - READ-ONLY; The lease status of the container. Possible values include: 'LeaseStatusLocked', 'LeaseStatusUnlocked' + LeaseStatus LeaseStatus `json:"leaseStatus,omitempty"` + // LeaseState - READ-ONLY; Lease state of the container. Possible values include: 'LeaseStateAvailable', 'LeaseStateLeased', 'LeaseStateExpired', 'LeaseStateBreaking', 'LeaseStateBroken' + LeaseState LeaseState `json:"leaseState,omitempty"` + // LeaseDuration - READ-ONLY; Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed' + LeaseDuration LeaseDuration `json:"leaseDuration,omitempty"` + // Metadata - A name-value pair to associate with the container as metadata. + Metadata map[string]*string `json:"metadata"` + // ImmutabilityPolicy - READ-ONLY; The ImmutabilityPolicy property of the container. + ImmutabilityPolicy *ImmutabilityPolicyProperties `json:"immutabilityPolicy,omitempty"` + // LegalHold - READ-ONLY; The LegalHold property of the container. + LegalHold *LegalHoldProperties `json:"legalHold,omitempty"` + // HasLegalHold - READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + HasLegalHold *bool `json:"hasLegalHold,omitempty"` + // HasImmutabilityPolicy - READ-ONLY; The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. + HasImmutabilityPolicy *bool `json:"hasImmutabilityPolicy,omitempty"` +} + +// MarshalJSON is the custom marshaler for ContainerProperties. +func (cp ContainerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cp.DefaultEncryptionScope != nil { + objectMap["defaultEncryptionScope"] = cp.DefaultEncryptionScope + } + if cp.DenyEncryptionScopeOverride != nil { + objectMap["denyEncryptionScopeOverride"] = cp.DenyEncryptionScopeOverride + } + if cp.PublicAccess != "" { + objectMap["publicAccess"] = cp.PublicAccess + } + if cp.Metadata != nil { + objectMap["metadata"] = cp.Metadata + } + return json.Marshal(objectMap) +} + +// CorsRule specifies a CORS rule for the Blob service. +type CorsRule struct { + // AllowedOrigins - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains + AllowedOrigins *[]string `json:"allowedOrigins,omitempty"` + // AllowedMethods - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin. + AllowedMethods *[]string `json:"allowedMethods,omitempty"` + // MaxAgeInSeconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response. + MaxAgeInSeconds *int32 `json:"maxAgeInSeconds,omitempty"` + // ExposedHeaders - Required if CorsRule element is present. A list of response headers to expose to CORS clients. + ExposedHeaders *[]string `json:"exposedHeaders,omitempty"` + // AllowedHeaders - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request. + AllowedHeaders *[]string `json:"allowedHeaders,omitempty"` +} + +// CorsRules sets the CORS rules. You can include up to five CorsRule elements in the request. +type CorsRules struct { + // CorsRules - The List of CORS rules. You can include up to five CorsRule elements in the request. + CorsRules *[]CorsRule `json:"corsRules,omitempty"` +} + +// CustomDomain the custom domain assigned to this storage account. This can be set via Update. +type CustomDomain struct { + // Name - Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. + Name *string `json:"name,omitempty"` + // UseSubDomainName - Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + UseSubDomainName *bool `json:"useSubDomainName,omitempty"` +} + +// DateAfterCreation object to define the number of days after creation. +type DateAfterCreation struct { + // DaysAfterCreationGreaterThan - Value indicating the age in days after creation + DaysAfterCreationGreaterThan *float64 `json:"daysAfterCreationGreaterThan,omitempty"` +} + +// DateAfterModification object to define the number of days after object last modification Or last access. +// Properties daysAfterModificationGreaterThan and daysAfterLastAccessTimeGreaterThan are mutually +// exclusive. +type DateAfterModification struct { + // DaysAfterModificationGreaterThan - Value indicating the age in days after last modification + DaysAfterModificationGreaterThan *float64 `json:"daysAfterModificationGreaterThan,omitempty"` + // DaysAfterLastAccessTimeGreaterThan - Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy + DaysAfterLastAccessTimeGreaterThan *float64 `json:"daysAfterLastAccessTimeGreaterThan,omitempty"` +} + +// DeleteRetentionPolicy the service properties for soft delete. +type DeleteRetentionPolicy struct { + // Enabled - Indicates whether DeleteRetentionPolicy is enabled. + Enabled *bool `json:"enabled,omitempty"` + // Days - Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365. + Days *int32 `json:"days,omitempty"` +} + +// DeletedAccount deleted storage account +type DeletedAccount struct { + autorest.Response `json:"-"` + // DeletedAccountProperties - Properties of the deleted account. + *DeletedAccountProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeletedAccount. +func (da DeletedAccount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if da.DeletedAccountProperties != nil { + objectMap["properties"] = da.DeletedAccountProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DeletedAccount struct. +func (da *DeletedAccount) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var deletedAccountProperties DeletedAccountProperties + err = json.Unmarshal(*v, &deletedAccountProperties) + if err != nil { + return err + } + da.DeletedAccountProperties = &deletedAccountProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + da.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + da.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + da.Type = &typeVar + } + } + } + + return nil +} + +// DeletedAccountListResult the response from the List Deleted Accounts operation. +type DeletedAccountListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; Gets the list of deleted accounts and their properties. + Value *[]DeletedAccount `json:"value,omitempty"` + // NextLink - READ-ONLY; Request URL that can be used to query next page of deleted accounts. Returned when total number of requested deleted accounts exceed maximum page size. + NextLink *string `json:"nextLink,omitempty"` +} + +// DeletedAccountListResultIterator provides access to a complete listing of DeletedAccount values. +type DeletedAccountListResultIterator struct { + i int + page DeletedAccountListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *DeletedAccountListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeletedAccountListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *DeletedAccountListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter DeletedAccountListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter DeletedAccountListResultIterator) Response() DeletedAccountListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter DeletedAccountListResultIterator) Value() DeletedAccount { + if !iter.page.NotDone() { + return DeletedAccount{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the DeletedAccountListResultIterator type. +func NewDeletedAccountListResultIterator(page DeletedAccountListResultPage) DeletedAccountListResultIterator { + return DeletedAccountListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (dalr DeletedAccountListResult) IsEmpty() bool { + return dalr.Value == nil || len(*dalr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (dalr DeletedAccountListResult) hasNextLink() bool { + return dalr.NextLink != nil && len(*dalr.NextLink) != 0 +} + +// deletedAccountListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (dalr DeletedAccountListResult) deletedAccountListResultPreparer(ctx context.Context) (*http.Request, error) { + if !dalr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(dalr.NextLink))) +} + +// DeletedAccountListResultPage contains a page of DeletedAccount values. +type DeletedAccountListResultPage struct { + fn func(context.Context, DeletedAccountListResult) (DeletedAccountListResult, error) + dalr DeletedAccountListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *DeletedAccountListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeletedAccountListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.dalr) + if err != nil { + return err + } + page.dalr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *DeletedAccountListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page DeletedAccountListResultPage) NotDone() bool { + return !page.dalr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page DeletedAccountListResultPage) Response() DeletedAccountListResult { + return page.dalr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page DeletedAccountListResultPage) Values() []DeletedAccount { + if page.dalr.IsEmpty() { + return nil + } + return *page.dalr.Value +} + +// Creates a new instance of the DeletedAccountListResultPage type. +func NewDeletedAccountListResultPage(cur DeletedAccountListResult, getNextPage func(context.Context, DeletedAccountListResult) (DeletedAccountListResult, error)) DeletedAccountListResultPage { + return DeletedAccountListResultPage{ + fn: getNextPage, + dalr: cur, + } +} + +// DeletedAccountProperties attributes of a deleted storage account. +type DeletedAccountProperties struct { + // StorageAccountResourceID - READ-ONLY; Full resource id of the original storage account. + StorageAccountResourceID *string `json:"storageAccountResourceId,omitempty"` + // Location - READ-ONLY; Location of the deleted account. + Location *string `json:"location,omitempty"` + // RestoreReference - READ-ONLY; Can be used to attempt recovering this deleted account via PutStorageAccount API. + RestoreReference *string `json:"restoreReference,omitempty"` + // CreationTime - READ-ONLY; Creation time of the deleted account. + CreationTime *string `json:"creationTime,omitempty"` + // DeletionTime - READ-ONLY; Deletion time of the deleted account. + DeletionTime *string `json:"deletionTime,omitempty"` +} + +// DeletedShare the deleted share to be restored. +type DeletedShare struct { + // DeletedShareName - Required. Identify the name of the deleted share that will be restored. + DeletedShareName *string `json:"deletedShareName,omitempty"` + // DeletedShareVersion - Required. Identify the version of the deleted share that will be restored. + DeletedShareVersion *string `json:"deletedShareVersion,omitempty"` +} + +// Dimension dimension of blobs, possibly be blob type or access tier. +type Dimension struct { + // Name - Display name of dimension. + Name *string `json:"name,omitempty"` + // DisplayName - Display name of dimension. + DisplayName *string `json:"displayName,omitempty"` +} + +// Encryption the encryption settings on the storage account. +type Encryption struct { + // Services - List of services which support encryption. + Services *EncryptionServices `json:"services,omitempty"` + // KeySource - The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible values include: 'KeySourceMicrosoftStorage', 'KeySourceMicrosoftKeyvault' + KeySource KeySource `json:"keySource,omitempty"` + // RequireInfrastructureEncryption - A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest. + RequireInfrastructureEncryption *bool `json:"requireInfrastructureEncryption,omitempty"` + // KeyVaultProperties - Properties provided by key vault. + KeyVaultProperties *KeyVaultProperties `json:"keyvaultproperties,omitempty"` + // EncryptionIdentity - The identity to be used with service-side encryption at rest. + EncryptionIdentity *EncryptionIdentity `json:"identity,omitempty"` +} + +// EncryptionIdentity encryption identity for the storage account. +type EncryptionIdentity struct { + // EncryptionUserAssignedIdentity - Resource identifier of the UserAssigned identity to be associated with server-side encryption on the storage account. + EncryptionUserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` +} + +// EncryptionScope the Encryption Scope resource. +type EncryptionScope struct { + autorest.Response `json:"-"` + // EncryptionScopeProperties - Properties of the encryption scope. + *EncryptionScopeProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for EncryptionScope. +func (es EncryptionScope) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if es.EncryptionScopeProperties != nil { + objectMap["properties"] = es.EncryptionScopeProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for EncryptionScope struct. +func (es *EncryptionScope) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var encryptionScopeProperties EncryptionScopeProperties + err = json.Unmarshal(*v, &encryptionScopeProperties) + if err != nil { + return err + } + es.EncryptionScopeProperties = &encryptionScopeProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + es.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + es.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + es.Type = &typeVar + } + } + } + + return nil +} + +// EncryptionScopeKeyVaultProperties the key vault properties for the encryption scope. This is a required +// field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'. +type EncryptionScopeKeyVaultProperties struct { + // KeyURI - The object identifier for a key vault key object. When applied, the encryption scope will use the key referenced by the identifier to enable customer-managed key support on this encryption scope. + KeyURI *string `json:"keyUri,omitempty"` + // CurrentVersionedKeyIdentifier - READ-ONLY; The object identifier of the current versioned Key Vault Key in use. + CurrentVersionedKeyIdentifier *string `json:"currentVersionedKeyIdentifier,omitempty"` + // LastKeyRotationTimestamp - READ-ONLY; Timestamp of last rotation of the Key Vault Key. + LastKeyRotationTimestamp *date.Time `json:"lastKeyRotationTimestamp,omitempty"` +} + +// MarshalJSON is the custom marshaler for EncryptionScopeKeyVaultProperties. +func (eskvp EncryptionScopeKeyVaultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if eskvp.KeyURI != nil { + objectMap["keyUri"] = eskvp.KeyURI + } + return json.Marshal(objectMap) +} + +// EncryptionScopeListResult list of encryption scopes requested, and if paging is required, a URL to the +// next page of encryption scopes. +type EncryptionScopeListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of encryption scopes requested. + Value *[]EncryptionScope `json:"value,omitempty"` + // NextLink - READ-ONLY; Request URL that can be used to query next page of encryption scopes. Returned when total number of requested encryption scopes exceeds the maximum page size. + NextLink *string `json:"nextLink,omitempty"` +} + +// EncryptionScopeListResultIterator provides access to a complete listing of EncryptionScope values. +type EncryptionScopeListResultIterator struct { + i int + page EncryptionScopeListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *EncryptionScopeListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopeListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *EncryptionScopeListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter EncryptionScopeListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter EncryptionScopeListResultIterator) Response() EncryptionScopeListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter EncryptionScopeListResultIterator) Value() EncryptionScope { + if !iter.page.NotDone() { + return EncryptionScope{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the EncryptionScopeListResultIterator type. +func NewEncryptionScopeListResultIterator(page EncryptionScopeListResultPage) EncryptionScopeListResultIterator { + return EncryptionScopeListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (eslr EncryptionScopeListResult) IsEmpty() bool { + return eslr.Value == nil || len(*eslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (eslr EncryptionScopeListResult) hasNextLink() bool { + return eslr.NextLink != nil && len(*eslr.NextLink) != 0 +} + +// encryptionScopeListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (eslr EncryptionScopeListResult) encryptionScopeListResultPreparer(ctx context.Context) (*http.Request, error) { + if !eslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(eslr.NextLink))) +} + +// EncryptionScopeListResultPage contains a page of EncryptionScope values. +type EncryptionScopeListResultPage struct { + fn func(context.Context, EncryptionScopeListResult) (EncryptionScopeListResult, error) + eslr EncryptionScopeListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *EncryptionScopeListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopeListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.eslr) + if err != nil { + return err + } + page.eslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *EncryptionScopeListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page EncryptionScopeListResultPage) NotDone() bool { + return !page.eslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page EncryptionScopeListResultPage) Response() EncryptionScopeListResult { + return page.eslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page EncryptionScopeListResultPage) Values() []EncryptionScope { + if page.eslr.IsEmpty() { + return nil + } + return *page.eslr.Value +} + +// Creates a new instance of the EncryptionScopeListResultPage type. +func NewEncryptionScopeListResultPage(cur EncryptionScopeListResult, getNextPage func(context.Context, EncryptionScopeListResult) (EncryptionScopeListResult, error)) EncryptionScopeListResultPage { + return EncryptionScopeListResultPage{ + fn: getNextPage, + eslr: cur, + } +} + +// EncryptionScopeProperties properties of the encryption scope. +type EncryptionScopeProperties struct { + // Source - The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. Possible values include: 'MicrosoftStorage', 'MicrosoftKeyVault' + Source EncryptionScopeSource `json:"source,omitempty"` + // State - The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled. Possible values include: 'Enabled', 'Disabled' + State EncryptionScopeState `json:"state,omitempty"` + // CreationTime - READ-ONLY; Gets the creation date and time of the encryption scope in UTC. + CreationTime *date.Time `json:"creationTime,omitempty"` + // LastModifiedTime - READ-ONLY; Gets the last modification date and time of the encryption scope in UTC. + LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` + // KeyVaultProperties - The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'. + KeyVaultProperties *EncryptionScopeKeyVaultProperties `json:"keyVaultProperties,omitempty"` + // RequireInfrastructureEncryption - A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest. + RequireInfrastructureEncryption *bool `json:"requireInfrastructureEncryption,omitempty"` +} + +// MarshalJSON is the custom marshaler for EncryptionScopeProperties. +func (esp EncryptionScopeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if esp.Source != "" { + objectMap["source"] = esp.Source + } + if esp.State != "" { + objectMap["state"] = esp.State + } + if esp.KeyVaultProperties != nil { + objectMap["keyVaultProperties"] = esp.KeyVaultProperties + } + if esp.RequireInfrastructureEncryption != nil { + objectMap["requireInfrastructureEncryption"] = esp.RequireInfrastructureEncryption + } + return json.Marshal(objectMap) +} + +// EncryptionService a service that allows server-side encryption to be used. +type EncryptionService struct { + // Enabled - A boolean indicating whether or not the service encrypts the data as it is stored. + Enabled *bool `json:"enabled,omitempty"` + // LastEnabledTime - READ-ONLY; Gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate. + LastEnabledTime *date.Time `json:"lastEnabledTime,omitempty"` + // KeyType - Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used. Possible values include: 'KeyTypeService', 'KeyTypeAccount' + KeyType KeyType `json:"keyType,omitempty"` +} + +// MarshalJSON is the custom marshaler for EncryptionService. +func (es EncryptionService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if es.Enabled != nil { + objectMap["enabled"] = es.Enabled + } + if es.KeyType != "" { + objectMap["keyType"] = es.KeyType + } + return json.Marshal(objectMap) +} + +// EncryptionServices a list of services that support encryption. +type EncryptionServices struct { + // Blob - The encryption function of the blob storage service. + Blob *EncryptionService `json:"blob,omitempty"` + // File - The encryption function of the file storage service. + File *EncryptionService `json:"file,omitempty"` + // Table - The encryption function of the table storage service. + Table *EncryptionService `json:"table,omitempty"` + // Queue - The encryption function of the queue storage service. + Queue *EncryptionService `json:"queue,omitempty"` +} + +// Endpoints the URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs +// object. +type Endpoints struct { + // Blob - READ-ONLY; Gets the blob endpoint. + Blob *string `json:"blob,omitempty"` + // Queue - READ-ONLY; Gets the queue endpoint. + Queue *string `json:"queue,omitempty"` + // Table - READ-ONLY; Gets the table endpoint. + Table *string `json:"table,omitempty"` + // File - READ-ONLY; Gets the file endpoint. + File *string `json:"file,omitempty"` + // Web - READ-ONLY; Gets the web endpoint. + Web *string `json:"web,omitempty"` + // Dfs - READ-ONLY; Gets the dfs endpoint. + Dfs *string `json:"dfs,omitempty"` + // MicrosoftEndpoints - Gets the microsoft routing storage endpoints. + MicrosoftEndpoints *AccountMicrosoftEndpoints `json:"microsoftEndpoints,omitempty"` + // InternetEndpoints - Gets the internet routing storage endpoints + InternetEndpoints *AccountInternetEndpoints `json:"internetEndpoints,omitempty"` +} + +// MarshalJSON is the custom marshaler for Endpoints. +func (e Endpoints) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if e.MicrosoftEndpoints != nil { + objectMap["microsoftEndpoints"] = e.MicrosoftEndpoints + } + if e.InternetEndpoints != nil { + objectMap["internetEndpoints"] = e.InternetEndpoints + } + return json.Marshal(objectMap) +} + +// ErrorResponse an error response from the storage resource provider. +type ErrorResponse struct { + // Error - Azure Storage Resource Provider error response body. + Error *ErrorResponseBody `json:"error,omitempty"` +} + +// ErrorResponseBody error response body contract. +type ErrorResponseBody struct { + // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Code *string `json:"code,omitempty"` + // Message - A message describing the error, intended to be suitable for display in a user interface. + Message *string `json:"message,omitempty"` +} + +// ExtendedLocation the complex type of the extended location. +type ExtendedLocation struct { + // Name - The name of the extended location. + Name *string `json:"name,omitempty"` + // Type - The type of the extended location. Possible values include: 'EdgeZone' + Type ExtendedLocationTypes `json:"type,omitempty"` +} + +// FileServiceItems ... +type FileServiceItems struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of file services returned. + Value *[]FileServiceProperties `json:"value,omitempty"` +} + +// FileServiceProperties the properties of File services in storage account. +type FileServiceProperties struct { + autorest.Response `json:"-"` + // FileServicePropertiesProperties - The properties of File services in storage account. + *FileServicePropertiesProperties `json:"properties,omitempty"` + // Sku - READ-ONLY; Sku name and tier. + Sku *Sku `json:"sku,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileServiceProperties. +func (fsp FileServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fsp.FileServicePropertiesProperties != nil { + objectMap["properties"] = fsp.FileServicePropertiesProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FileServiceProperties struct. +func (fsp *FileServiceProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var fileServiceProperties FileServicePropertiesProperties + err = json.Unmarshal(*v, &fileServiceProperties) + if err != nil { + return err + } + fsp.FileServicePropertiesProperties = &fileServiceProperties + } + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + fsp.Sku = &sku + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fsp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fsp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsp.Type = &typeVar + } + } + } + + return nil +} + +// FileServicePropertiesProperties the properties of File services in storage account. +type FileServicePropertiesProperties struct { + // Cors - Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service. + Cors *CorsRules `json:"cors,omitempty"` + // ShareDeleteRetentionPolicy - The file service properties for share soft delete. + ShareDeleteRetentionPolicy *DeleteRetentionPolicy `json:"shareDeleteRetentionPolicy,omitempty"` + // ProtocolSettings - Protocol settings for file service + ProtocolSettings *ProtocolSettings `json:"protocolSettings,omitempty"` +} + +// FileShare properties of the file share, including Id, resource name, resource type, Etag. +type FileShare struct { + autorest.Response `json:"-"` + // FileShareProperties - Properties of the file share. + *FileShareProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; Resource Etag. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileShare. +func (fs FileShare) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fs.FileShareProperties != nil { + objectMap["properties"] = fs.FileShareProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FileShare struct. +func (fs *FileShare) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var fileShareProperties FileShareProperties + err = json.Unmarshal(*v, &fileShareProperties) + if err != nil { + return err + } + fs.FileShareProperties = &fileShareProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + fs.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fs.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fs.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fs.Type = &typeVar + } + } + } + + return nil +} + +// FileShareItem the file share properties be listed out. +type FileShareItem struct { + // FileShareProperties - The file share properties be listed out. + *FileShareProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; Resource Etag. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileShareItem. +func (fsi FileShareItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fsi.FileShareProperties != nil { + objectMap["properties"] = fsi.FileShareProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FileShareItem struct. +func (fsi *FileShareItem) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var fileShareProperties FileShareProperties + err = json.Unmarshal(*v, &fileShareProperties) + if err != nil { + return err + } + fsi.FileShareProperties = &fileShareProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + fsi.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + fsi.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fsi.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsi.Type = &typeVar + } + } + } + + return nil +} + +// FileShareItems response schema. Contains list of shares returned, and if paging is requested or +// required, a URL to next page of shares. +type FileShareItems struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of file shares returned. + Value *[]FileShareItem `json:"value,omitempty"` + // NextLink - READ-ONLY; Request URL that can be used to query next page of shares. Returned when total number of requested shares exceed maximum page size. + NextLink *string `json:"nextLink,omitempty"` +} + +// FileShareItemsIterator provides access to a complete listing of FileShareItem values. +type FileShareItemsIterator struct { + i int + page FileShareItemsPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *FileShareItemsIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileShareItemsIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *FileShareItemsIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter FileShareItemsIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter FileShareItemsIterator) Response() FileShareItems { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter FileShareItemsIterator) Value() FileShareItem { + if !iter.page.NotDone() { + return FileShareItem{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the FileShareItemsIterator type. +func NewFileShareItemsIterator(page FileShareItemsPage) FileShareItemsIterator { + return FileShareItemsIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (fsi FileShareItems) IsEmpty() bool { + return fsi.Value == nil || len(*fsi.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (fsi FileShareItems) hasNextLink() bool { + return fsi.NextLink != nil && len(*fsi.NextLink) != 0 +} + +// fileShareItemsPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (fsi FileShareItems) fileShareItemsPreparer(ctx context.Context) (*http.Request, error) { + if !fsi.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(fsi.NextLink))) +} + +// FileShareItemsPage contains a page of FileShareItem values. +type FileShareItemsPage struct { + fn func(context.Context, FileShareItems) (FileShareItems, error) + fsi FileShareItems +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *FileShareItemsPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FileShareItemsPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.fsi) + if err != nil { + return err + } + page.fsi = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *FileShareItemsPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page FileShareItemsPage) NotDone() bool { + return !page.fsi.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page FileShareItemsPage) Response() FileShareItems { + return page.fsi +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page FileShareItemsPage) Values() []FileShareItem { + if page.fsi.IsEmpty() { + return nil + } + return *page.fsi.Value +} + +// Creates a new instance of the FileShareItemsPage type. +func NewFileShareItemsPage(cur FileShareItems, getNextPage func(context.Context, FileShareItems) (FileShareItems, error)) FileShareItemsPage { + return FileShareItemsPage{ + fn: getNextPage, + fsi: cur, + } +} + +// FileShareProperties the properties of the file share. +type FileShareProperties struct { + // LastModifiedTime - READ-ONLY; Returns the date and time the share was last modified. + LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` + // Metadata - A name-value pair to associate with the share as metadata. + Metadata map[string]*string `json:"metadata"` + // ShareQuota - The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400. + ShareQuota *int32 `json:"shareQuota,omitempty"` + // EnabledProtocols - The authentication protocol that is used for the file share. Can only be specified when creating a share. Possible values include: 'SMB', 'NFS' + EnabledProtocols EnabledProtocols `json:"enabledProtocols,omitempty"` + // RootSquash - The property is for NFS share only. The default is NoRootSquash. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' + RootSquash RootSquashType `json:"rootSquash,omitempty"` + // Version - READ-ONLY; The version of the share. + Version *string `json:"version,omitempty"` + // Deleted - READ-ONLY; Indicates whether the share was deleted. + Deleted *bool `json:"deleted,omitempty"` + // DeletedTime - READ-ONLY; The deleted time if the share was deleted. + DeletedTime *date.Time `json:"deletedTime,omitempty"` + // RemainingRetentionDays - READ-ONLY; Remaining retention days for share that was soft deleted. + RemainingRetentionDays *int32 `json:"remainingRetentionDays,omitempty"` + // AccessTier - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Possible values include: 'ShareAccessTierTransactionOptimized', 'ShareAccessTierHot', 'ShareAccessTierCool', 'ShareAccessTierPremium' + AccessTier ShareAccessTier `json:"accessTier,omitempty"` + // AccessTierChangeTime - READ-ONLY; Indicates the last modification time for share access tier. + AccessTierChangeTime *date.Time `json:"accessTierChangeTime,omitempty"` + // AccessTierStatus - READ-ONLY; Indicates if there is a pending transition for access tier. + AccessTierStatus *string `json:"accessTierStatus,omitempty"` + // ShareUsageBytes - READ-ONLY; The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files. + ShareUsageBytes *int64 `json:"shareUsageBytes,omitempty"` + // SnapshotTime - READ-ONLY; Creation time of share snapshot returned in the response of list shares with expand param "snapshots". + SnapshotTime *date.Time `json:"snapshotTime,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileShareProperties. +func (fsp FileShareProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fsp.Metadata != nil { + objectMap["metadata"] = fsp.Metadata + } + if fsp.ShareQuota != nil { + objectMap["shareQuota"] = fsp.ShareQuota + } + if fsp.EnabledProtocols != "" { + objectMap["enabledProtocols"] = fsp.EnabledProtocols + } + if fsp.RootSquash != "" { + objectMap["rootSquash"] = fsp.RootSquash + } + if fsp.AccessTier != "" { + objectMap["accessTier"] = fsp.AccessTier + } + return json.Marshal(objectMap) +} + +// GeoReplicationStats statistics related to replication for storage account's Blob, Table, Queue and File +// services. It is only available when geo-redundant replication is enabled for the storage account. +type GeoReplicationStats struct { + // Status - READ-ONLY; The status of the secondary location. Possible values are: - Live: Indicates that the secondary location is active and operational. - Bootstrap: Indicates initial synchronization from the primary location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary location is temporarily unavailable. Possible values include: 'GeoReplicationStatusLive', 'GeoReplicationStatusBootstrap', 'GeoReplicationStatusUnavailable' + Status GeoReplicationStatus `json:"status,omitempty"` + // LastSyncTime - READ-ONLY; All primary writes preceding this UTC date/time value are guaranteed to be available for read operations. Primary writes following this point in time may or may not be available for reads. Element may be default value if value of LastSyncTime is not available, this can happen if secondary is offline or we are in bootstrap. + LastSyncTime *date.Time `json:"lastSyncTime,omitempty"` + // CanFailover - READ-ONLY; A boolean flag which indicates whether or not account failover is supported for the account. + CanFailover *bool `json:"canFailover,omitempty"` +} + +// IPRule IP rule with specific IP or IP range in CIDR format. +type IPRule struct { + // IPAddressOrRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + IPAddressOrRange *string `json:"value,omitempty"` + // Action - The action of IP ACL rule. Possible values include: 'Allow' + Action Action `json:"action,omitempty"` +} + +// Identity identity for the resource. +type Identity struct { + // PrincipalID - READ-ONLY; The principal ID of resource identity. + PrincipalID *string `json:"principalId,omitempty"` + // TenantID - READ-ONLY; The tenant ID of resource. + TenantID *string `json:"tenantId,omitempty"` + // Type - The identity type. Possible values include: 'IdentityTypeNone', 'IdentityTypeSystemAssigned', 'IdentityTypeUserAssigned', 'IdentityTypeSystemAssignedUserAssigned' + Type IdentityType `json:"type,omitempty"` + // UserAssignedIdentities - Gets or sets a list of key value pairs that describe the set of User Assigned identities that will be used with this storage account. The key is the ARM resource identifier of the identity. Only 1 User Assigned identity is permitted here. + UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities"` +} + +// MarshalJSON is the custom marshaler for Identity. +func (i Identity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if i.Type != "" { + objectMap["type"] = i.Type + } + if i.UserAssignedIdentities != nil { + objectMap["userAssignedIdentities"] = i.UserAssignedIdentities + } + return json.Marshal(objectMap) +} + +// ImmutabilityPolicy the ImmutabilityPolicy property of a blob container, including Id, resource name, +// resource type, Etag. +type ImmutabilityPolicy struct { + autorest.Response `json:"-"` + // ImmutabilityPolicyProperty - The properties of an ImmutabilityPolicy of a blob container. + *ImmutabilityPolicyProperty `json:"properties,omitempty"` + // Etag - READ-ONLY; Resource Etag. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ImmutabilityPolicy. +func (IP ImmutabilityPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if IP.ImmutabilityPolicyProperty != nil { + objectMap["properties"] = IP.ImmutabilityPolicyProperty + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ImmutabilityPolicy struct. +func (IP *ImmutabilityPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var immutabilityPolicyProperty ImmutabilityPolicyProperty + err = json.Unmarshal(*v, &immutabilityPolicyProperty) + if err != nil { + return err + } + IP.ImmutabilityPolicyProperty = &immutabilityPolicyProperty + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + IP.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + IP.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + IP.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + IP.Type = &typeVar + } + } + } + + return nil +} + +// ImmutabilityPolicyProperties the properties of an ImmutabilityPolicy of a blob container. +type ImmutabilityPolicyProperties struct { + // ImmutabilityPolicyProperty - The properties of an ImmutabilityPolicy of a blob container. + *ImmutabilityPolicyProperty `json:"properties,omitempty"` + // Etag - READ-ONLY; ImmutabilityPolicy Etag. + Etag *string `json:"etag,omitempty"` + // UpdateHistory - READ-ONLY; The ImmutabilityPolicy update history of the blob container. + UpdateHistory *[]UpdateHistoryProperty `json:"updateHistory,omitempty"` +} + +// MarshalJSON is the custom marshaler for ImmutabilityPolicyProperties. +func (ipp ImmutabilityPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ipp.ImmutabilityPolicyProperty != nil { + objectMap["properties"] = ipp.ImmutabilityPolicyProperty + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ImmutabilityPolicyProperties struct. +func (ipp *ImmutabilityPolicyProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var immutabilityPolicyProperty ImmutabilityPolicyProperty + err = json.Unmarshal(*v, &immutabilityPolicyProperty) + if err != nil { + return err + } + ipp.ImmutabilityPolicyProperty = &immutabilityPolicyProperty + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + ipp.Etag = &etag + } + case "updateHistory": + if v != nil { + var updateHistory []UpdateHistoryProperty + err = json.Unmarshal(*v, &updateHistory) + if err != nil { + return err + } + ipp.UpdateHistory = &updateHistory + } + } + } + + return nil +} + +// ImmutabilityPolicyProperty the properties of an ImmutabilityPolicy of a blob container. +type ImmutabilityPolicyProperty struct { + // ImmutabilityPeriodSinceCreationInDays - The immutability period for the blobs in the container since the policy creation, in days. + ImmutabilityPeriodSinceCreationInDays *int32 `json:"immutabilityPeriodSinceCreationInDays,omitempty"` + // State - READ-ONLY; The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked' + State ImmutabilityPolicyState `json:"state,omitempty"` + // AllowProtectedAppendWrites - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API + AllowProtectedAppendWrites *bool `json:"allowProtectedAppendWrites,omitempty"` +} + +// MarshalJSON is the custom marshaler for ImmutabilityPolicyProperty. +func (ipp ImmutabilityPolicyProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ipp.ImmutabilityPeriodSinceCreationInDays != nil { + objectMap["immutabilityPeriodSinceCreationInDays"] = ipp.ImmutabilityPeriodSinceCreationInDays + } + if ipp.AllowProtectedAppendWrites != nil { + objectMap["allowProtectedAppendWrites"] = ipp.AllowProtectedAppendWrites + } + return json.Marshal(objectMap) +} + +// KeyCreationTime storage account keys creation time. +type KeyCreationTime struct { + Key1 *date.Time `json:"key1,omitempty"` + Key2 *date.Time `json:"key2,omitempty"` +} + +// KeyPolicy keyPolicy assigned to the storage account. +type KeyPolicy struct { + // KeyExpirationPeriodInDays - The key expiration period in days. + KeyExpirationPeriodInDays *int32 `json:"keyExpirationPeriodInDays,omitempty"` +} + +// KeyVaultProperties properties of key vault. +type KeyVaultProperties struct { + // KeyName - The name of KeyVault key. + KeyName *string `json:"keyname,omitempty"` + // KeyVersion - The version of KeyVault key. + KeyVersion *string `json:"keyversion,omitempty"` + // KeyVaultURI - The Uri of KeyVault. + KeyVaultURI *string `json:"keyvaulturi,omitempty"` + // CurrentVersionedKeyIdentifier - READ-ONLY; The object identifier of the current versioned Key Vault Key in use. + CurrentVersionedKeyIdentifier *string `json:"currentVersionedKeyIdentifier,omitempty"` + // LastKeyRotationTimestamp - READ-ONLY; Timestamp of last rotation of the Key Vault Key. + LastKeyRotationTimestamp *date.Time `json:"lastKeyRotationTimestamp,omitempty"` +} + +// MarshalJSON is the custom marshaler for KeyVaultProperties. +func (kvp KeyVaultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if kvp.KeyName != nil { + objectMap["keyname"] = kvp.KeyName + } + if kvp.KeyVersion != nil { + objectMap["keyversion"] = kvp.KeyVersion + } + if kvp.KeyVaultURI != nil { + objectMap["keyvaulturi"] = kvp.KeyVaultURI + } + return json.Marshal(objectMap) +} + +// LastAccessTimeTrackingPolicy the blob service properties for Last access time based tracking policy. +type LastAccessTimeTrackingPolicy struct { + // Enable - When set to true last access time based tracking is enabled. + Enable *bool `json:"enable,omitempty"` + // Name - Name of the policy. The valid value is AccessTimeTracking. This field is currently read only. Possible values include: 'AccessTimeTracking' + Name Name `json:"name,omitempty"` + // TrackingGranularityInDays - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1 + TrackingGranularityInDays *int32 `json:"trackingGranularityInDays,omitempty"` + // BlobType - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only + BlobType *[]string `json:"blobType,omitempty"` +} + +// LeaseContainerRequest lease Container request schema. +type LeaseContainerRequest struct { + // Action - Specifies the lease action. Can be one of the available actions. Possible values include: 'Acquire', 'Renew', 'Change', 'Release', 'Break' + Action Action1 `json:"action,omitempty"` + // LeaseID - Identifies the lease. Can be specified in any valid GUID string format. + LeaseID *string `json:"leaseId,omitempty"` + // BreakPeriod - Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60. + BreakPeriod *int32 `json:"breakPeriod,omitempty"` + // LeaseDuration - Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires. + LeaseDuration *int32 `json:"leaseDuration,omitempty"` + // ProposedLeaseID - Optional for acquire, required for change. Proposed lease ID, in a GUID string format. + ProposedLeaseID *string `json:"proposedLeaseId,omitempty"` +} + +// LeaseContainerResponse lease Container response schema. +type LeaseContainerResponse struct { + autorest.Response `json:"-"` + // LeaseID - Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease. + LeaseID *string `json:"leaseId,omitempty"` + // LeaseTimeSeconds - Approximate time remaining in the lease period, in seconds. + LeaseTimeSeconds *string `json:"leaseTimeSeconds,omitempty"` +} + +// LegalHold the LegalHold property of a blob container. +type LegalHold struct { + autorest.Response `json:"-"` + // HasLegalHold - READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + HasLegalHold *bool `json:"hasLegalHold,omitempty"` + // Tags - Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + Tags *[]string `json:"tags,omitempty"` +} + +// MarshalJSON is the custom marshaler for LegalHold. +func (lh LegalHold) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lh.Tags != nil { + objectMap["tags"] = lh.Tags + } + return json.Marshal(objectMap) +} + +// LegalHoldProperties the LegalHold property of a blob container. +type LegalHoldProperties struct { + // HasLegalHold - READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + HasLegalHold *bool `json:"hasLegalHold,omitempty"` + // Tags - The list of LegalHold tags of a blob container. + Tags *[]TagProperty `json:"tags,omitempty"` +} + +// MarshalJSON is the custom marshaler for LegalHoldProperties. +func (lhp LegalHoldProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lhp.Tags != nil { + objectMap["tags"] = lhp.Tags + } + return json.Marshal(objectMap) +} + +// ListAccountSasResponse the List SAS credentials operation response. +type ListAccountSasResponse struct { + autorest.Response `json:"-"` + // AccountSasToken - READ-ONLY; List SAS credentials of storage account. + AccountSasToken *string `json:"accountSasToken,omitempty"` +} + +// ListBlobInventoryPolicy list of blob inventory policies returned. +type ListBlobInventoryPolicy struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of blob inventory policies. + Value *[]BlobInventoryPolicy `json:"value,omitempty"` +} + +// ListContainerItem the blob container properties be listed out. +type ListContainerItem struct { + // ContainerProperties - The blob container properties be listed out. + *ContainerProperties `json:"properties,omitempty"` + // Etag - READ-ONLY; Resource Etag. + Etag *string `json:"etag,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ListContainerItem. +func (lci ListContainerItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lci.ContainerProperties != nil { + objectMap["properties"] = lci.ContainerProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ListContainerItem struct. +func (lci *ListContainerItem) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var containerProperties ContainerProperties + err = json.Unmarshal(*v, &containerProperties) + if err != nil { + return err + } + lci.ContainerProperties = &containerProperties + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + lci.Etag = &etag + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + lci.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lci.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lci.Type = &typeVar + } + } + } + + return nil +} + +// ListContainerItems response schema. Contains list of blobs returned, and if paging is requested or +// required, a URL to next page of containers. +type ListContainerItems struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of blobs containers returned. + Value *[]ListContainerItem `json:"value,omitempty"` + // NextLink - READ-ONLY; Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size. + NextLink *string `json:"nextLink,omitempty"` +} + +// ListContainerItemsIterator provides access to a complete listing of ListContainerItem values. +type ListContainerItemsIterator struct { + i int + page ListContainerItemsPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListContainerItemsIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListContainerItemsIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListContainerItemsIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListContainerItemsIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListContainerItemsIterator) Response() ListContainerItems { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListContainerItemsIterator) Value() ListContainerItem { + if !iter.page.NotDone() { + return ListContainerItem{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListContainerItemsIterator type. +func NewListContainerItemsIterator(page ListContainerItemsPage) ListContainerItemsIterator { + return ListContainerItemsIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lci ListContainerItems) IsEmpty() bool { + return lci.Value == nil || len(*lci.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lci ListContainerItems) hasNextLink() bool { + return lci.NextLink != nil && len(*lci.NextLink) != 0 +} + +// listContainerItemsPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lci ListContainerItems) listContainerItemsPreparer(ctx context.Context) (*http.Request, error) { + if !lci.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lci.NextLink))) +} + +// ListContainerItemsPage contains a page of ListContainerItem values. +type ListContainerItemsPage struct { + fn func(context.Context, ListContainerItems) (ListContainerItems, error) + lci ListContainerItems +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListContainerItemsPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListContainerItemsPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lci) + if err != nil { + return err + } + page.lci = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListContainerItemsPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListContainerItemsPage) NotDone() bool { + return !page.lci.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListContainerItemsPage) Response() ListContainerItems { + return page.lci +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListContainerItemsPage) Values() []ListContainerItem { + if page.lci.IsEmpty() { + return nil + } + return *page.lci.Value +} + +// Creates a new instance of the ListContainerItemsPage type. +func NewListContainerItemsPage(cur ListContainerItems, getNextPage func(context.Context, ListContainerItems) (ListContainerItems, error)) ListContainerItemsPage { + return ListContainerItemsPage{ + fn: getNextPage, + lci: cur, + } +} + +// ListQueue ... +type ListQueue struct { + // ListQueueProperties - List Queue resource properties. + *ListQueueProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ListQueue. +func (lq ListQueue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lq.ListQueueProperties != nil { + objectMap["properties"] = lq.ListQueueProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ListQueue struct. +func (lq *ListQueue) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var queueProperties ListQueueProperties + err = json.Unmarshal(*v, &queueProperties) + if err != nil { + return err + } + lq.ListQueueProperties = &queueProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + lq.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lq.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lq.Type = &typeVar + } + } + } + + return nil +} + +// ListQueueProperties ... +type ListQueueProperties struct { + // Metadata - A name-value pair that represents queue metadata. + Metadata map[string]*string `json:"metadata"` +} + +// MarshalJSON is the custom marshaler for ListQueueProperties. +func (lqp ListQueueProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lqp.Metadata != nil { + objectMap["metadata"] = lqp.Metadata + } + return json.Marshal(objectMap) +} + +// ListQueueResource response schema. Contains list of queues returned +type ListQueueResource struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of queues returned. + Value *[]ListQueue `json:"value,omitempty"` + // NextLink - READ-ONLY; Request URL that can be used to list next page of queues + NextLink *string `json:"nextLink,omitempty"` +} + +// ListQueueResourceIterator provides access to a complete listing of ListQueue values. +type ListQueueResourceIterator struct { + i int + page ListQueueResourcePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListQueueResourceIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListQueueResourceIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListQueueResourceIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListQueueResourceIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListQueueResourceIterator) Response() ListQueueResource { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListQueueResourceIterator) Value() ListQueue { + if !iter.page.NotDone() { + return ListQueue{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListQueueResourceIterator type. +func NewListQueueResourceIterator(page ListQueueResourcePage) ListQueueResourceIterator { + return ListQueueResourceIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lqr ListQueueResource) IsEmpty() bool { + return lqr.Value == nil || len(*lqr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lqr ListQueueResource) hasNextLink() bool { + return lqr.NextLink != nil && len(*lqr.NextLink) != 0 +} + +// listQueueResourcePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lqr ListQueueResource) listQueueResourcePreparer(ctx context.Context) (*http.Request, error) { + if !lqr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lqr.NextLink))) +} + +// ListQueueResourcePage contains a page of ListQueue values. +type ListQueueResourcePage struct { + fn func(context.Context, ListQueueResource) (ListQueueResource, error) + lqr ListQueueResource +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListQueueResourcePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListQueueResourcePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lqr) + if err != nil { + return err + } + page.lqr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListQueueResourcePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListQueueResourcePage) NotDone() bool { + return !page.lqr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListQueueResourcePage) Response() ListQueueResource { + return page.lqr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListQueueResourcePage) Values() []ListQueue { + if page.lqr.IsEmpty() { + return nil + } + return *page.lqr.Value +} + +// Creates a new instance of the ListQueueResourcePage type. +func NewListQueueResourcePage(cur ListQueueResource, getNextPage func(context.Context, ListQueueResource) (ListQueueResource, error)) ListQueueResourcePage { + return ListQueueResourcePage{ + fn: getNextPage, + lqr: cur, + } +} + +// ListQueueServices ... +type ListQueueServices struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of queue services returned. + Value *[]QueueServiceProperties `json:"value,omitempty"` +} + +// ListServiceSasResponse the List service SAS credentials operation response. +type ListServiceSasResponse struct { + autorest.Response `json:"-"` + // ServiceSasToken - READ-ONLY; List service SAS credentials of specific resource. + ServiceSasToken *string `json:"serviceSasToken,omitempty"` +} + +// ListTableResource response schema. Contains list of tables returned +type ListTableResource struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of tables returned. + Value *[]Table `json:"value,omitempty"` + // NextLink - READ-ONLY; Request URL that can be used to query next page of tables + NextLink *string `json:"nextLink,omitempty"` +} + +// ListTableResourceIterator provides access to a complete listing of Table values. +type ListTableResourceIterator struct { + i int + page ListTableResourcePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ListTableResourceIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListTableResourceIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ListTableResourceIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ListTableResourceIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ListTableResourceIterator) Response() ListTableResource { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ListTableResourceIterator) Value() Table { + if !iter.page.NotDone() { + return Table{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ListTableResourceIterator type. +func NewListTableResourceIterator(page ListTableResourcePage) ListTableResourceIterator { + return ListTableResourceIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ltr ListTableResource) IsEmpty() bool { + return ltr.Value == nil || len(*ltr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (ltr ListTableResource) hasNextLink() bool { + return ltr.NextLink != nil && len(*ltr.NextLink) != 0 +} + +// listTableResourcePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ltr ListTableResource) listTableResourcePreparer(ctx context.Context) (*http.Request, error) { + if !ltr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ltr.NextLink))) +} + +// ListTableResourcePage contains a page of Table values. +type ListTableResourcePage struct { + fn func(context.Context, ListTableResource) (ListTableResource, error) + ltr ListTableResource +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ListTableResourcePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ListTableResourcePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.ltr) + if err != nil { + return err + } + page.ltr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ListTableResourcePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ListTableResourcePage) NotDone() bool { + return !page.ltr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ListTableResourcePage) Response() ListTableResource { + return page.ltr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ListTableResourcePage) Values() []Table { + if page.ltr.IsEmpty() { + return nil + } + return *page.ltr.Value +} + +// Creates a new instance of the ListTableResourcePage type. +func NewListTableResourcePage(cur ListTableResource, getNextPage func(context.Context, ListTableResource) (ListTableResource, error)) ListTableResourcePage { + return ListTableResourcePage{ + fn: getNextPage, + ltr: cur, + } +} + +// ListTableServices ... +type ListTableServices struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of table services returned. + Value *[]TableServiceProperties `json:"value,omitempty"` +} + +// ManagementPolicy the Get Storage Account ManagementPolicies operation response. +type ManagementPolicy struct { + autorest.Response `json:"-"` + // ManagementPolicyProperties - Returns the Storage Account Data Policies Rules. + *ManagementPolicyProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagementPolicy. +func (mp ManagementPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mp.ManagementPolicyProperties != nil { + objectMap["properties"] = mp.ManagementPolicyProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ManagementPolicy struct. +func (mp *ManagementPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var managementPolicyProperties ManagementPolicyProperties + err = json.Unmarshal(*v, &managementPolicyProperties) + if err != nil { + return err + } + mp.ManagementPolicyProperties = &managementPolicyProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + mp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + mp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mp.Type = &typeVar + } + } + } + + return nil +} + +// ManagementPolicyAction actions are applied to the filtered blobs when the execution condition is met. +type ManagementPolicyAction struct { + // BaseBlob - The management policy action for base blob + BaseBlob *ManagementPolicyBaseBlob `json:"baseBlob,omitempty"` + // Snapshot - The management policy action for snapshot + Snapshot *ManagementPolicySnapShot `json:"snapshot,omitempty"` + // Version - The management policy action for version + Version *ManagementPolicyVersion `json:"version,omitempty"` +} + +// ManagementPolicyBaseBlob management policy action for base blob. +type ManagementPolicyBaseBlob struct { + // TierToCool - The function to tier blobs to cool storage. Support blobs currently at Hot tier + TierToCool *DateAfterModification `json:"tierToCool,omitempty"` + // TierToArchive - The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier + TierToArchive *DateAfterModification `json:"tierToArchive,omitempty"` + // Delete - The function to delete the blob + Delete *DateAfterModification `json:"delete,omitempty"` + // EnableAutoTierToHotFromCool - This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan. + EnableAutoTierToHotFromCool *bool `json:"enableAutoTierToHotFromCool,omitempty"` +} + +// ManagementPolicyDefinition an object that defines the Lifecycle rule. Each definition is made up with a +// filters set and an actions set. +type ManagementPolicyDefinition struct { + // Actions - An object that defines the action set. + Actions *ManagementPolicyAction `json:"actions,omitempty"` + // Filters - An object that defines the filter set. + Filters *ManagementPolicyFilter `json:"filters,omitempty"` +} + +// ManagementPolicyFilter filters limit rule actions to a subset of blobs within the storage account. If +// multiple filters are defined, a logical AND is performed on all filters. +type ManagementPolicyFilter struct { + // PrefixMatch - An array of strings for prefixes to be match. + PrefixMatch *[]string `json:"prefixMatch,omitempty"` + // BlobTypes - An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob. + BlobTypes *[]string `json:"blobTypes,omitempty"` + // BlobIndexMatch - An array of blob index tag based filters, there can be at most 10 tag filters + BlobIndexMatch *[]TagFilter `json:"blobIndexMatch,omitempty"` +} + +// ManagementPolicyProperties the Storage Account ManagementPolicy properties. +type ManagementPolicyProperties struct { + // LastModifiedTime - READ-ONLY; Returns the date and time the ManagementPolicies was last modified. + LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` + // Policy - The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. + Policy *ManagementPolicySchema `json:"policy,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagementPolicyProperties. +func (mpp ManagementPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mpp.Policy != nil { + objectMap["policy"] = mpp.Policy + } + return json.Marshal(objectMap) +} + +// ManagementPolicyRule an object that wraps the Lifecycle rule. Each rule is uniquely defined by name. +type ManagementPolicyRule struct { + // Enabled - Rule is enabled if set to true. + Enabled *bool `json:"enabled,omitempty"` + // Name - A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. + Name *string `json:"name,omitempty"` + // Type - The valid value is Lifecycle + Type *string `json:"type,omitempty"` + // Definition - An object that defines the Lifecycle rule. + Definition *ManagementPolicyDefinition `json:"definition,omitempty"` +} + +// ManagementPolicySchema the Storage Account ManagementPolicies Rules. See more details in: +// https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. +type ManagementPolicySchema struct { + // Rules - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. + Rules *[]ManagementPolicyRule `json:"rules,omitempty"` +} + +// ManagementPolicySnapShot management policy action for snapshot. +type ManagementPolicySnapShot struct { + // TierToCool - The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier + TierToCool *DateAfterCreation `json:"tierToCool,omitempty"` + // TierToArchive - The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier + TierToArchive *DateAfterCreation `json:"tierToArchive,omitempty"` + // Delete - The function to delete the blob snapshot + Delete *DateAfterCreation `json:"delete,omitempty"` +} + +// ManagementPolicyVersion management policy action for blob version. +type ManagementPolicyVersion struct { + // TierToCool - The function to tier blob version to cool storage. Support blob version currently at Hot tier + TierToCool *DateAfterCreation `json:"tierToCool,omitempty"` + // TierToArchive - The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier + TierToArchive *DateAfterCreation `json:"tierToArchive,omitempty"` + // Delete - The function to delete the blob version + Delete *DateAfterCreation `json:"delete,omitempty"` +} + +// MetricSpecification metric specification of operation. +type MetricSpecification struct { + // Name - Name of metric specification. + Name *string `json:"name,omitempty"` + // DisplayName - Display name of metric specification. + DisplayName *string `json:"displayName,omitempty"` + // DisplayDescription - Display description of metric specification. + DisplayDescription *string `json:"displayDescription,omitempty"` + // Unit - Unit could be Bytes or Count. + Unit *string `json:"unit,omitempty"` + // Dimensions - Dimensions of blobs, including blob type and access tier. + Dimensions *[]Dimension `json:"dimensions,omitempty"` + // AggregationType - Aggregation type could be Average. + AggregationType *string `json:"aggregationType,omitempty"` + // FillGapWithZero - The property to decide fill gap with zero or not. + FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` + // Category - The category this metric specification belong to, could be Capacity. + Category *string `json:"category,omitempty"` + // ResourceIDDimensionNameOverride - Account Resource Id. + ResourceIDDimensionNameOverride *string `json:"resourceIdDimensionNameOverride,omitempty"` +} + +// Multichannel multichannel setting. Applies to Premium FileStorage only. +type Multichannel struct { + // Enabled - Indicates whether multichannel is enabled + Enabled *bool `json:"enabled,omitempty"` +} + +// NetworkRuleSet network rule set +type NetworkRuleSet struct { + // Bypass - Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices' + Bypass Bypass `json:"bypass,omitempty"` + // ResourceAccessRules - Sets the resource access rules + ResourceAccessRules *[]ResourceAccessRule `json:"resourceAccessRules,omitempty"` + // VirtualNetworkRules - Sets the virtual network rules + VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + // IPRules - Sets the IP ACL rules + IPRules *[]IPRule `json:"ipRules,omitempty"` + // DefaultAction - Specifies the default action of allow or deny when no other rules match. Possible values include: 'DefaultActionAllow', 'DefaultActionDeny' + DefaultAction DefaultAction `json:"defaultAction,omitempty"` +} + +// ObjectReplicationPolicies list storage account object replication policies. +type ObjectReplicationPolicies struct { + autorest.Response `json:"-"` + // Value - The replication policy between two storage accounts. + Value *[]ObjectReplicationPolicy `json:"value,omitempty"` +} + +// ObjectReplicationPolicy the replication policy between two storage accounts. Multiple rules can be +// defined in one policy. +type ObjectReplicationPolicy struct { + autorest.Response `json:"-"` + // ObjectReplicationPolicyProperties - Returns the Storage Account Object Replication Policy. + *ObjectReplicationPolicyProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ObjectReplicationPolicy. +func (orp ObjectReplicationPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if orp.ObjectReplicationPolicyProperties != nil { + objectMap["properties"] = orp.ObjectReplicationPolicyProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ObjectReplicationPolicy struct. +func (orp *ObjectReplicationPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var objectReplicationPolicyProperties ObjectReplicationPolicyProperties + err = json.Unmarshal(*v, &objectReplicationPolicyProperties) + if err != nil { + return err + } + orp.ObjectReplicationPolicyProperties = &objectReplicationPolicyProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + orp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + orp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + orp.Type = &typeVar + } + } + } + + return nil +} + +// ObjectReplicationPolicyFilter filters limit replication to a subset of blobs within the storage account. +// A logical OR is performed on values in the filter. If multiple filters are defined, a logical AND is +// performed on all filters. +type ObjectReplicationPolicyFilter struct { + // PrefixMatch - Optional. Filters the results to replicate only blobs whose names begin with the specified prefix. + PrefixMatch *[]string `json:"prefixMatch,omitempty"` + // MinCreationTime - Blobs created after the time will be replicated to the destination. It must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: 2020-02-19T16:05:00Z + MinCreationTime *string `json:"minCreationTime,omitempty"` +} + +// ObjectReplicationPolicyProperties the Storage Account ObjectReplicationPolicy properties. +type ObjectReplicationPolicyProperties struct { + // PolicyID - READ-ONLY; A unique id for object replication policy. + PolicyID *string `json:"policyId,omitempty"` + // EnabledTime - READ-ONLY; Indicates when the policy is enabled on the source account. + EnabledTime *date.Time `json:"enabledTime,omitempty"` + // SourceAccount - Required. Source account name. + SourceAccount *string `json:"sourceAccount,omitempty"` + // DestinationAccount - Required. Destination account name. + DestinationAccount *string `json:"destinationAccount,omitempty"` + // Rules - The storage account object replication rules. + Rules *[]ObjectReplicationPolicyRule `json:"rules,omitempty"` +} + +// MarshalJSON is the custom marshaler for ObjectReplicationPolicyProperties. +func (orpp ObjectReplicationPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if orpp.SourceAccount != nil { + objectMap["sourceAccount"] = orpp.SourceAccount + } + if orpp.DestinationAccount != nil { + objectMap["destinationAccount"] = orpp.DestinationAccount + } + if orpp.Rules != nil { + objectMap["rules"] = orpp.Rules + } + return json.Marshal(objectMap) +} + +// ObjectReplicationPolicyRule the replication policy rule between two containers. +type ObjectReplicationPolicyRule struct { + // RuleID - Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account. + RuleID *string `json:"ruleId,omitempty"` + // SourceContainer - Required. Source container name. + SourceContainer *string `json:"sourceContainer,omitempty"` + // DestinationContainer - Required. Destination container name. + DestinationContainer *string `json:"destinationContainer,omitempty"` + // Filters - Optional. An object that defines the filter set. + Filters *ObjectReplicationPolicyFilter `json:"filters,omitempty"` +} + +// Operation storage REST API operation definition. +type Operation struct { + // Name - Operation name: {provider}/{resource}/{operation} + Name *string `json:"name,omitempty"` + // Display - Display metadata associated with the operation. + Display *OperationDisplay `json:"display,omitempty"` + // Origin - The origin of operations. + Origin *string `json:"origin,omitempty"` + // OperationProperties - Properties of operation, include metric specifications. + *OperationProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if o.Name != nil { + objectMap["name"] = o.Name + } + if o.Display != nil { + objectMap["display"] = o.Display + } + if o.Origin != nil { + objectMap["origin"] = o.Origin + } + if o.OperationProperties != nil { + objectMap["properties"] = o.OperationProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Operation struct. +func (o *Operation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + o.Name = &name + } + case "display": + if v != nil { + var display OperationDisplay + err = json.Unmarshal(*v, &display) + if err != nil { + return err + } + o.Display = &display + } + case "origin": + if v != nil { + var origin string + err = json.Unmarshal(*v, &origin) + if err != nil { + return err + } + o.Origin = &origin + } + case "properties": + if v != nil { + var operationProperties OperationProperties + err = json.Unmarshal(*v, &operationProperties) + if err != nil { + return err + } + o.OperationProperties = &operationProperties + } + } + } + + return nil +} + +// OperationDisplay display metadata associated with the operation. +type OperationDisplay struct { + // Provider - Service provider: Microsoft Storage. + Provider *string `json:"provider,omitempty"` + // Resource - Resource on which the operation is performed etc. + Resource *string `json:"resource,omitempty"` + // Operation - Type of operation: get, read, delete, etc. + Operation *string `json:"operation,omitempty"` + // Description - Description of the operation. + Description *string `json:"description,omitempty"` +} + +// OperationListResult result of the request to list Storage operations. It contains a list of operations +// and a URL link to get the next set of results. +type OperationListResult struct { + autorest.Response `json:"-"` + // Value - List of Storage operations supported by the Storage resource provider. + Value *[]Operation `json:"value,omitempty"` +} + +// OperationProperties properties of operation, include metric specifications. +type OperationProperties struct { + // ServiceSpecification - One property of operation, include metric specifications. + ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` +} + +// PrivateEndpoint the Private Endpoint resource. +type PrivateEndpoint struct { + // ID - READ-ONLY; The ARM identifier for Private Endpoint + ID *string `json:"id,omitempty"` +} + +// PrivateEndpointConnection the Private Endpoint Connection resource. +type PrivateEndpointConnection struct { + autorest.Response `json:"-"` + // PrivateEndpointConnectionProperties - Resource properties. + *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointConnection. +func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pec.PrivateEndpointConnectionProperties != nil { + objectMap["properties"] = pec.PrivateEndpointConnectionProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct. +func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var privateEndpointConnectionProperties PrivateEndpointConnectionProperties + err = json.Unmarshal(*v, &privateEndpointConnectionProperties) + if err != nil { + return err + } + pec.PrivateEndpointConnectionProperties = &privateEndpointConnectionProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pec.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pec.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pec.Type = &typeVar + } + } + } + + return nil +} + +// PrivateEndpointConnectionListResult list of private endpoint connection associated with the specified +// storage account +type PrivateEndpointConnectionListResult struct { + autorest.Response `json:"-"` + // Value - Array of private endpoint connections + Value *[]PrivateEndpointConnection `json:"value,omitempty"` +} + +// PrivateEndpointConnectionProperties properties of the PrivateEndpointConnectProperties. +type PrivateEndpointConnectionProperties struct { + // PrivateEndpoint - The resource of private end point. + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + // PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider. + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + // ProvisioningState - The provisioning state of the private endpoint connection resource. Possible values include: 'PrivateEndpointConnectionProvisioningStateSucceeded', 'PrivateEndpointConnectionProvisioningStateCreating', 'PrivateEndpointConnectionProvisioningStateDeleting', 'PrivateEndpointConnectionProvisioningStateFailed' + ProvisioningState PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` +} + +// PrivateLinkResource a private link resource +type PrivateLinkResource struct { + // PrivateLinkResourceProperties - Resource properties. + *PrivateLinkResourceProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plr.PrivateLinkResourceProperties != nil { + objectMap["properties"] = plr.PrivateLinkResourceProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct. +func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var privateLinkResourceProperties PrivateLinkResourceProperties + err = json.Unmarshal(*v, &privateLinkResourceProperties) + if err != nil { + return err + } + plr.PrivateLinkResourceProperties = &privateLinkResourceProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + plr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + plr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + plr.Type = &typeVar + } + } + } + + return nil +} + +// PrivateLinkResourceListResult a list of private link resources +type PrivateLinkResourceListResult struct { + autorest.Response `json:"-"` + // Value - Array of private link resources + Value *[]PrivateLinkResource `json:"value,omitempty"` +} + +// PrivateLinkResourceProperties properties of a private link resource. +type PrivateLinkResourceProperties struct { + // GroupID - READ-ONLY; The private link resource group id. + GroupID *string `json:"groupId,omitempty"` + // RequiredMembers - READ-ONLY; The private link resource required member names. + RequiredMembers *[]string `json:"requiredMembers,omitempty"` + // RequiredZoneNames - The private link resource Private link DNS zone name. + RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plrp.RequiredZoneNames != nil { + objectMap["requiredZoneNames"] = plrp.RequiredZoneNames + } + return json.Marshal(objectMap) +} + +// PrivateLinkServiceConnectionState a collection of information about the state of the connection between +// service consumer and provider. +type PrivateLinkServiceConnectionState struct { + // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'Pending', 'Approved', 'Rejected' + Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` + // Description - The reason for approval/rejection of the connection. + Description *string `json:"description,omitempty"` + // ActionRequired - A message indicating if changes on the service provider require any updates on the consumer. + ActionRequired *string `json:"actionRequired,omitempty"` +} + +// ProtocolSettings protocol settings for file service +type ProtocolSettings struct { + // Smb - Setting for SMB protocol + Smb *SmbSetting `json:"smb,omitempty"` +} + +// ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not +// have tags and a location +type ProxyResource struct { + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// Queue ... +type Queue struct { + autorest.Response `json:"-"` + // QueueProperties - Queue resource properties. + *QueueProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Queue. +func (q Queue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if q.QueueProperties != nil { + objectMap["properties"] = q.QueueProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Queue struct. +func (q *Queue) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var queueProperties QueueProperties + err = json.Unmarshal(*v, &queueProperties) + if err != nil { + return err + } + q.QueueProperties = &queueProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + q.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + q.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + q.Type = &typeVar + } + } + } + + return nil +} + +// QueueProperties ... +type QueueProperties struct { + // Metadata - A name-value pair that represents queue metadata. + Metadata map[string]*string `json:"metadata"` + // ApproximateMessageCount - READ-ONLY; Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher. + ApproximateMessageCount *int32 `json:"approximateMessageCount,omitempty"` +} + +// MarshalJSON is the custom marshaler for QueueProperties. +func (qp QueueProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if qp.Metadata != nil { + objectMap["metadata"] = qp.Metadata + } + return json.Marshal(objectMap) +} + +// QueueServiceProperties the properties of a storage account’s Queue service. +type QueueServiceProperties struct { + autorest.Response `json:"-"` + // QueueServicePropertiesProperties - The properties of a storage account’s Queue service. + *QueueServicePropertiesProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for QueueServiceProperties. +func (qsp QueueServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if qsp.QueueServicePropertiesProperties != nil { + objectMap["properties"] = qsp.QueueServicePropertiesProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for QueueServiceProperties struct. +func (qsp *QueueServiceProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var queueServiceProperties QueueServicePropertiesProperties + err = json.Unmarshal(*v, &queueServiceProperties) + if err != nil { + return err + } + qsp.QueueServicePropertiesProperties = &queueServiceProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + qsp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + qsp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + qsp.Type = &typeVar + } + } + } + + return nil +} + +// QueueServicePropertiesProperties the properties of a storage account’s Queue service. +type QueueServicePropertiesProperties struct { + // Cors - Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service. + Cors *CorsRules `json:"cors,omitempty"` +} + +// Resource common fields that are returned in the response for all Azure Resource Manager resources +type Resource struct { + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// ResourceAccessRule resource Access Rule. +type ResourceAccessRule struct { + // TenantID - Tenant Id + TenantID *string `json:"tenantId,omitempty"` + // ResourceID - Resource Id + ResourceID *string `json:"resourceId,omitempty"` +} + +// RestorePolicyProperties the blob service properties for blob restore policy +type RestorePolicyProperties struct { + // Enabled - Blob restore is enabled if set to true. + Enabled *bool `json:"enabled,omitempty"` + // Days - how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days. + Days *int32 `json:"days,omitempty"` + // LastEnabledTime - READ-ONLY; Deprecated in favor of minRestoreTime property. + LastEnabledTime *date.Time `json:"lastEnabledTime,omitempty"` + // MinRestoreTime - READ-ONLY; Returns the minimum date and time that the restore can be started. + MinRestoreTime *date.Time `json:"minRestoreTime,omitempty"` +} + +// MarshalJSON is the custom marshaler for RestorePolicyProperties. +func (rpp RestorePolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rpp.Enabled != nil { + objectMap["enabled"] = rpp.Enabled + } + if rpp.Days != nil { + objectMap["days"] = rpp.Days + } + return json.Marshal(objectMap) +} + +// Restriction the restriction because of which SKU cannot be used. +type Restriction struct { + // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. + Type *string `json:"type,omitempty"` + // Values - READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. + Values *[]string `json:"values,omitempty"` + // ReasonCode - The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaID', 'NotAvailableForSubscription' + ReasonCode ReasonCode `json:"reasonCode,omitempty"` +} + +// MarshalJSON is the custom marshaler for Restriction. +func (r Restriction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if r.ReasonCode != "" { + objectMap["reasonCode"] = r.ReasonCode + } + return json.Marshal(objectMap) +} + +// RoutingPreference routing preference defines the type of network, either microsoft or internet routing +// to be used to deliver the user data, the default option is microsoft routing +type RoutingPreference struct { + // RoutingChoice - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' + RoutingChoice RoutingChoice `json:"routingChoice,omitempty"` + // PublishMicrosoftEndpoints - A boolean flag which indicates whether microsoft routing storage endpoints are to be published + PublishMicrosoftEndpoints *bool `json:"publishMicrosoftEndpoints,omitempty"` + // PublishInternetEndpoints - A boolean flag which indicates whether internet routing storage endpoints are to be published + PublishInternetEndpoints *bool `json:"publishInternetEndpoints,omitempty"` +} + +// SKUCapability the capability information in the specified SKU, including file encryption, network ACLs, +// change notification, etc. +type SKUCapability struct { + // Name - READ-ONLY; The name of capability, The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. + Name *string `json:"name,omitempty"` + // Value - READ-ONLY; A string value to indicate states of given capability. Possibly 'true' or 'false'. + Value *string `json:"value,omitempty"` +} + +// SasPolicy sasPolicy assigned to the storage account. +type SasPolicy struct { + // SasExpirationPeriod - The SAS expiration period, DD.HH:MM:SS. + SasExpirationPeriod *string `json:"sasExpirationPeriod,omitempty"` + // ExpirationAction - The SAS expiration action. Can only be Log. + ExpirationAction *string `json:"expirationAction,omitempty"` +} + +// ServiceSasParameters the parameters to list service SAS credentials of a specific resource. +type ServiceSasParameters struct { + // CanonicalizedResource - The canonical path to the signed resource. + CanonicalizedResource *string `json:"canonicalizedResource,omitempty"` + // Resource - The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'SignedResourceB', 'SignedResourceC', 'SignedResourceF', 'SignedResourceS' + Resource SignedResource `json:"signedResource,omitempty"` + // Permissions - The signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'R', 'D', 'W', 'L', 'A', 'C', 'U', 'P' + Permissions Permissions `json:"signedPermission,omitempty"` + // IPAddressOrRange - An IP address or a range of IP addresses from which to accept requests. + IPAddressOrRange *string `json:"signedIp,omitempty"` + // Protocols - The protocol permitted for a request made with the account SAS. Possible values include: 'Httpshttp', 'HTTPS' + Protocols HTTPProtocol `json:"signedProtocol,omitempty"` + // SharedAccessStartTime - The time at which the SAS becomes valid. + SharedAccessStartTime *date.Time `json:"signedStart,omitempty"` + // SharedAccessExpiryTime - The time at which the shared access signature becomes invalid. + SharedAccessExpiryTime *date.Time `json:"signedExpiry,omitempty"` + // Identifier - A unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. + Identifier *string `json:"signedIdentifier,omitempty"` + // PartitionKeyStart - The start of partition key. + PartitionKeyStart *string `json:"startPk,omitempty"` + // PartitionKeyEnd - The end of partition key. + PartitionKeyEnd *string `json:"endPk,omitempty"` + // RowKeyStart - The start of row key. + RowKeyStart *string `json:"startRk,omitempty"` + // RowKeyEnd - The end of row key. + RowKeyEnd *string `json:"endRk,omitempty"` + // KeyToSign - The key to sign the account SAS token with. + KeyToSign *string `json:"keyToSign,omitempty"` + // CacheControl - The response header override for cache control. + CacheControl *string `json:"rscc,omitempty"` + // ContentDisposition - The response header override for content disposition. + ContentDisposition *string `json:"rscd,omitempty"` + // ContentEncoding - The response header override for content encoding. + ContentEncoding *string `json:"rsce,omitempty"` + // ContentLanguage - The response header override for content language. + ContentLanguage *string `json:"rscl,omitempty"` + // ContentType - The response header override for content type. + ContentType *string `json:"rsct,omitempty"` +} + +// ServiceSpecification one property of operation, include metric specifications. +type ServiceSpecification struct { + // MetricSpecifications - Metric specifications of operation. + MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` +} + +// Sku the SKU of the storage account. +type Sku struct { + // Name - Possible values include: 'StandardLRS', 'StandardGRS', 'StandardRAGRS', 'StandardZRS', 'PremiumLRS', 'PremiumZRS', 'StandardGZRS', 'StandardRAGZRS' + Name SkuName `json:"name,omitempty"` + // Tier - Possible values include: 'Standard', 'Premium' + Tier SkuTier `json:"tier,omitempty"` +} + +// SkuInformation storage SKU and its properties +type SkuInformation struct { + // Name - Possible values include: 'StandardLRS', 'StandardGRS', 'StandardRAGRS', 'StandardZRS', 'PremiumLRS', 'PremiumZRS', 'StandardGZRS', 'StandardRAGZRS' + Name SkuName `json:"name,omitempty"` + // Tier - Possible values include: 'Standard', 'Premium' + Tier SkuTier `json:"tier,omitempty"` + // ResourceType - READ-ONLY; The type of the resource, usually it is 'storageAccounts'. + ResourceType *string `json:"resourceType,omitempty"` + // Kind - READ-ONLY; Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage' + Kind Kind `json:"kind,omitempty"` + // Locations - READ-ONLY; The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). + Locations *[]string `json:"locations,omitempty"` + // Capabilities - READ-ONLY; The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. + Capabilities *[]SKUCapability `json:"capabilities,omitempty"` + // Restrictions - The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + Restrictions *[]Restriction `json:"restrictions,omitempty"` +} + +// MarshalJSON is the custom marshaler for SkuInformation. +func (si SkuInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if si.Name != "" { + objectMap["name"] = si.Name + } + if si.Tier != "" { + objectMap["tier"] = si.Tier + } + if si.Restrictions != nil { + objectMap["restrictions"] = si.Restrictions + } + return json.Marshal(objectMap) +} + +// SkuListResult the response from the List Storage SKUs operation. +type SkuListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; Get the list result of storage SKUs and their properties. + Value *[]SkuInformation `json:"value,omitempty"` +} + +// SmbSetting setting for SMB protocol +type SmbSetting struct { + // Multichannel - Multichannel setting. Applies to Premium FileStorage only. + Multichannel *Multichannel `json:"multichannel,omitempty"` + // Versions - SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. Should be passed as a string with delimiter ';'. + Versions *string `json:"versions,omitempty"` + // AuthenticationMethods - SMB authentication methods supported by server. Valid values are NTLMv2, Kerberos. Should be passed as a string with delimiter ';'. + AuthenticationMethods *string `json:"authenticationMethods,omitempty"` + // KerberosTicketEncryption - Kerberos ticket encryption supported by server. Valid values are RC4-HMAC, AES-256. Should be passed as a string with delimiter ';' + KerberosTicketEncryption *string `json:"kerberosTicketEncryption,omitempty"` + // ChannelEncryption - SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. Should be passed as a string with delimiter ';'. + ChannelEncryption *string `json:"channelEncryption,omitempty"` +} + +// SystemData metadata pertaining to creation and last modification of the resource. +type SystemData struct { + // CreatedBy - The identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedByType - The type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + CreatedByType CreatedByType `json:"createdByType,omitempty"` + // CreatedAt - The timestamp of resource creation (UTC). + CreatedAt *date.Time `json:"createdAt,omitempty"` + // LastModifiedBy - The identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` + // LastModifiedAt - The timestamp of resource last modification (UTC) + LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` +} + +// Table properties of the table, including Id, resource name, resource type. +type Table struct { + autorest.Response `json:"-"` + // TableProperties - Table resource properties. + *TableProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Table. +func (t Table) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if t.TableProperties != nil { + objectMap["properties"] = t.TableProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Table struct. +func (t *Table) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var tableProperties TableProperties + err = json.Unmarshal(*v, &tableProperties) + if err != nil { + return err + } + t.TableProperties = &tableProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + t.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + t.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + t.Type = &typeVar + } + } + } + + return nil +} + +// TableProperties ... +type TableProperties struct { + // TableName - READ-ONLY; Table name under the specified account + TableName *string `json:"tableName,omitempty"` +} + +// TableServiceProperties the properties of a storage account’s Table service. +type TableServiceProperties struct { + autorest.Response `json:"-"` + // TableServicePropertiesProperties - The properties of a storage account’s Table service. + *TableServicePropertiesProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TableServiceProperties. +func (tsp TableServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tsp.TableServicePropertiesProperties != nil { + objectMap["properties"] = tsp.TableServicePropertiesProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for TableServiceProperties struct. +func (tsp *TableServiceProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var tableServiceProperties TableServicePropertiesProperties + err = json.Unmarshal(*v, &tableServiceProperties) + if err != nil { + return err + } + tsp.TableServicePropertiesProperties = &tableServiceProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + tsp.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + tsp.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + tsp.Type = &typeVar + } + } + } + + return nil +} + +// TableServicePropertiesProperties the properties of a storage account’s Table service. +type TableServicePropertiesProperties struct { + // Cors - Specifies CORS rules for the Table service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Table service. + Cors *CorsRules `json:"cors,omitempty"` +} + +// TagFilter blob index tag based filtering for blob objects +type TagFilter struct { + // Name - This is the filter tag name, it can have 1 - 128 characters + Name *string `json:"name,omitempty"` + // Op - This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported + Op *string `json:"op,omitempty"` + // Value - This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters + Value *string `json:"value,omitempty"` +} + +// TagProperty a tag of the LegalHold of a blob container. +type TagProperty struct { + // Tag - READ-ONLY; The tag value. + Tag *string `json:"tag,omitempty"` + // Timestamp - READ-ONLY; Returns the date and time the tag was added. + Timestamp *date.Time `json:"timestamp,omitempty"` + // ObjectIdentifier - READ-ONLY; Returns the Object ID of the user who added the tag. + ObjectIdentifier *string `json:"objectIdentifier,omitempty"` + // TenantID - READ-ONLY; Returns the Tenant ID that issued the token for the user who added the tag. + TenantID *string `json:"tenantId,omitempty"` + // Upn - READ-ONLY; Returns the User Principal Name of the user who added the tag. + Upn *string `json:"upn,omitempty"` +} + +// TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource +// which has 'tags' and a 'location' +type TrackedResource struct { + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TrackedResource. +func (tr TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tr.Tags != nil { + objectMap["tags"] = tr.Tags + } + if tr.Location != nil { + objectMap["location"] = tr.Location + } + return json.Marshal(objectMap) +} + +// UpdateHistoryProperty an update history of the ImmutabilityPolicy of a blob container. +type UpdateHistoryProperty struct { + // Update - READ-ONLY; The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend. Possible values include: 'Put', 'Lock', 'Extend' + Update ImmutabilityPolicyUpdateType `json:"update,omitempty"` + // ImmutabilityPeriodSinceCreationInDays - READ-ONLY; The immutability period for the blobs in the container since the policy creation, in days. + ImmutabilityPeriodSinceCreationInDays *int32 `json:"immutabilityPeriodSinceCreationInDays,omitempty"` + // Timestamp - READ-ONLY; Returns the date and time the ImmutabilityPolicy was updated. + Timestamp *date.Time `json:"timestamp,omitempty"` + // ObjectIdentifier - READ-ONLY; Returns the Object ID of the user who updated the ImmutabilityPolicy. + ObjectIdentifier *string `json:"objectIdentifier,omitempty"` + // TenantID - READ-ONLY; Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy. + TenantID *string `json:"tenantId,omitempty"` + // Upn - READ-ONLY; Returns the User Principal Name of the user who updated the ImmutabilityPolicy. + Upn *string `json:"upn,omitempty"` +} + +// Usage describes Storage Resource Usage. +type Usage struct { + // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' + Unit UsageUnit `json:"unit,omitempty"` + // CurrentValue - READ-ONLY; Gets the current count of the allocated resources in the subscription. + CurrentValue *int32 `json:"currentValue,omitempty"` + // Limit - READ-ONLY; Gets the maximum count of the resources that can be allocated in the subscription. + Limit *int32 `json:"limit,omitempty"` + // Name - READ-ONLY; Gets the name of the type of usage. + Name *UsageName `json:"name,omitempty"` +} + +// UsageListResult the response from the List Usages operation. +type UsageListResult struct { + autorest.Response `json:"-"` + // Value - Gets or sets the list of Storage Resource Usages. + Value *[]Usage `json:"value,omitempty"` +} + +// UsageName the usage names that can be used; currently limited to StorageAccount. +type UsageName struct { + // Value - READ-ONLY; Gets a string describing the resource name. + Value *string `json:"value,omitempty"` + // LocalizedValue - READ-ONLY; Gets a localized string describing the resource name. + LocalizedValue *string `json:"localizedValue,omitempty"` +} + +// UserAssignedIdentity userAssignedIdentity for the resource. +type UserAssignedIdentity struct { + // PrincipalID - READ-ONLY; The principal ID of the identity. + PrincipalID *string `json:"principalId,omitempty"` + // ClientID - READ-ONLY; The client ID of the identity. + ClientID *string `json:"clientId,omitempty"` +} + +// VirtualNetworkRule virtual Network rule. +type VirtualNetworkRule struct { + // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + VirtualNetworkResourceID *string `json:"id,omitempty"` + // Action - The action of virtual network rule. Possible values include: 'Allow' + Action Action `json:"action,omitempty"` + // State - Gets the state of virtual network rule. Possible values include: 'StateProvisioning', 'StateDeprovisioning', 'StateSucceeded', 'StateFailed', 'StateNetworkSourceDeleted' + State State `json:"state,omitempty"` +} diff --git a/services/storage/mgmt/2021-02-01/storage/objectreplicationpolicies.go b/services/storage/mgmt/2021-02-01/storage/objectreplicationpolicies.go new file mode 100644 index 000000000000..a4a9b9d476f8 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/objectreplicationpolicies.go @@ -0,0 +1,417 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ObjectReplicationPoliciesClient is the the Azure Storage Management API. +type ObjectReplicationPoliciesClient struct { + BaseClient +} + +// NewObjectReplicationPoliciesClient creates an instance of the ObjectReplicationPoliciesClient client. +func NewObjectReplicationPoliciesClient(subscriptionID string) ObjectReplicationPoliciesClient { + return NewObjectReplicationPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewObjectReplicationPoliciesClientWithBaseURI creates an instance of the ObjectReplicationPoliciesClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewObjectReplicationPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ObjectReplicationPoliciesClient { + return ObjectReplicationPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or update the object replication policy of the storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// objectReplicationPolicyID - the ID of object replication policy or 'default' if the policy ID is unknown. +// properties - the object replication policy set to a storage account. A unique policy ID will be created if +// absent. +func (client ObjectReplicationPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, properties ObjectReplicationPolicy) (result ObjectReplicationPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ObjectReplicationPoliciesClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: objectReplicationPolicyID, + Constraints: []validation.Constraint{{Target: "objectReplicationPolicyID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: properties, + Constraints: []validation.Constraint{{Target: "properties.ObjectReplicationPolicyProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "properties.ObjectReplicationPolicyProperties.SourceAccount", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "properties.ObjectReplicationPolicyProperties.DestinationAccount", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("storage.ObjectReplicationPoliciesClient", "CreateOrUpdate", err.Error()) + } + + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, accountName, objectReplicationPolicyID, properties) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request") + return + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ObjectReplicationPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, properties ObjectReplicationPolicy) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "objectReplicationPolicyId": autorest.Encode("path", objectReplicationPolicyID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", pathParameters), + autorest.WithJSON(properties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ObjectReplicationPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ObjectReplicationPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ObjectReplicationPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the object replication policy associated with the specified storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// objectReplicationPolicyID - the ID of object replication policy or 'default' if the policy ID is unknown. +func (client ObjectReplicationPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ObjectReplicationPoliciesClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: objectReplicationPolicyID, + Constraints: []validation.Constraint{{Target: "objectReplicationPolicyID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.ObjectReplicationPoliciesClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, objectReplicationPolicyID) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ObjectReplicationPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "objectReplicationPolicyId": autorest.Encode("path", objectReplicationPolicyID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ObjectReplicationPoliciesClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ObjectReplicationPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get get the object replication policy of the storage account by policy ID. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// objectReplicationPolicyID - the ID of object replication policy or 'default' if the policy ID is unknown. +func (client ObjectReplicationPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string) (result ObjectReplicationPolicy, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ObjectReplicationPoliciesClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: objectReplicationPolicyID, + Constraints: []validation.Constraint{{Target: "objectReplicationPolicyID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.ObjectReplicationPoliciesClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName, objectReplicationPolicyID) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client ObjectReplicationPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "objectReplicationPolicyId": autorest.Encode("path", objectReplicationPolicyID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ObjectReplicationPoliciesClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ObjectReplicationPoliciesClient) GetResponder(resp *http.Response) (result ObjectReplicationPolicy, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list the object replication policies associated with the storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client ObjectReplicationPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result ObjectReplicationPolicies, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ObjectReplicationPoliciesClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.ObjectReplicationPoliciesClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client ObjectReplicationPoliciesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ObjectReplicationPoliciesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ObjectReplicationPoliciesClient) ListResponder(resp *http.Response) (result ObjectReplicationPolicies, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/operations.go b/services/storage/mgmt/2021-02-01/storage/operations.go new file mode 100644 index 000000000000..d21dc1ca69e7 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/operations.go @@ -0,0 +1,98 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OperationsClient is the the Azure Storage Management API. +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists all of the available Storage Rest API operations. +func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.Storage/operations"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/privateendpointconnections.go b/services/storage/mgmt/2021-02-01/storage/privateendpointconnections.go new file mode 100644 index 000000000000..7bb24a1cd68e --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/privateendpointconnections.go @@ -0,0 +1,411 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateEndpointConnectionsClient is the the Azure Storage Management API. +type PrivateEndpointConnectionsClient struct { + BaseClient +} + +// NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client. +func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient { + return NewPrivateEndpointConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). +func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient { + return PrivateEndpointConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Delete deletes the specified private endpoint connection associated with the storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure +// resource +func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.PrivateEndpointConnectionsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, privateEndpointConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the specified private endpoint connection associated with the storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure +// resource +func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.PrivateEndpointConnectionsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName, privateEndpointConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list all the private endpoint connections associated with the storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, accountName string) (result PrivateEndpointConnectionListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.PrivateEndpointConnectionsClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client PrivateEndpointConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) ListResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Put update the state of specified private endpoint connection associated with the storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure +// resource +// properties - the private endpoint connection properties. +func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (result PrivateEndpointConnection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Put") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: properties, + Constraints: []validation.Constraint{{Target: "properties.PrivateEndpointConnectionProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "properties.PrivateEndpointConnectionProperties.PrivateLinkServiceConnectionState", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("storage.PrivateEndpointConnectionsClient", "Put", err.Error()) + } + + req, err := client.PutPreparer(ctx, resourceGroupName, accountName, privateEndpointConnectionName, properties) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Put", nil, "Failure preparing request") + return + } + + resp, err := client.PutSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Put", resp, "Failure sending request") + return + } + + result, err = client.PutResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request") + return + } + + return +} + +// PutPreparer prepares the Put request. +func (client PrivateEndpointConnectionsClient) PutPreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters), + autorest.WithJSON(properties), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// PutSender sends the Put request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateEndpointConnectionsClient) PutSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// PutResponder handles the response to the Put request. The method always +// closes the http.Response Body. +func (client PrivateEndpointConnectionsClient) PutResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/privatelinkresources.go b/services/storage/mgmt/2021-02-01/storage/privatelinkresources.go new file mode 100644 index 000000000000..2aab58432d4e --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/privatelinkresources.go @@ -0,0 +1,124 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// PrivateLinkResourcesClient is the the Azure Storage Management API. +type PrivateLinkResourcesClient struct { + BaseClient +} + +// NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client. +func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient { + return NewPrivateLinkResourcesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). +func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient { + return PrivateLinkResourcesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// ListByStorageAccount gets the private link resources that need to be created for a storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client PrivateLinkResourcesClient) ListByStorageAccount(ctx context.Context, resourceGroupName string, accountName string) (result PrivateLinkResourceListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkResourcesClient.ListByStorageAccount") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.PrivateLinkResourcesClient", "ListByStorageAccount", err.Error()) + } + + req, err := client.ListByStorageAccountPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.PrivateLinkResourcesClient", "ListByStorageAccount", nil, "Failure preparing request") + return + } + + resp, err := client.ListByStorageAccountSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.PrivateLinkResourcesClient", "ListByStorageAccount", resp, "Failure sending request") + return + } + + result, err = client.ListByStorageAccountResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.PrivateLinkResourcesClient", "ListByStorageAccount", resp, "Failure responding to request") + return + } + + return +} + +// ListByStorageAccountPreparer prepares the ListByStorageAccount request. +func (client PrivateLinkResourcesClient) ListByStorageAccountPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByStorageAccountSender sends the ListByStorageAccount request. The method will close the +// http.Response Body if it receives an error. +func (client PrivateLinkResourcesClient) ListByStorageAccountSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByStorageAccountResponder handles the response to the ListByStorageAccount request. The method always +// closes the http.Response Body. +func (client PrivateLinkResourcesClient) ListByStorageAccountResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/queue.go b/services/storage/mgmt/2021-02-01/storage/queue.go new file mode 100644 index 000000000000..4a02d3cd77d9 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/queue.go @@ -0,0 +1,571 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// QueueClient is the the Azure Storage Management API. +type QueueClient struct { + BaseClient +} + +// NewQueueClient creates an instance of the QueueClient client. +func NewQueueClient(subscriptionID string) QueueClient { + return NewQueueClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewQueueClientWithBaseURI creates an instance of the QueueClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewQueueClientWithBaseURI(baseURI string, subscriptionID string) QueueClient { + return QueueClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create creates a new queue with the specified queue name, under the specified account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// queueName - a queue name must be unique within a storage account and must be between 3 and 63 characters.The +// name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an +// alphanumeric character and it cannot have two consecutive dash(-) characters. +// queue - queue properties and metadata to be created with +func (client QueueClient) Create(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue Queue) (result Queue, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.Create") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: queueName, + Constraints: []validation.Constraint{{Target: "queueName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "queueName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.QueueClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, queueName, queue) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Create", nil, "Failure preparing request") + return + } + + resp, err := client.CreateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Create", resp, "Failure sending request") + return + } + + result, err = client.CreateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Create", resp, "Failure responding to request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client QueueClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue Queue) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "queueName": autorest.Encode("path", queueName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", pathParameters), + autorest.WithJSON(queue), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client QueueClient) CreateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client QueueClient) CreateResponder(resp *http.Response) (result Queue, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the queue with the specified queue name, under the specified account if it exists. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// queueName - a queue name must be unique within a storage account and must be between 3 and 63 characters.The +// name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an +// alphanumeric character and it cannot have two consecutive dash(-) characters. +func (client QueueClient) Delete(ctx context.Context, resourceGroupName string, accountName string, queueName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: queueName, + Constraints: []validation.Constraint{{Target: "queueName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "queueName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.QueueClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, queueName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client QueueClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, queueName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "queueName": autorest.Encode("path", queueName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client QueueClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client QueueClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the queue with the specified queue name, under the specified account if it exists. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// queueName - a queue name must be unique within a storage account and must be between 3 and 63 characters.The +// name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an +// alphanumeric character and it cannot have two consecutive dash(-) characters. +func (client QueueClient) Get(ctx context.Context, resourceGroupName string, accountName string, queueName string) (result Queue, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: queueName, + Constraints: []validation.Constraint{{Target: "queueName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "queueName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.QueueClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName, queueName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client QueueClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, queueName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "queueName": autorest.Encode("path", queueName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client QueueClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client QueueClient) GetResponder(resp *http.Response) (result Queue, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets a list of all the queues under the specified storage account +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// maxpagesize - optional, a maximum number of queues that should be included in a list queue response +// filter - optional, When specified, only the queues with a name starting with the given filter will be +// listed. +func (client QueueClient) List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (result ListQueueResourcePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.List") + defer func() { + sc := -1 + if result.lqr.Response.Response != nil { + sc = result.lqr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.QueueClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, accountName, maxpagesize, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.lqr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.QueueClient", "List", resp, "Failure sending request") + return + } + + result.lqr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "List", resp, "Failure responding to request") + return + } + if result.lqr.hasNextLink() && result.lqr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client QueueClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(maxpagesize) > 0 { + queryParameters["$maxpagesize"] = autorest.Encode("query", maxpagesize) + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client QueueClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client QueueClient) ListResponder(resp *http.Response) (result ListQueueResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client QueueClient) listNextResults(ctx context.Context, lastResults ListQueueResource) (result ListQueueResource, err error) { + req, err := lastResults.listQueueResourcePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storage.QueueClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storage.QueueClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client QueueClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (result ListQueueResourceIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, accountName, maxpagesize, filter) + return +} + +// Update creates a new queue with the specified queue name, under the specified account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// queueName - a queue name must be unique within a storage account and must be between 3 and 63 characters.The +// name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an +// alphanumeric character and it cannot have two consecutive dash(-) characters. +// queue - queue properties and metadata to be created with +func (client QueueClient) Update(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue Queue) (result Queue, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: queueName, + Constraints: []validation.Constraint{{Target: "queueName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "queueName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.QueueClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, queueName, queue) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client QueueClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue Queue) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "queueName": autorest.Encode("path", queueName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", pathParameters), + autorest.WithJSON(queue), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client QueueClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client QueueClient) UpdateResponder(resp *http.Response) (result Queue, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/queueservices.go b/services/storage/mgmt/2021-02-01/storage/queueservices.go new file mode 100644 index 000000000000..3223926b972d --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/queueservices.go @@ -0,0 +1,313 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// QueueServicesClient is the the Azure Storage Management API. +type QueueServicesClient struct { + BaseClient +} + +// NewQueueServicesClient creates an instance of the QueueServicesClient client. +func NewQueueServicesClient(subscriptionID string) QueueServicesClient { + return NewQueueServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewQueueServicesClientWithBaseURI creates an instance of the QueueServicesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewQueueServicesClientWithBaseURI(baseURI string, subscriptionID string) QueueServicesClient { + return QueueServicesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// GetServiceProperties gets the properties of a storage account’s Queue service, including properties for Storage +// Analytics and CORS (Cross-Origin Resource Sharing) rules. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client QueueServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result QueueServiceProperties, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueueServicesClient.GetServiceProperties") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.QueueServicesClient", "GetServiceProperties", err.Error()) + } + + req, err := client.GetServicePropertiesPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "GetServiceProperties", nil, "Failure preparing request") + return + } + + resp, err := client.GetServicePropertiesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "GetServiceProperties", resp, "Failure sending request") + return + } + + result, err = client.GetServicePropertiesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return + } + + return +} + +// GetServicePropertiesPreparer prepares the GetServiceProperties request. +func (client QueueServicesClient) GetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "queueServiceName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetServicePropertiesSender sends the GetServiceProperties request. The method will close the +// http.Response Body if it receives an error. +func (client QueueServicesClient) GetServicePropertiesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetServicePropertiesResponder handles the response to the GetServiceProperties request. The method always +// closes the http.Response Body. +func (client QueueServicesClient) GetServicePropertiesResponder(resp *http.Response) (result QueueServiceProperties, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list all queue services for the storage account +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client QueueServicesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result ListQueueServices, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueueServicesClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.QueueServicesClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client QueueServicesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client QueueServicesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client QueueServicesClient) ListResponder(resp *http.Response) (result ListQueueServices, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// SetServiceProperties sets the properties of a storage account’s Queue service, including properties for Storage +// Analytics and CORS (Cross-Origin Resource Sharing) rules. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// parameters - the properties of a storage account’s Queue service, only properties for Storage Analytics and +// CORS (Cross-Origin Resource Sharing) rules can be specified. +func (client QueueServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters QueueServiceProperties) (result QueueServiceProperties, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueueServicesClient.SetServiceProperties") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.QueueServicesClient", "SetServiceProperties", err.Error()) + } + + req, err := client.SetServicePropertiesPreparer(ctx, resourceGroupName, accountName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "SetServiceProperties", nil, "Failure preparing request") + return + } + + resp, err := client.SetServicePropertiesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "SetServiceProperties", resp, "Failure sending request") + return + } + + result, err = client.SetServicePropertiesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return + } + + return +} + +// SetServicePropertiesPreparer prepares the SetServiceProperties request. +func (client QueueServicesClient) SetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters QueueServiceProperties) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "queueServiceName": autorest.Encode("path", "default"), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SetServicePropertiesSender sends the SetServiceProperties request. The method will close the +// http.Response Body if it receives an error. +func (client QueueServicesClient) SetServicePropertiesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// SetServicePropertiesResponder handles the response to the SetServiceProperties request. The method always +// closes the http.Response Body. +func (client QueueServicesClient) SetServicePropertiesResponder(resp *http.Response) (result QueueServiceProperties, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/skus.go b/services/storage/mgmt/2021-02-01/storage/skus.go new file mode 100644 index 000000000000..dd77993de20a --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/skus.go @@ -0,0 +1,109 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// SkusClient is the the Azure Storage Management API. +type SkusClient struct { + BaseClient +} + +// NewSkusClient creates an instance of the SkusClient client. +func NewSkusClient(subscriptionID string) SkusClient { + return NewSkusClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewSkusClientWithBaseURI creates an instance of the SkusClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewSkusClientWithBaseURI(baseURI string, subscriptionID string) SkusClient { + return SkusClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists the available SKUs supported by Microsoft.Storage for given subscription. +func (client SkusClient) List(ctx context.Context) (result SkuListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SkusClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.SkusClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client SkusClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client SkusClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client SkusClient) ListResponder(resp *http.Response) (result SkuListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/storageapi/interfaces.go b/services/storage/mgmt/2021-02-01/storage/storageapi/interfaces.go new file mode 100644 index 000000000000..2972e6aff290 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/storageapi/interfaces.go @@ -0,0 +1,215 @@ +package storageapi + +// 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. + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage" + "github.com/Azure/go-autorest/autorest" +) + +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result storage.OperationListResult, err error) +} + +var _ OperationsClientAPI = (*storage.OperationsClient)(nil) + +// SkusClientAPI contains the set of methods on the SkusClient type. +type SkusClientAPI interface { + List(ctx context.Context) (result storage.SkuListResult, err error) +} + +var _ SkusClientAPI = (*storage.SkusClient)(nil) + +// AccountsClientAPI contains the set of methods on the AccountsClient type. +type AccountsClientAPI interface { + CheckNameAvailability(ctx context.Context, accountName storage.AccountCheckNameAvailabilityParameters) (result storage.CheckNameAvailabilityResult, err error) + Create(ctx context.Context, resourceGroupName string, accountName string, parameters storage.AccountCreateParameters) (result storage.AccountsCreateFuture, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error) + Failover(ctx context.Context, resourceGroupName string, accountName string) (result storage.AccountsFailoverFuture, err error) + GetProperties(ctx context.Context, resourceGroupName string, accountName string, expand storage.AccountExpand) (result storage.Account, err error) + List(ctx context.Context) (result storage.AccountListResultPage, err error) + ListComplete(ctx context.Context) (result storage.AccountListResultIterator, err error) + ListAccountSAS(ctx context.Context, resourceGroupName string, accountName string, parameters storage.AccountSasParameters) (result storage.ListAccountSasResponse, err error) + ListByResourceGroup(ctx context.Context, resourceGroupName string) (result storage.AccountListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result storage.AccountListResultIterator, err error) + ListKeys(ctx context.Context, resourceGroupName string, accountName string, expand storage.ListKeyExpand) (result storage.AccountListKeysResult, err error) + ListServiceSAS(ctx context.Context, resourceGroupName string, accountName string, parameters storage.ServiceSasParameters) (result storage.ListServiceSasResponse, err error) + RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, regenerateKey storage.AccountRegenerateKeyParameters) (result storage.AccountListKeysResult, err error) + RestoreBlobRanges(ctx context.Context, resourceGroupName string, accountName string, parameters storage.BlobRestoreParameters) (result storage.AccountsRestoreBlobRangesFuture, err error) + RevokeUserDelegationKeys(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error) + Update(ctx context.Context, resourceGroupName string, accountName string, parameters storage.AccountUpdateParameters) (result storage.Account, err error) +} + +var _ AccountsClientAPI = (*storage.AccountsClient)(nil) + +// DeletedAccountsClientAPI contains the set of methods on the DeletedAccountsClient type. +type DeletedAccountsClientAPI interface { + Get(ctx context.Context, deletedAccountName string, location string) (result storage.DeletedAccount, err error) + List(ctx context.Context) (result storage.DeletedAccountListResultPage, err error) + ListComplete(ctx context.Context) (result storage.DeletedAccountListResultIterator, err error) +} + +var _ DeletedAccountsClientAPI = (*storage.DeletedAccountsClient)(nil) + +// UsagesClientAPI contains the set of methods on the UsagesClient type. +type UsagesClientAPI interface { + ListByLocation(ctx context.Context, location string) (result storage.UsageListResult, err error) +} + +var _ UsagesClientAPI = (*storage.UsagesClient)(nil) + +// ManagementPoliciesClientAPI contains the set of methods on the ManagementPoliciesClient type. +type ManagementPoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, properties storage.ManagementPolicy) (result storage.ManagementPolicy, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, accountName string) (result storage.ManagementPolicy, err error) +} + +var _ ManagementPoliciesClientAPI = (*storage.ManagementPoliciesClient)(nil) + +// BlobInventoryPoliciesClientAPI contains the set of methods on the BlobInventoryPoliciesClient type. +type BlobInventoryPoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, properties storage.BlobInventoryPolicy) (result storage.BlobInventoryPolicy, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, accountName string) (result storage.BlobInventoryPolicy, err error) + List(ctx context.Context, resourceGroupName string, accountName string) (result storage.ListBlobInventoryPolicy, err error) +} + +var _ BlobInventoryPoliciesClientAPI = (*storage.BlobInventoryPoliciesClient)(nil) + +// PrivateEndpointConnectionsClientAPI contains the set of methods on the PrivateEndpointConnectionsClient type. +type PrivateEndpointConnectionsClientAPI interface { + Delete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result storage.PrivateEndpointConnection, err error) + List(ctx context.Context, resourceGroupName string, accountName string) (result storage.PrivateEndpointConnectionListResult, err error) + Put(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties storage.PrivateEndpointConnection) (result storage.PrivateEndpointConnection, err error) +} + +var _ PrivateEndpointConnectionsClientAPI = (*storage.PrivateEndpointConnectionsClient)(nil) + +// PrivateLinkResourcesClientAPI contains the set of methods on the PrivateLinkResourcesClient type. +type PrivateLinkResourcesClientAPI interface { + ListByStorageAccount(ctx context.Context, resourceGroupName string, accountName string) (result storage.PrivateLinkResourceListResult, err error) +} + +var _ PrivateLinkResourcesClientAPI = (*storage.PrivateLinkResourcesClient)(nil) + +// ObjectReplicationPoliciesClientAPI contains the set of methods on the ObjectReplicationPoliciesClient type. +type ObjectReplicationPoliciesClientAPI interface { + CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, properties storage.ObjectReplicationPolicy) (result storage.ObjectReplicationPolicy, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string) (result storage.ObjectReplicationPolicy, err error) + List(ctx context.Context, resourceGroupName string, accountName string) (result storage.ObjectReplicationPolicies, err error) +} + +var _ ObjectReplicationPoliciesClientAPI = (*storage.ObjectReplicationPoliciesClient)(nil) + +// EncryptionScopesClientAPI contains the set of methods on the EncryptionScopesClient type. +type EncryptionScopesClientAPI interface { + Get(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string) (result storage.EncryptionScope, err error) + List(ctx context.Context, resourceGroupName string, accountName string) (result storage.EncryptionScopeListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result storage.EncryptionScopeListResultIterator, err error) + Patch(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope storage.EncryptionScope) (result storage.EncryptionScope, err error) + Put(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope storage.EncryptionScope) (result storage.EncryptionScope, err error) +} + +var _ EncryptionScopesClientAPI = (*storage.EncryptionScopesClient)(nil) + +// BlobServicesClientAPI contains the set of methods on the BlobServicesClient type. +type BlobServicesClientAPI interface { + GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result storage.BlobServiceProperties, err error) + List(ctx context.Context, resourceGroupName string, accountName string) (result storage.BlobServiceItems, err error) + SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters storage.BlobServiceProperties) (result storage.BlobServiceProperties, err error) +} + +var _ BlobServicesClientAPI = (*storage.BlobServicesClient)(nil) + +// BlobContainersClientAPI contains the set of methods on the BlobContainersClient type. +type BlobContainersClientAPI interface { + ClearLegalHold(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold storage.LegalHold) (result storage.LegalHold, err error) + Create(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer storage.BlobContainer) (result storage.BlobContainer, err error) + CreateOrUpdateImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, parameters *storage.ImmutabilityPolicy, ifMatch string) (result storage.ImmutabilityPolicy, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result autorest.Response, err error) + DeleteImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (result storage.ImmutabilityPolicy, err error) + ExtendImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string, parameters *storage.ImmutabilityPolicy) (result storage.ImmutabilityPolicy, err error) + Get(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result storage.BlobContainer, err error) + GetImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (result storage.ImmutabilityPolicy, err error) + Lease(ctx context.Context, resourceGroupName string, accountName string, containerName string, parameters *storage.LeaseContainerRequest) (result storage.LeaseContainerResponse, err error) + List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, include storage.ListContainersInclude) (result storage.ListContainerItemsPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, include storage.ListContainersInclude) (result storage.ListContainerItemsIterator, err error) + LockImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string) (result storage.ImmutabilityPolicy, err error) + SetLegalHold(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold storage.LegalHold) (result storage.LegalHold, err error) + Update(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer storage.BlobContainer) (result storage.BlobContainer, err error) +} + +var _ BlobContainersClientAPI = (*storage.BlobContainersClient)(nil) + +// FileServicesClientAPI contains the set of methods on the FileServicesClient type. +type FileServicesClientAPI interface { + GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result storage.FileServiceProperties, err error) + List(ctx context.Context, resourceGroupName string, accountName string) (result storage.FileServiceItems, err error) + SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters storage.FileServiceProperties) (result storage.FileServiceProperties, err error) +} + +var _ FileServicesClientAPI = (*storage.FileServicesClient)(nil) + +// FileSharesClientAPI contains the set of methods on the FileSharesClient type. +type FileSharesClientAPI interface { + Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare storage.FileShare, expand storage.PutSharesExpand) (result storage.FileShare, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, xMsSnapshot string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand storage.GetShareExpand, xMsSnapshot string) (result storage.FileShare, err error) + List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, expand storage.ListSharesExpand) (result storage.FileShareItemsPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, expand storage.ListSharesExpand) (result storage.FileShareItemsIterator, err error) + Restore(ctx context.Context, resourceGroupName string, accountName string, shareName string, deletedShare storage.DeletedShare) (result autorest.Response, err error) + Update(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare storage.FileShare) (result storage.FileShare, err error) +} + +var _ FileSharesClientAPI = (*storage.FileSharesClient)(nil) + +// QueueServicesClientAPI contains the set of methods on the QueueServicesClient type. +type QueueServicesClientAPI interface { + GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result storage.QueueServiceProperties, err error) + List(ctx context.Context, resourceGroupName string, accountName string) (result storage.ListQueueServices, err error) + SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters storage.QueueServiceProperties) (result storage.QueueServiceProperties, err error) +} + +var _ QueueServicesClientAPI = (*storage.QueueServicesClient)(nil) + +// QueueClientAPI contains the set of methods on the QueueClient type. +type QueueClientAPI interface { + Create(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue storage.Queue) (result storage.Queue, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string, queueName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, accountName string, queueName string) (result storage.Queue, err error) + List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (result storage.ListQueueResourcePage, err error) + ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (result storage.ListQueueResourceIterator, err error) + Update(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue storage.Queue) (result storage.Queue, err error) +} + +var _ QueueClientAPI = (*storage.QueueClient)(nil) + +// TableServicesClientAPI contains the set of methods on the TableServicesClient type. +type TableServicesClientAPI interface { + GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result storage.TableServiceProperties, err error) + List(ctx context.Context, resourceGroupName string, accountName string) (result storage.ListTableServices, err error) + SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters storage.TableServiceProperties) (result storage.TableServiceProperties, err error) +} + +var _ TableServicesClientAPI = (*storage.TableServicesClient)(nil) + +// TableClientAPI contains the set of methods on the TableClient type. +type TableClientAPI interface { + Create(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result storage.Table, err error) + Delete(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result autorest.Response, err error) + Get(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result storage.Table, err error) + List(ctx context.Context, resourceGroupName string, accountName string) (result storage.ListTableResourcePage, err error) + ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result storage.ListTableResourceIterator, err error) + Update(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result storage.Table, err error) +} + +var _ TableClientAPI = (*storage.TableClient)(nil) diff --git a/services/storage/mgmt/2021-02-01/storage/table.go b/services/storage/mgmt/2021-02-01/storage/table.go new file mode 100644 index 000000000000..4dd557991563 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/table.go @@ -0,0 +1,556 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// TableClient is the the Azure Storage Management API. +type TableClient struct { + BaseClient +} + +// NewTableClient creates an instance of the TableClient client. +func NewTableClient(subscriptionID string) TableClient { + return NewTableClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewTableClientWithBaseURI creates an instance of the TableClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewTableClientWithBaseURI(baseURI string, subscriptionID string) TableClient { + return TableClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create creates a new table with the specified table name, under the specified account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// tableName - a table name must be unique within a storage account and must be between 3 and 63 characters.The +// name must comprise of only alphanumeric characters and it cannot begin with a numeric character. +func (client TableClient) Create(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result Table, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.Create") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: tableName, + Constraints: []validation.Constraint{{Target: "tableName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "tableName", Name: validation.MinLength, Rule: 3, Chain: nil}, + {Target: "tableName", Name: validation.Pattern, Rule: `^[A-Za-z][A-Za-z0-9]{2,62}$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.TableClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, tableName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "Create", nil, "Failure preparing request") + return + } + + resp, err := client.CreateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.TableClient", "Create", resp, "Failure sending request") + return + } + + result, err = client.CreateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "Create", resp, "Failure responding to request") + return + } + + return +} + +// CreatePreparer prepares the Create request. +func (client TableClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableName": autorest.Encode("path", tableName), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client TableClient) CreateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client TableClient) CreateResponder(resp *http.Response) (result Table, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the table with the specified table name, under the specified account if it exists. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// tableName - a table name must be unique within a storage account and must be between 3 and 63 characters.The +// name must comprise of only alphanumeric characters and it cannot begin with a numeric character. +func (client TableClient) Delete(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: tableName, + Constraints: []validation.Constraint{{Target: "tableName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "tableName", Name: validation.MinLength, Rule: 3, Chain: nil}, + {Target: "tableName", Name: validation.Pattern, Rule: `^[A-Za-z][A-Za-z0-9]{2,62}$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.TableClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, tableName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "storage.TableClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "Delete", resp, "Failure responding to request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client TableClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableName": autorest.Encode("path", tableName), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client TableClient) DeleteSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client TableClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the table with the specified table name, under the specified account if it exists. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// tableName - a table name must be unique within a storage account and must be between 3 and 63 characters.The +// name must comprise of only alphanumeric characters and it cannot begin with a numeric character. +func (client TableClient) Get(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result Table, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: tableName, + Constraints: []validation.Constraint{{Target: "tableName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "tableName", Name: validation.MinLength, Rule: 3, Chain: nil}, + {Target: "tableName", Name: validation.Pattern, Rule: `^[A-Za-z][A-Za-z0-9]{2,62}$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.TableClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName, tableName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.TableClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "Get", resp, "Failure responding to request") + return + } + + return +} + +// GetPreparer prepares the Get request. +func (client TableClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableName": autorest.Encode("path", tableName), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client TableClient) GetSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client TableClient) GetResponder(resp *http.Response) (result Table, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets a list of all the tables under the specified storage account +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client TableClient) List(ctx context.Context, resourceGroupName string, accountName string) (result ListTableResourcePage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.List") + defer func() { + sc := -1 + if result.ltr.Response.Response != nil { + sc = result.ltr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.TableClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.ltr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.TableClient", "List", resp, "Failure sending request") + return + } + + result.ltr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "List", resp, "Failure responding to request") + return + } + if result.ltr.hasNextLink() && result.ltr.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListPreparer prepares the List request. +func (client TableClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client TableClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client TableClient) ListResponder(resp *http.Response) (result ListTableResource, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client TableClient) listNextResults(ctx context.Context, lastResults ListTableResource) (result ListTableResource, err error) { + req, err := lastResults.listTableResourcePreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "storage.TableClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "storage.TableClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client TableClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result ListTableResourceIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, accountName) + return +} + +// Update creates a new table with the specified table name, under the specified account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// tableName - a table name must be unique within a storage account and must be between 3 and 63 characters.The +// name must comprise of only alphanumeric characters and it cannot begin with a numeric character. +func (client TableClient) Update(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result Table, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: tableName, + Constraints: []validation.Constraint{{Target: "tableName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "tableName", Name: validation.MinLength, Rule: 3, Chain: nil}, + {Target: "tableName", Name: validation.Pattern, Rule: `^[A-Za-z][A-Za-z0-9]{2,62}$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.TableClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, tableName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.TableClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableClient", "Update", resp, "Failure responding to request") + return + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client TableClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableName": autorest.Encode("path", tableName), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client TableClient) UpdateSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client TableClient) UpdateResponder(resp *http.Response) (result Table, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/tableservices.go b/services/storage/mgmt/2021-02-01/storage/tableservices.go new file mode 100644 index 000000000000..2a6b66bae40e --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/tableservices.go @@ -0,0 +1,313 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// TableServicesClient is the the Azure Storage Management API. +type TableServicesClient struct { + BaseClient +} + +// NewTableServicesClient creates an instance of the TableServicesClient client. +func NewTableServicesClient(subscriptionID string) TableServicesClient { + return NewTableServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewTableServicesClientWithBaseURI creates an instance of the TableServicesClient client using a custom endpoint. +// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewTableServicesClientWithBaseURI(baseURI string, subscriptionID string) TableServicesClient { + return TableServicesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// GetServiceProperties gets the properties of a storage account’s Table service, including properties for Storage +// Analytics and CORS (Cross-Origin Resource Sharing) rules. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client TableServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result TableServiceProperties, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TableServicesClient.GetServiceProperties") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.TableServicesClient", "GetServiceProperties", err.Error()) + } + + req, err := client.GetServicePropertiesPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "GetServiceProperties", nil, "Failure preparing request") + return + } + + resp, err := client.GetServicePropertiesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "GetServiceProperties", resp, "Failure sending request") + return + } + + result, err = client.GetServicePropertiesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "GetServiceProperties", resp, "Failure responding to request") + return + } + + return +} + +// GetServicePropertiesPreparer prepares the GetServiceProperties request. +func (client TableServicesClient) GetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableServiceName": autorest.Encode("path", "default"), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetServicePropertiesSender sends the GetServiceProperties request. The method will close the +// http.Response Body if it receives an error. +func (client TableServicesClient) GetServicePropertiesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetServicePropertiesResponder handles the response to the GetServiceProperties request. The method always +// closes the http.Response Body. +func (client TableServicesClient) GetServicePropertiesResponder(resp *http.Response) (result TableServiceProperties, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List list all table services for the storage account. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +func (client TableServicesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result ListTableServices, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TableServicesClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.TableServicesClient", "List", err.Error()) + } + + req, err := client.ListPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "List", resp, "Failure responding to request") + return + } + + return +} + +// ListPreparer prepares the List request. +func (client TableServicesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client TableServicesClient) ListSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client TableServicesClient) ListResponder(resp *http.Response) (result ListTableServices, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// SetServiceProperties sets the properties of a storage account’s Table service, including properties for Storage +// Analytics and CORS (Cross-Origin Resource Sharing) rules. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// parameters - the properties of a storage account’s Table service, only properties for Storage Analytics and +// CORS (Cross-Origin Resource Sharing) rules can be specified. +func (client TableServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters TableServiceProperties) (result TableServiceProperties, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TableServicesClient.SetServiceProperties") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.TableServicesClient", "SetServiceProperties", err.Error()) + } + + req, err := client.SetServicePropertiesPreparer(ctx, resourceGroupName, accountName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "SetServiceProperties", nil, "Failure preparing request") + return + } + + resp, err := client.SetServicePropertiesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "SetServiceProperties", resp, "Failure sending request") + return + } + + result, err = client.SetServicePropertiesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "SetServiceProperties", resp, "Failure responding to request") + return + } + + return +} + +// SetServicePropertiesPreparer prepares the SetServiceProperties request. +func (client TableServicesClient) SetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters TableServiceProperties) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableServiceName": autorest.Encode("path", "default"), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// SetServicePropertiesSender sends the SetServiceProperties request. The method will close the +// http.Response Body if it receives an error. +func (client TableServicesClient) SetServicePropertiesSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// SetServicePropertiesResponder handles the response to the SetServiceProperties request. The method always +// closes the http.Response Body. +func (client TableServicesClient) SetServicePropertiesResponder(resp *http.Response) (result TableServiceProperties, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/usages.go b/services/storage/mgmt/2021-02-01/storage/usages.go new file mode 100644 index 000000000000..210c45b38cff --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/usages.go @@ -0,0 +1,112 @@ +package storage + +// 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. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// UsagesClient is the the Azure Storage Management API. +type UsagesClient struct { + BaseClient +} + +// NewUsagesClient creates an instance of the UsagesClient client. +func NewUsagesClient(subscriptionID string) UsagesClient { + return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). +func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient { + return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// ListByLocation gets the current usage count and the limit for the resources of the location under the subscription. +// Parameters: +// location - the location of the Azure Storage resource. +func (client UsagesClient) ListByLocation(ctx context.Context, location string) (result UsageListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UsagesClient.ListByLocation") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.UsagesClient", "ListByLocation", err.Error()) + } + + req, err := client.ListByLocationPreparer(ctx, location) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", nil, "Failure preparing request") + return + } + + resp, err := client.ListByLocationSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", resp, "Failure sending request") + return + } + + result, err = client.ListByLocationResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", resp, "Failure responding to request") + return + } + + return +} + +// ListByLocationPreparer prepares the ListByLocation request. +func (client UsagesClient) ListByLocationPreparer(ctx context.Context, location string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByLocationSender sends the ListByLocation request. The method will close the +// http.Response Body if it receives an error. +func (client UsagesClient) ListByLocationSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListByLocationResponder handles the response to the ListByLocation request. The method always +// closes the http.Response Body. +func (client UsagesClient) ListByLocationResponder(resp *http.Response) (result UsageListResult, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/storage/mgmt/2021-02-01/storage/version.go b/services/storage/mgmt/2021-02-01/storage/version.go new file mode 100644 index 000000000000..de079b92f235 --- /dev/null +++ b/services/storage/mgmt/2021-02-01/storage/version.go @@ -0,0 +1,19 @@ +package storage + +import "github.com/Azure/azure-sdk-for-go/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + Version() + " storage/2021-02-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} From a5f95ac4076d8cce1c1e9132ca4542528d7af73a Mon Sep 17 00:00:00 2001 From: yupwei68 Date: Wed, 14 Apr 2021 06:48:32 +0000 Subject: [PATCH 4/4] v53.2.0 --- CHANGELOG.md | 13 +++++++++++++ version/version.go | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22afbc2e640c..272dbee6331d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # CHANGELOG +## `v53.2.0` + +### New Packages + +- `github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2021-04-01-preview/signalr` +- `github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-02-01/storage` + +### Updated Packages + +| Package Path | Changelog | +| :--- | :---: | +| `github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory` | [details](services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md) | + ## `v53.1.0` ### New Packages diff --git a/version/version.go b/version/version.go index 4d306904f00a..b6f2ce924618 100644 --- a/version/version.go +++ b/version/version.go @@ -18,4 +18,4 @@ package version // Changes may cause incorrect behavior and will be lost if the code is regenerated. // Number contains the semantic version of this SDK. -const Number = "v53.1.0" +const Number = "v53.2.0"